Inversion (discrete mathematics)
Appearance
Inversion in a sequence refers to a pair of numbers that are "out of order" with respect to an ascending or descending order.
Formally, let be an array of distinct numbers. If and , then the pair is called an inversion of .
- Cormen, Thomas H. (2001). Introduction to Algorithms (2nd ed.). MIT Press and McGraw-Hill. ISBN 0-262-53196-8.
{{cite book}}
: Unknown parameter|coauthors=
ignored (|author=
suggested) (help)