Question

Order of Growth Rate Order the following functions by asymptotic growth: (i) fi(n) 3 (ii) f2(n) ni (iii) fa(n) 12 (iv) fa(n)
0 0
Add a comment Improve this question Transcribed image text
Answer #1

The order will be
12 < log(n) < (n)^(1/3) < sqrt(n) < (n)^3 < (2)^(log(n)) < (2)^(sqrt(n)) < (2)^(n) < (3)^(n)
i.e,
f3(n) < f7(n) < f2(n) < f5(n) < f9(n) < f4(n) < f8(n) < f6(n) < f1(n)

Here
(1)initially 12 is constant so it will give O(1) constant time so it is the least of all
(2)log(n) is the O(log n) which is logarithmic time
(3)(n)^(1/3) since it is third root it will be less that sqrt(n)
(4) sqrt(n) it is O(sqrt(n))
(5)(n^3) it is O(n^3) which is cubic time
(6)(2)^(log(n)) it is exponential since it is logarithmic it is smaller than remaining
(7)(2)^(sqrt(n)) it is exponential since the exponent has sqrt(n) it is larger that logarithmic
(8)(2)^(n) it is exponential time
(9)(3)^(n) it is also exponential since the base is high it will be high

If you have any doubts please comment and please don't dislike.

Add a comment
Answer #2

2^log(n) = n. 


So that should be in front of n^3. Except for that the answer is correct.


answered by: anonymous
Add a comment
Know the answer?
Add Answer to:
Order of Growth Rate Order the following functions by asymptotic growth: (i) fi(n) 3" (ii) f2(n)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT