Terminating the Iteration

T(n) = 3k T(n/(4k)) + 4 n (1-(3/4)k).

For what k does n/(4k) = 1?

\begin{eqnarraystar}
n/(4^k) &=& 1\\ n &=& (4^k)\\ \log(n) &=& k \log(4)\\ k &=& \log(n)/2\\ \end{eqnarraystar}

Substituting into the formula above...


next up previous
Next: The Table Method Up: SOLVING RECURRENCES Previous: The Iteration Method