Combinatorica`
Combinatorica`
BinarySubsets
gives all subsets of l ordered according to the binary string defining each subset. For any positive integer n, BinarySubsets[n] gives all subsets of {1,2,…,n} ordered according to the binary string defining each subset.
Details and Options
- To use BinarySubsets, you first need to load the Combinatorica Package using Needs["Combinatorica`"].