Question

r the recurrence relation o. Consider T(n) = Vn T(Vn) + n a. Why cant you solve this with the master theorem? b. S t involve
0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) We cannot apply Master Theorem in this. as it is not of the form

T(n) = aT(n/b) + f(n)

a is √n here , Hence it is not of the form, So we cannot apply Masters theorem on this

b) T(n) = √nT(√n) + n

Divide by n we get
T(n)/ n = T(√n)/ √n) + 1

Let n = 2m

T(2m )/ 2m   = T(2m/2)/ 2m/2 + 1

S(m) = T(2m) / 2m

S(m) = S(m/2) + 1

Solving the above we get S(m) = O(logm)
Substituting we get T(n)/n = log logn

=> T(n) = O(n log(logn))


Thanks, PLEASE COMMENT if there is any concern. PLEASE UPVOTE

Add a comment
Know the answer?
Add Answer to:
r the recurrence relation o. Consider T(n) = Vn T(Vn) + n a. Why can't you solve this with the master theorem? b. S t involves a constant C, tell me what it is in terms of T(O), T(1), or what...
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