Definition
Combinatorics
Combinatorics is a branch of discrete mathematics that deals with combinations of objects to a finite set in accordance with certain constraints.
Rules
Combinatorics is based on the following rules:
Sum Rule
Let and be two finite sets, then:
Product Rule
Definition
Link to originalProduct Rule (Combinatorics)
Suppose an object is constructed through successive stages. If every partial construction reaching stage can be extended in exactly ways, then the number of complete constructions is
The choices at a later stage may depend on earlier choices; only the number of available choices must be the same for every partial construction at that stage.
For fixed finite choice sets , this is equivalently the cardinality of their Cartesian product:
Equality Rule
If there exists a bijective relation between two finite sets , then has as many elements as :
Counting
| Permutations | Variations | Combinations | |
|---|---|---|---|
| without repetition | |||
| with repetition |
Permutation with Repetition
Definition
Link to originalPermutation with Repetition
A permutation with repetition chooses all occurrences in a multiset and places them in order. Order matters, so and are different arrangements. Equal copies are nevertheless indistinguishable, so swapping the two copies of within does not create a new arrangement. Each distinct element must occur with its fixed multiplicity.
Let a multiset contain distinct elements with multiplicities , where
Such a permutation is an ordered tuple of length containing exactly copies of each . The number of distinct such permutations is the multinomial coefficient
Permutation without Repetition
Definition
Link to originalPermutation without Repetition
A permutation without repetition chooses all distinct elements and places them in order. Order matters, and every element is used exactly once.
For a finite set with , it is an ordered tuple in which every element of occurs exactly once.
Equivalently, the position map
is bijective.
Variation with Repetition
Definition
Link to originalVariation with Repetition
A variation with repetition chooses elements from available elements and places them in order. Order matters, and the same element may be chosen more than once.
For a finite set with , it is an ordered tuple
Equivalently, the tuple defines an unrestricted position map
Unlike a variation without repetition, this map need not be injective. The number of variations with repetition is
Variation without Repetition
Definition
Link to originalVariation without Repetition
A variation without repetition chooses different elements from available elements and places them in order. Order matters, so and are different selections, and no element may occur twice.
For a finite set with , it is an ordered tuple
Equivalently, the tuple defines an injective position map
The number of such ordered selections is
This generalises a permutation without repetition: a variation may use any elements, while a permutation is the special case , in which every element is used.
Combination with Repetition
Definition
Link to originalCombination with Repetition
A combination with repetition chooses elements from available elements without placing them in order. Order does not matter, and the same element may be chosen more than once. Thus choosing gives the same combination as choosing .
For a finite set , such a combination is a multiset of size . It is determined by the multiplicities
where records how many copies of were chosen. The number of combinations with repetition is
The construction can be pictured as filling slots, one selection at a time. At every selection all elements remain available, so an earlier choice never removes anything. Once the last slot is filled, the order of the slots is discarded and only the multiplicities remain:
Combination without Repetition
Definition
Link to originalCombination without Repetition
A combination without repetition chooses different elements from available elements without placing them in order. Order does not matter, so choosing then gives the same combination as choosing then , and no element may be chosen twice.
For a finite set with , a combination of size is a subset
The number of such combinations is the binomial coefficient