NIST

select kth element

(classic problem)

Definition: Find the kth smallest element of a set. Two approaches are a modified distribution sort or select and partition.

Also known as selection problem, find kth least element, kth smallest element.

See also Select, MODIFIND, Find.

Note: The select-and-partition approximately divides in half the number of elements which must be considered at each step. The modified distribution sort divides by m the number of elements at each step. The latter is faster, but the former is more generally applicable.

Author: PEB


Go to the Dictionary of Algorithms and Data Structures home page.

If you have suggestions, corrections, or comments, please get in touch with Paul E. Black.

Entry modified 4 February 2005.
HTML page formatted Mon Sep 11 09:46:07 2006.

Cite this as:
Paul E. Black, "select kth element", in Dictionary of Algorithms and Data Structures [online], Paul E. Black, ed., U.S. National Institute of Standards and Technology. 4 February 2005. (accessed TODAY) Available from: http://www.nist.gov/dads/HTML/selectkth.html

to NIST home page