Permutations are for lists, order matters.
Combinations are for groups, order does not matter.

Better Explained

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:

    \[n! = n \cdot (n-1) \cdot (n-2) \cdot … \cdot 1\]

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)!}\]

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:

    \[P(n, n) = \frac{n!}{(n-n)!} = n!\]

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:

    \[C(n, k) = {n \choose k}= \frac{n!}{k!(n-k)!}\]

P(n,k) vs C(n,k)

The P(n,k) and C(n,k) formulas differ for a factor n!.

    \[P(n,k) = C(n, k) \cdot k!\]

Proof: Indeed, once you have chosen a set of k elements, you get the number of permutations by multiplying by k!

    \[\begin{aligned} P(n,k) & = C(n, k) \cdot k! \\ & = {n \choose k} \cdot k! \\ & = \frac{n!}{ \cancel{k!} \cdot (n-k)!} \cdot \cancel{k!} \\ & = \frac{n!}{(n-k)!} \end{aligned}\]

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

    \[5! = 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1 = 120\]

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:

    \[{7 \choose 3}= \frac{7!}{3! \cdot 4!}= \frac{7\cdot\cancel{6} \cdot 5 \cdot \cancel{4 \cdot 3 \cdot 2}}{(\cancel{3 \cdot 2}) \cdot (\cancel{4 \cdot 3 \cdot 2})!} = 35\]

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?

    \[{7 \choose 3}= \frac{7!}{3! \cdot 4!}= \frac{7\cdot\cancel{6} \cdot 5 \cdot \cancel{4 \cdot 3 \cdot 2}}{(\cancel{3 \cdot 2}) \cdot (\cancel{4 \cdot 3 \cdot 2})!} = 35\]

References


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *