Combinatorica`
Combinatorica`

LexicographicSubsets

LexicographicSubsets[l]

gives all subsets of set l in lexicographic order.

LexicographicSubsets[n]

returns all subsets of {1,2,,n} in lexicographic order.

Details and Options