indexth
Indexth is a term encountered in discussions of indexed sequences and data structures. It denotes the element located at a specified index within an ordered collection. The term is formed from index, meaning a position, together with the ordinal suffix -th, analogous to i-th or n-th. In formal writing, indexth(S, i) is used to indicate the value at position i in the sequence S, assuming a defined indexing convention.
In mathematical notation, a finite sequence is written as S = (a1, a2, ..., an). Under 1-based indexing,
Examples: let S = [5, 8, 13, 21]. Then indexth(S, 3) equals 13 under 1-based indexing, while in
Complexity and retrieval: In array-like structures, indexth retrieval is typically O(1). In linked lists, it is
See also: nth element, i-th, indexing, 0-based vs 1-based indexing, and order statistics.