Selection algorithm: Difference between revisions

Content deleted Content added
References: see also (related but not strictly selection)
Line 104:
 
Because [[sorting algorithm#Language support|language support for sorting]] is more ubiquitous, the simplistic approach of sorting followed by indexing is preferred in many environments despite its disadvantage in speed. Indeed for [[Lazy evaluation|lazy languages]], this simplistic approach can even achieve the best complexity possible for the ''k'' smallest/greatest sorted (with maximum/minimum as a special case) if the sort is lazy enough.
 
== See also ==
* [[Ordinal optimization]]
 
== References ==