Inversion (kombinatorik)
not parsed now - please come back in a few minutesMedia som används på denna webbplats
Example of inversions of a permutation
The example permutation (4,1,5,2,6,3) has the left inversion count (0,1,0,2,0,3)
and the inversion set { (1,2) , (1,4),(3,4) , (1,6),(3,6),(5,6) }.
The left inversion count converted to decimal is 373 - the permutation's reverse colexicographic rank.
(This permutation is also shown in this array.)
The inversion set contains 6 of the = 15 2-subsets of a 6-set.
![Sloane's](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d8/OEISicon_light.svg/11px-OEISicon_light.svg.png)
Författare/Upphovsman: Quartl, Licens: CC BY-SA 3.0
Illustration of an inversion of a permutation.
Cayley graph of S4 generated by the transpositions that swap neighbouring elements
Below the permutations the inversion vectors are shown. Their bitwise-smaller relation corresponds to the edges.
![]() | This SVG was created with Inkscape. |