Combinatorics Flashcards
Multiplication principle of combinatorics
The amount of combinations of items from different sets, assuming one item per set, is equal to the product of the number of items on each set.
Example, pairs of trousers and shoe combinations = n trousers * p shoes
What is permutation and what is combination?
A permutation is an arrangement of things in different orders, whereas combination is simply concerned with combining things.
Permutation = Order matters
Combination = Order does not matter
Order matters, no repetition
nPr = n!/(n-r)!
Where n = total number of items on the set to choose from and r = number of items in the permutation
Order doesn’t matter, no repetition
nCr = n!/r!(n-r)!
Where n = total number of items on the set to choose from and r = number of items in the combination
Order matters, repetition allowed
nPr = n^(r)
Order doesn’t matter, repetition allowed
nCr = (n+r - 1)!/r!(n-1!)