Content deleted Content added
→Usage of bigO notation. "At least O(...)": imprecision of current statement |
→Usage of bigO notation. "At least O(...)": overindented |
||
Line 654:
:::Any comparison sort algorithm requires {{math|Ω(''n'' log ''n'')}} comparisons in the worst case.
::So this is exactly the bound we're trying to express: no algorithm can have a worst case better than that. The theorem allows linear best cases (it doesn't concern them) and quadratic worst cases (since {{math|''n''<sup>2</sup> {{=}} Ω(''n'' log ''n'')}}). CLRS don't say much about the average case, except giving it as an exercise to proof that linear average case is impossible.
|