T((n^2)/2^r) = n * T(n) + c*(n^2), for some constant c.
I've already solved a more specific case of the recurrence in an ealier problem:
T(n) = sqrt(n) * T(sqrt(n)) + n ; but I am having difficulties with this one because
of the 2^r part. I know that I'll end up having a subsitution m = n^2 then p = log(m)
(like I did the the specific one), then it's just a matter of proving the solution
(which I already know what it is) via induction.
However, I'm having trouble manipulation the general recurssion (with the 2^r) term.
Could someone help me re-write this recurrence in terms of T(n) or something similar?
I want to get rid of the 2^r term with some substituion perhaps, such that I get an expression
T(n) or T(m) = something, but I am not sure how.
I've attached an image of the original recurrence for clarity - Thank you
Zach
Attached File(s)
-
img.bmp (61.74K)
Number of downloads: 132
This post has been edited by Nizbel99: 02 June 2010 - 08:47 AM

New Topic/Question
Reply



MultiQuote





|