next up previous
Next: Up: Previous:

Example

T(n) = 2T(n/2) + n
a=2, b=2, f(n) = n
nlog2 2 = n = $\Theta(n)$, Case 2
T(n) = $\Theta(nlgn)$


next up previous
Next: Up: Previous: