The inversion number of a permutation isFor
3142, the inverted pairs of values are , giving three. The inversion number ranges from zero for increasing order to for decreasing order; it is the minimum number of adjacent transpositions needed to sort the permutation. Its parity gives the sign of a permutation, . The same pair-counting formula defines the word inversion number when repeated symbols are allowed. Articles by others on the same topic
There are currently no matching articles.