kthelement
kthelement is a term used in abstract mathematics to denote an element singled out from a structured set by a fixed index k. In practice, kthelement most often refers to the k-th element of a linearly ordered finite set when an explicit ordering is given. The concept can be applied to sequences, lists, or any object equipped with a total order or a chosen enumeration.
Definition: Let S be a finite set endowed with a total order ≤. For an integer k with
Variants: In practice one may distinguish between the k-th smallest element, the k-th largest element, or the
Examples: For the finite set {3, 1, 4, 1, 5} with the usual numeric order, K_3(S) is
Applications: The notion underpins selection problems, order statistics, database queries, and data analysis tasks where a
See also: kth order statistic, order statistics, selection algorithm, order-preserving enumeration.