1) Reorder the following efficiency from smallest to largest:
2^n, n!, n^5, 10000, nlog2(n)
My Ans-> 10000 < nlog2(n) < n^5 < 2^n < n!
Correct ?
2) Efficiency of an algo. is n^3, if a step in this algo. takes 1 nanosec. (10^-9 sec.). How long does it take the algo. to process an input of size 1000?
I don't know ... Is it (1000)^3 * 10^-9 ?