Question

Find the best big O bound you can on T(n) if it satisfies the recurrence T(n)...

Find the best big O bound you can on T(n) if it satisfies the recurrence T(n) ≤ T(n/4) + T(n/2) + n, with T(n) = 1 if n < 4.

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

Recursion tree would looklike this-

First two levels are shown.

All subsequent levels will have the same pattern: dividin node of m into two pieces, of size m/2 and m/4.

Total contribution from second layer = n/2+n/4 = 3n/4.

For third layer we can say that it will be 3/4 if 3n/4.

...and so on.

So total contribution to T(n) would be

=n+(3/4)n+(3/4)2n+(3/4)3n+ ...

geometric series, Thus

T(n)<=n/(1-3/4)=4n

So, upper bound can be given as O(n).

feel free to ask any doubt.

Add a comment
Know the answer?
Add Answer to:
Find the best big O bound you can on T(n) if it satisfies the recurrence T(n)...
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