Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

what is the complexity of this equation ?

$T(n) = 2*T(\sqrt n) + \log n$

and T(2) = 1.

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

By an easy induction, $f(2^{2^n}) = (n+1)2^n$, suggesting that the answer would be $(\log \log n + 1) \log n$. Plugging this into the equation, this is indeed true.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.