I get how to solve recurrence relations for t(n)= t(n-1) etc etc.
But how would you solve the recurrence of t(n) = t(n/2) + log2(n), such that T(1)=0? I don't understand how the log would behave in this situation.
I get how to solve recurrence relations for t(n)= t(n-1) etc etc.
But how would you solve the recurrence of t(n) = t(n/2) + log2(n), such that T(1)=0? I don't understand how the log would behave in this situation.
T(n) = T(n/2^i) + [log n+log(n /2)+⋯+log(n/2^log n)] .
you just need to find the sum of the series with the log terms to find the upper bound of the recurrence
– Shubham Singh rawat Oct 18 '16 at 04:24