Combinatorica`
Combinatorica`
GrayCodeKSubsets
GrayCodeKSubsets[l,k]
generates -subsets of in Gray code order.
Details and Options
- To use GrayCodeKSubsets, you first need to load the Combinatorica Package using Needs["Combinatorica`"].
GrayCodeKSubsets[l,k]
generates -subsets of in Gray code order.