next up previous
Next: Example: Use all three Up: l2 Previous: Example

Example

T(n) = 3T(n/4) + nlgn
a=3, b=4, f(n) = nlgn
\(n^{log_4 3}\) = O$(n^{0.793})$
f(n) = \(\Omega(n^{log_4 3 + \epsilon})\), $\epsilon$ $\approx$ 0.2, Case 3
For large n, af(n/b) = 3(n/4)lg(n/4) $\leq$ 3/4nlgn = cf(n), c=3/4
T(n) = $\Theta(nlgn)$


next up previous
Next: Example: Use all three Up: l2 Previous: Example