Inversionsobergrenze
Inversionsobergrenze is a term used in combinatorics and sorting theory to denote the maximal possible number of inversions in a sequence of length n, typically considered over all permutations of n distinct elements. An inversion in a permutation is a pair of positions (i, j) with i < j and the value at i is greater than the value at j. The inversion number inv(π) counts how many such pairs occur for a given permutation π.
The inversionsobergrenze for sequences of length n is n(n−1)/2. This bound is achieved by the strictly decreasing
In cases where the sequence may contain repeated values, the maximum number of inversions can be smaller
Applications of the concept include analyses of sorting algorithms, such as bubble sort, where the number of
See also: Inversion (combinatorics), Permutation, Sorting algorithms.