Question

[6 marks] Arrange the functions (1.5)n , n100, log n, n!, and n99 + n98 in...

[6 marks] Arrange the functions (1.5)n , n100, log n, n!, and n99 + n98 in a list so that each is a big-O of the next.

Ans: log n, (n99+n98), n100, (1.5)n , n!

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

There is a typing mistake in your question, I oberved the function from given answer, So please correct in commnet if my obervation is wrong. I will edit my answer or try to help you in comment.
Question: Arrange the functions ((1.5)^n , n^{100}, \log n, n!, and n^{99 }+ n^{98} in a list so that each is a big-O of the next.
Solution:

1.5^n is an exponential function with base 1.5
n^{100} is a polynomial function of degree 100
log n is a logarithmic function
n! is a factorial funtion
n^{99 }+ n^{98} is polynomial function.

The increasing order of Big O notation is as given below:
1596152178369_image.png

There is no constant function in our question. Now comes on logarthmic funnction
log n
Next is polynomial function n^{100} ( Degree 100 )  and n^{99 }+ n^{98} (Degree 99)
log n < n^{99 }+ n^{98} < n^{100}
Exponential function 1.5^n
log n < n^{99 }+ n^{98} < n^{100} <  1.5^n
And the final one is Factorial function n!
So, big O notaion in increasing order is given by:
log n < n^{99 }+ n^{98} < n^{100} <  1.5^n < n!


Add a comment
Know the answer?
Add Answer to:
[6 marks] Arrange the functions (1.5)n , n100, log n, n!, and n99 + n98 in...
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