Combinatorica`
Combinatorica`
RankKSubset
RankKSubset[s,l]
gives the rank of -subset s of set l in the lexicographic ordering of the -subsets of l.
更多信息和选项
- To use RankKSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].