Combinatorica`
Combinatorica`
RankPermutation
gives the rank of permutation p in lexicographic order.
Details and Options
- To use RankPermutation, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
gives the rank of permutation p in lexicographic order.