Combinatorica`
Combinatorica`
RankBinarySubset
RankBinarySubset[l,s]
gives the rank of subset s of set l in the ordering of subsets of l, obtained by interpreting these subsets as binary string representations of integers.
Details and Options
- To use RankBinarySubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].