Content deleted Content added
Line 52:
== Complexity ==
The expected complexity of this algorithm can be described by the linear recurrence <math>T(n) = 2T\left(\frac{n}{2}\right) + O(n)</math>, which has the well-known solution (via the [[Master Theorem]]) of <math>T(n) \in \Theta(n\log n)</math>. However, the worst case complexity is <math>O\left(n^2\right)</math>.
==References==
|