I am trying to find the time complexity for the recurrence:
T(n) = 2T(n1/2) + log n
I am pretty close to the solution, however, I have run into a roadblock. I need to solve:
n(1/2k) = 1
for k to simplify my substitution pattern. I am not looking for answers to the recurrence, just a solution for k
.
When you start unrolling the recursion, you get:
Here the same thing with a few additional steps:
Now using the boundary condition for a recursion (number 2 selected as 0 and 1 do not make sense), you will get:
Substituting k
back to the equation you will get:
Here are a couple of recursions that use the same idea.