subject

Assume you have two algorithms, a and b, both of which perform the same function, although their implementations differ. assume that algorithm a has a running time of o(n3 + 2n2+6n +10) and algorithm b has a running time of o(6n2 + 3n +10 ). also assume that the value of n is restricted to the set of natural numbers i. e., {1, 2, 3, }. answer the follow­ing questions:

for what values of n algorithm a is more efficient than algorithm b?

for what values of n algorithm b is more efficient than algorithm a?

for what values of n might both algorithms be expected to operate with the same efficiency?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 23.06.2019 00:00
Suppose you have 9 coins and one of them is heavier than others. other 8 coins weight equally. you are also given a balance. develop and algorithm to determine the heavy coin using only two measurements with the of the balance. clearly write your algorithm in the form of a pseudocode using the similar notation that we have used in the class to represent sorting algorithms
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
How can you repin an image on your pinterest pin board a. click on the "repin" button b. click on the "add pin" button c. click on the "upload a pin" button d. click on the "save pin" button.
Answers: 2
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
You know the right answer?
Assume you have two algorithms, a and b, both of which perform the same function, although their imp...
Questions
question
Mathematics, 06.04.2021 04:10
Questions on the website: 13722363