Content deleted Content added
→Important notes: Wording |
→Partition-based general selection algorithm: It's meaningless to say "quickselect is 10 times faster than quicksort"; that depends on n. Remove unsourced claim that it is hard to implement. |
||
Line 76:
Like quicksort, the performance of the algorithm is sensitive to the pivot that is chosen. If bad pivots are consistently chosen, this degrades to the minimum-based selection described previously, and so can require as much as O(''n''<sup>2</sup>) time. David Musser describes a "median-of-3 killer" sequence that can force the well-known median-of-three pivot selection algorithm to fail with worst-case behavior (see ''[[#Introselect|Introselect]]'' section below).
== Linear general selection algorithm - Median of Medians algorithm ==
|