Question

How would I prove that log2(32n) = O(n) (Big Oh of N) I got:   2 log2(3)...

How would I prove that log2(32n) = O(n) (Big Oh of N)

I got:   2 log2(3) n <= c * n , however, I do not know how to continue from this part.

Thanks

0 0
Add a comment Improve this question Transcribed image text
Answer #1
big-O Definition:
----------------------
f(n) = O(g(n)) means there are positive constants c and k,
such that 0 ≤ f(n) ≤ cg(n) for all n ≥ k.
The values of c and k must be fixed for the function f and must not depend on n.


2 log2(3) n <= c * n
Lets take f(n) = 2 log2(3) n and g(n) = n
The above statement is true for all the values of c = 2 log2(3) = 3.169925001442312 and n > 0
So, we can say that f(n) = O(g(n))
2 log2(3) n = O(n) 

Please upvote the solution if it helped. Thanks!

Note: Please comment below if you have any doubts

Add a comment
Know the answer?
Add Answer to:
How would I prove that log2(32n) = O(n) (Big Oh of N) I got:   2 log2(3)...
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