Combinatorica`
Combinatorica`
RankGrayCodeSubset
RankGrayCodeSubset[l,s]
gives the rank of subset s of set l in the Gray code ordering of the subsets of l.
Details and Options
- To use RankGrayCodeSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].