{"id":78373,"date":"2021-12-01T10:57:30","date_gmt":"2021-12-01T10:57:30","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/12\/01\/q-1-what-it-the-bog-o-of-the-following-equation-10n3\/"},"modified":"2021-12-01T10:57:30","modified_gmt":"2021-12-01T10:57:30","slug":"q-1-what-it-the-bog-o-of-the-following-equation-10n3","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/12\/01\/q-1-what-it-the-bog-o-of-the-following-equation-10n3\/","title":{"rendered":"Q.1) What it the Bog O of the following equation? 10n3 +"},"content":{"rendered":"<p>Q.1) What it the Bog O of the following equation?<\/p>\n<p> \u00a0 \u00a0 \u00a0\u00a010n3\u00a0+ 24n2\u00a0+ 3n log n + 144<\/p>\n<p> O(n^3)<\/p>\n<p> O(10n^3)<\/p>\n<p> O(n^2)<\/p>\n<p> O(n)<\/p>\n<p> Q.2) What it the Bog O of the following equation?<\/p>\n<p> \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 n2\u00a0+ n log n + 50<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> O(n)<\/p>\n<p> O(n^2)<\/p>\n<p> O(log n^2)<\/p>\n<p> Q.3) What it the Bog O of the following equation?<\/p>\n<p> \u00a0 \u00a0 \u00a05 log2n + 15 log n<\/p>\n<p> O(n)<\/p>\n<p> O(log n)<\/p>\n<p> O(1)<\/p>\n<p> Q.4) Exponential identity:<\/p>\n<p> \u00a0\u00a0\u00a0 \u00a0 \u00a0 \u00a0(ab)n\u00a0= an\u00a0+ bn<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q.5) Match the following Big O notation with their respective operation.<\/p>\n<p> \u00a0<\/p>\n<p> O(1)<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> O(log n)<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> O(n)<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> O(n^2)<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> Q.6) What is the Big-O of the code snippet below?<\/p>\n<p> \u00a0<\/p>\n<p> \u00a0 \u00a0 \u00a0#include <br \/> \u00a0 \u00a0 \u00a0int main()<br \/> \u00a0 \u00a0 \u00a0{<br \/> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0printf(&#8220;Hello World&#8221;);<br \/> \u00a0 \u00a0 \u00a0}<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> O(Cn)<\/p>\n<p> O(n)<\/p>\n<p> O(1)<\/p>\n<p> O(n^2)<\/p>\n<p> Q.7) What is n in the pseudocode below? What is the Big-O?<\/p>\n<p> \u00a0<\/p>\n<p> Pseudocode:<\/p>\n<p> \u00a0 \u00a0 list_Sum(A,n) {\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<p> \u00a0 \u00a0 total =0\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p> \u00a0 \u00a0 n = 8000\u00a0\u00a0<\/p>\n<p> \u00a0 for i=0 to n-1\u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0sum = sum + A[i]\u00a0<\/p>\n<p> \u00a0 \u00a0 return sum\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<p> \u00a0 \u00a0 }\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> n; O(1)<\/p>\n<p> 8000; O(A,i)<\/p>\n<p> 8000; O(n)<\/p>\n<p> 8000; O(n^2)<\/p>\n<p> Q.8 ) Exponential identity:<\/p>\n<p> \u00a0 \u00a0 \u00a0aman\u00a0= amn\u00a0<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q.9) Logarithm identity:<\/p>\n<p> \u00a0\u00a0\u00a0 \u00a0 \u00a0 logb\u00a0M + logb\u00a0N = logb\u00a0(M\/N)<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q.10) Say your and your coworkers write an algorithm that takes in an array of numbers and returns the highest one, select the the\u00a0three (3) best analysis\u00a0below that describes your algorithm.<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> The absolute slowest it can run is Linear time \u2013 O(n)<\/p>\n<p> The absolute fastest it can run in Quadratic time \u2013 \u03a9(n^2)<\/p>\n<p> The absolute fastest it can run is Linear time \u2013 \u03a9(n)<\/p>\n<p> The absolute slowest it can run is constant time time \u2013 O(c)<\/p>\n<p> This algorithm be tightly asymptotically bound \u2013 so we can also say it\u2019s \u0398(n)<\/p>\n<p> Q.11) Match the analysis for Mileage problem:<\/p>\n<p> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 How much gas does it take to go 200 miles?<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> Straight, downhill, wind at your back<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> \u201cAverage\u201d terrain<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> Winding, uphill, gravel road, inclement weather<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0\u00a0 \u00a0<\/p>\n<p> Q.12) Divide and Conquer\u00a0<\/p>\n<p> Divide \u00a0==&gt; \u00a0solve the problem recursively.<\/p>\n<p> Conquer ==&gt; \u00a0put the problem into a number of sub-problems.<\/p>\n<p> Combine ==&gt; put the problem into one solution to give a solution to the original problem.<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q.13) Heap Sort:<\/p>\n<p> Build the initial heap from the following array<\/p>\n<p> [10,\u00a0 16,\u00a0 54,\u00a0 17,\u00a0 19,\u00a0 65,\u00a0 31]<\/p>\n<p> \u00a0<\/p>\n<p> Note: minimum 300 words.<\/p>\n<p> Q.14) Heap Sort &#8211; max heap:<\/p>\n<p> Build the initial heap from the following array<\/p>\n<p> [10,\u00a0 16,\u00a0 54,\u00a0 17,\u00a0 19,\u00a0 65,\u00a0 31]<\/p>\n<p> a. Show (draw) the max heap with the INITIAL max value<\/p>\n<p> a. Show (draw) the max heap AFTER the FIRST max value is removed<\/p>\n<p> b. Show (draw) the max heap AFTER the SECOND max value has been removed<\/p>\n<p> Note: minimum 300 words<\/p>\n<p> Q.15) what is the\u00a0Worst case\u00a0time complexity of quicksort?<\/p>\n<p> Group of answer choices<\/p>\n<p> O(n log n)<\/p>\n<p> O(n^2)<\/p>\n<p> O(n)<\/p>\n<p> Q.16) In Quick sort, the pivot can be any value within the array being sorted, commonly the value of the middle array element.<\/p>\n<p> \u00a0<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q,17) MERGE SORT:<\/p>\n<p> Draw a diagram showing the merge sort of the following array.<\/p>\n<p> \u00a0[5 2 4 7 1 3 2 6]<\/p>\n<p> Q.18) In heap sort &#8211; Max heap parents are larger\/higher in value that the children<\/p>\n<p> In heap sort &#8211; Min heap children are larger\/higher in value than the parent<\/p>\n<p> In quick sort &#8211; The parents are larger\/higher in value that the children<\/p>\n<p> \u00a0<\/p>\n<p> Group of answer choices<\/p>\n<p> True<\/p>\n<p> False<\/p>\n<p> Q.19) RESEARCH QUESTION:<\/p>\n<p> Solving the traveling salesman problem via brute-force search.<\/p>\n<p> 1. Explain the traveling salesman problem<\/p>\n<p> 2. Find an C++, or Python algorithm to solve the salesman problem (list information with an example)<\/p>\n<p> 3. What is the Big O?<\/p>\n<p> \u00a0<\/p>\n<p> **Please pay attention to details.<\/p>\n<p> **Not the number of points<\/p>\n<p> Note: Minimum 500 words.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q.1) What it the Bog O of the following equation? \u00a0 \u00a0 \u00a0\u00a010n3\u00a0+ 24n2\u00a0+ 3n log n + 144 O(n^3) O(10n^3) O(n^2) O(n) Q.2) What it the Bog O of the following equation? \u00a0 \u00a0 \u00a0\u00a0\u00a0 \u00a0 n2\u00a0+ n log n + 50 \u00a0 Group of answer choices O(n) O(n^2) O(log n^2) Q.3) What it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-78373","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/78373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=78373"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/78373\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=78373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=78373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=78373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}