Question

4. [10pts Find a tight asymptotic upper bound for the function T(n) defined by the recurence relation T(2)-2 T(n) = T(n/2) + Tuv )) + n Assume that n is a power of 2
0 0
Add a comment Improve this question Transcribed image text
Answer #1

We expand the recursive formula and find the following

T(n) = n + n n + + upto log_2 n-1 terms +

                 \frac{\sqrt{n}}{2}+\frac{\sqrt{n}}{4}+\frac{\sqrt{n}}{8}+... upto log*_2 n-1 terms +

                 ... +

                n^{\frac{1}{2}}+n^{\frac{1}{4}}+... upto log_2 n-1 terms

           =n\times \frac{1-(\frac{1}{2})^{log_2 n}}{1-\frac{1}{2}}+\frac{\sqrt{n}}{2}\times \frac{1-(\frac{1}{2})^{log_2 n}}{1-\frac{1}{2}}+...+\sqrt{n}

            =2n+\sqrt{n}+...+\sqrt{n}

           =O(n+\sqrt{n}) by ignoring smaller terms

Add a comment
Know the answer?
Add Answer to:
4. [10pts Find a tight asymptotic upper bound for the function T(n) defined by the recurence...
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