Menu

(Solved) : 7 Importance Algorithm Efficiency 5 Points Variation Problem 1 1 Text P 14 15 Suppose Com Q44155905 . . .

7. Importance of algorithm efficiency (5points)

This is a variation on problem 1-1 from the text (p. 14-15).Suppose you have a computer that can execute 2*107computational steps per second. If there are five algorithms withefficiencies O(lgn) [lgn = log of n to the base 2],O(square-root(n)), O(n), O(n2) and O(n3), andyou need the algorithm to produce an answer in no more than onesecond, what is the range of input sizes from 1 to n for which eachof these algorithms will be able to produce an answer in at mostone second?

O(lgn) algorithm for input sizes 1 to _________

O(square-root(n)) algorithm for input sizes 1 to _________

O(n) algorithm for input sizes 1 to _________

O(n2) algorithm for input sizes 1 to _________

O(n3) algorithm for input sizes 1 to _________

Expert Answer


Answer to 7. Importance of algorithm efficiency (5 points) This is a variation on problem 1-1 from the text (p. 14-15). Suppose yo…

OR