How to solve this recurrence: T(n) = T(n/2) + T(n/4) + O(1)
It doesn’t seem like Master Method will help, as this is not in the form of T(n) = aT(n/b) + f(n). And I got stuck for quite a while.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Akra Bazzi is a much more powerful method than Master method.
Since the ‘non-recursive’ term is O(1), it amounts to solving the equation
1/2^p + 1/4^p = 1And the answer you get will be
T(n) = Theta(n^p)I believe solving the above (quadratic in
1/2^p) gives usp = log_2 phiwhere phi is the golden ratio.Computing that gives us
T(n) = Theta(n^0.694...)