Abstract
-
The arrangement of objects where order matters
-
Given objects, there is a total permutations. For example, given 3 objects , the total number of permutations is - , , , , ,
Permutation Inversion
- A pair of elements that are out of order relative to each other compared to their natural order in sorted permutation
- For example, given a permutation , the pairs and are inversions because comes before both
Indicate Chaoticness
The number of inversions in a permutation can indicate how far the permutation is from being sorted