Combinatorica`
Combinatorica`
UnrankGrayCodeSubset
UnrankGrayCodeSubset[n,l]
gives the subset of list , listed in Gray code order.
Details and Options
- To use UnrankGrayCodeSubset, you first need to load the Combinatorica Package using Needs["Combinatorica`"].