Home

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.

1
≤
k
≤
|S|,
the
kthelement
of
S,
denoted
K_k(S),
is
the
unique
element
x
of
S
for
which
exactly
k−1
elements
y
in
S
satisfy
y
<
x.
Equivalently,
K_k(S)
is
the
k-th
order
statistic
of
S.
If
no
natural
order
exists,
K_k
is
defined
relative
to
a
specified
indexing
function
e:
S
→
{1,...,|S|}
that
assigns
a
distinct
position
to
each
element.
k-th
element
in
the
given
enumeration
of
a
sequence.
In
streaming
or
online
contexts,
algorithms
may
approximate
or
maintain
the
kthelement
without
full
sorting.
3,
the
third
smallest.
In
a
list
L
=
[a,
b,
c,
d],
K_2(L)
corresponds
to
b
under
the
given
order.
fixed
position
element
is
required
efficiently.