Permutations are for lists, order matters.
Better Explained
Combinations are for groups, order does not matter.
Permutations
A Permutation is an ordering of elements from a group of objects.
Permutations of a set
Say we have n elements and we want to arrange all of them with a specific order.
To count the number of possible arrangements we use the formula:
Permutations of a Subset
Say we want to order a subset of items picked from a super-set.
To count how many ways we can Pick k elements from a group of n and arrange in a particular order, we use the P(n,k) formula.
P(n, k) = \frac{n!}{(n-k)!}
When we want to order all the elements of a set, the P(n,n) formula reduces to:
Combinations
A Combination is an unordered choice of elements from a bigger set.
The C(n,k) formula tells us how many ways you can Choose k elements from a group of n, where the order is not relevant:
P(n,k) vs C(n,k)
The P(n,k) and C(n,k) formulas differ for a factor n!.
Proof: Indeed, once you have chosen a set of k elements, you get the number of permutations by multiplying by k!
Exercises
Here are a few exercises about permutations and combinations
Ex1 – Permutations of a set
In how many ways we can arrange five cards A, B, C, D, and E?
Hence, the total number of ways to arrange the cards is
Indeed, as 1st card, we can pick one out of five, as 2nd we pick one out of four, .. and so on until we get the last card for which we have no choice.
Ex 2 – Permutations of a subset
In how many ways we can sort the first 2 books in a shelf with 8 books?
Let’s use the formula:
Indeed, to choose the 1st book, we can pick one out of eight, and as 2nd we pick one out of seven.
Ex 2 – Combinations of a subset
How many sets of 3 different book can you borrow from a library containing 7 books?
References
- How to use permutations and combinations, Mario’s Math Tutoring, Youtube
- Easy Permutations and Combinations, Better Explained
- Combinations, brilliant
- Combination formula, Khan Academy
0 Comments