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.
更多信息和选项
- To use RankGrayCodeSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].