Combinatorica`
Combinatorica`

RankKSubset

RankKSubset[s,l]

gives the rank of -subset s of set l in the lexicographic ordering of the -subsets of l.

Details and Options