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