sortidest
Sortidest is a term used in data analysis to denote a dimensionless index that quantifies how sorted a sequence is. The concept treats sortedness as a continuous spectrum, bounded between 0 and 1. The term is a nonce coinage that appears in some scholarly and practical discussions but is not part of a formal standard.
Definition and computation: For a sequence S of length n, let inv(S) be the number of inversions
Applications and interpretation: Sortidest serves as a heuristic to assess the expected effectiveness of adaptive sorting
Example and limitations: Consider the sequence [1, 2, 3, 5, 4]. Here n = 5 and inv = 1,