How to prove this:
- 4n = O(8n)
- 8n = O(4n)?
So what are the C and n0 values for both cases?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
EDIT: I tried to clarify I bit more …
1.
For a proof (see formal definition of Big-O) we have to find any
Candn0, that 4n <= C * 8n for all n > n0.So – to prove your case 1 it is all about finding an example for these two values. We will try … the equation I just quoted from wikipedia says:
if and only if there exists a positive real number C and a real number n0 such that
where f(n) = 4n and g(n)=8n
So we choose
Cto be 1 andn0to be 1, too. The equation is true -> case 1 proven.2.
Since I guess, that this is homework – you should give it a try yourself – I can help you a bit more, as soon as you provide results of your own tries.
Hint: just try to find a
Cand an0there, too – maybe you can prove, that there never exists any pair ofCandn0for the equation … ^^