Combinatorics deals with finite sets and belongs to the subfield of discrete maths.
For two disjoint sets, the cardinality of the union is the sum of the cardinalities.
The product of the cardinalities of two sets is the cardinality of the cartesian product.
If there is a bijection between two sets, they have the same cardinality.
bijective
Proof of the product of cardinalities:
, gesucht:
(→ n-tuple)
If is injective: (if the resulting images are different, the underlying inputs are different)
(since different inputs lead to different outputs, it’s injective )
If is surjective, we need to show:
Sampling elements from choices
When order matters:
With replacement:
Without replacement: (pool gets smaller with each sample)When order doesn’t matter:
(binomial coefficient = “selection from a partial multiset”)
The above but with more words:
With replacement vs. without replacement
(i) Arrangement without constraints “with replacement”: How many ways are there to arrange elements of ?
, Note: , order matters, as we’re dealing with ordered tuples.
→
(ii) Arrangement with unique elements “without replacement”: How many ways are there to arrange elements of without repetition?
In underbraces are the number of possibilities for choosing → .(further explanation) … starts from choices, always one less until we reach terms. We want to know the permutations of elements, so the product should stop after terms, hence the . e.g. for , with … … without … . Note also, that dividing by is is like crossing out the last terms, keeping exactly . So that’s why we can rewrite this with factorials, which looks very similar to the binomial coefficient: , just that it doesn’t divide by to allow for repetitions.
permutations: How many ways are there to arrange all elements of ?
, bijective permutation function
(exactly what we had in (ii) above)
→
^b4a0f0Link to originalPermutation notation
We can denote the permutation in three ways:
(1) Two rows – the first row is the original order, the second row is the new order:
, e.g.:
(2) or we just take the second row: ,
(3) or we take the cycle notation: , i.e. .
Each group is its own cycle – no duplicates / loops (else it wouldn’t be bijective which is a requirement for a permutation).
Transclude of inclusion-exclusion-principle