next up previous
Next: Worst Case Revisited Up: l3 Previous: Worst Case

Best Case

Partition yields subarrays of size n/2 each.

T(n) = 2T(n/2) + $\Theta(n)$
a=2, b=2, f(n) = $\Theta(n)$ = \(\Theta(n^{log_2 2})\) = $\Theta(n^1)$, Case 2
T(n) = \(\Theta(n lg n)\)



Average Case



\(\Theta(n lg n)\)


next up previous
Next: Worst Case Revisited Up: l3 Previous: Worst Case