Combinatorica`
Combinatorica`

Inversions

Inversions[p]

counts the number of inversions in permutation p.

Details

See Also

FromInversionVector  ToInversionVector

Tutorials