Subsets

Subset (WMA link)


Subsets[list]

finds a list of all possible subsets of list.

Subsets[list, n]

finds a list of all possible subsets containing at most n elements.

Subsets[list, {n}]

finds a list of all possible subsets containing exactly n elements.

Subsets[list, {min, max}]

finds a list of all possible subsets containing between min and max elements.

Subsets[list, spec, n]

finds a list of the first n possible subsets.

Subsets[list, spec, {n}]

finds the n-th possible subset.

All possible subsets (power set):

All possible subsets containing up to 2 elements:

Subsets containing exactly 2 elements:

The first 5 subsets containing 3 elements:

All subsets with even length:

The 25th subset:

The odd-numbered subsets of {a,b,c,d} in reverse order:

SokalSneathDissimilarity
YuleDissimilarity