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