Question

You determined that your algorithm runs in ?(?) = 3?^3 + 2? + 15, therefore you...

You determined that your algorithm runs in ?(?) = 3?^3 + 2? + 15, therefore you estimated ?(?) = ?(? ). Show how you come to this conclusion and give specific values for ?1 , ?2 , and ?0 .

0 0
Add a comment Improve this question Transcribed image text
Answer #1
Θ(g(n)) = {f(n): there exist positive constants c1, c2 and n0 such 
                 that 0 <= c1*g(n) <= f(n) <= c2*g(n) for all n >= n0}

For c1 = 1 and c2 = 20 and N0 = 0, we have

0 <= N3 <= 3?3 + 2? + 15

and, 0 <= 3?3 + 2? + 15 <= 20N3

Hence, from the above two equations, we can say that

T(N) = Θ(N3​​​​​​​)

Add a comment
Know the answer?
Add Answer to:
You determined that your algorithm runs in ?(?) = 3?^3 + 2? + 15, therefore you...
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