How to solve this recurrence relation: T(n) = 4*T(sqrt(n)) + n
问题 I know how to solve the recurrence relations using Master Method. Also I'm aware of how to solve the recurrences below: T(n) = sqrt(n)*T(sqrt(n)) + n T(n) = 2*T(sqrt(n)) + lg(n) In the above two recurrences there is same amount of work at each level of the recursion tree. And there are a total of log log n levels in the recursion tree. I'm having trouble in solving this one: T(n) = 4*T(sqrt(n)) + n EDIT: Here n is a power of 2 回答1: Suppose that n = 2^k. We have T(2^k) = 4*T(2^(k/2)) + 2^k.