Question

Weird recursion tree analysis. Suppose we have an algorithm that on problems of size n, recursively...

Weird recursion tree analysis. Suppose we have an algorithm that on problems of size n, recursively solves two problems of size n/2, with a “local running time” bounded by t(n) for some function t(n). That is, the algorithm’s total running time T(n) satisfies the recurrence relation T(n) ≤ 2T(n/2) + t(n). For simplicity, assume that n is a power of 2.

Prove the following using a recursion tree analysis

(a) If t(n) = O(n log n), then T(n) = O(n(log n)2).

(b) If t(n) = O(n/log n), then T(n) = O(n log log n).

(c) If t(n) = O(n/(log n)2), then T(n) = O(n).

Note that the Master Theorem itself cannot be used here, because the functions t(n) above are not of the form required by the Master Theorem.

Hint: for each level j, estimate the number of subproblems at that level, and the local running time for each subproblem at that level.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Weird recursion tree analysis. Suppose we have an algorithm that on problems of size n, recursively...
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
Active Questions
ADVERTISEMENT