Question

JAVA BIG O ANALYSIS f(n)=24n+2nlg(n)+280 is of order O(nlog(n)) a.Is it correct say that the expression...

JAVA BIG O ANALYSIS

f(n)=24n+2nlg(n)+280 is of order O(nlog(n))

a.Is it correct say that the expression in Q2 is O(2n)? Explain

b. Is it useful to say that the expression in Q2 is O(2n)? Explain.

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

--> f(n)=24n+2nlg(n)+280 is of order O(nlog(n))

(a)

If we say that the expression is O(2n), If the n becomes very large then O(2n) will become very less compared

to O(nlog(n)).

ex: n = 232

--> 2n = 2 * 232 = 233

--> nlog(n) = 232 * log(232) = 32 * 232 = 25 * 232 = 237

So, clearly we see that O(nlog(n)) overtakes O(2n) for higher values of n. So, It is not correct.

(b)

It is also not useful to say expression is O(2n) because we will be giving wrong estimation for the time it

will take to run which will be a problem since the difference is very high.

Add a comment
Know the answer?
Add Answer to:
JAVA BIG O ANALYSIS f(n)=24n+2nlg(n)+280 is of order O(nlog(n)) a.Is it correct say that the expression...
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