Question

Arrange the following functions in ascending order of growth rate. That is, if function g(n) immediately follows function f(n) in your list, then it should be the case that f(n) -O(gln) fl (n) = n/i f2 (n)- 3 fs (n)-nIg(n) JA (n)- ()+54 More specifically, match the functions f? through fe to the corresponding positions a through f to illustrate the correct asymptotic order: I Choose ] I Choose ] Choose ] Choose ] I Choose ] I Choose ]

0 0
Add a comment Improve this question Transcribed image text
Answer #1

f1 = n3n1/2

and f6 =n3

both are of O(n3) order but f1 have some extra multiplying factor so relation between these will be f6<f1

f2 = 3n that is exponential function and it is most costly ever so it is largenst among all.

f3 = n + lg ( n3 ) it can be solved like n + 3 * lg(n) and if there exist n already in expression then it will be order of n without any second thought so here O(n)

f4 = (1/3)n + 54 it is almost comutatble and it is order of O(1) i.e. the lowest costly in given set.

f5 = n lg n that is itself cost without any second step solution and it is O(n log n and) more than O(n)

so by these all analysis we found that

O(1) < O (n) < O(n lg n) < O( n3 ) < O( n3n1/2 ) < O ( 3n)

and in term of function

f4 < f3 < f5 < f6 < f1 < f2

so

a f4
b f3
c f5
d f6
e f1
f f2

Hope this helps!

You can ask your doubts in comment section.

Kindly appreciate the help by upvoting the answer. Thank you!

Add a comment
Know the answer?
Add Answer to:
Arrange the following functions in ascending order of growth rate. That is, if function g(n) immediately...
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