Combinations and Permutations
Combinations
There are
There are
why tho?
Suppose we have 5 objects (ABCDE), and want to find the number of ways to pick 2 objects such as AB or AD.... There are
Combinations of ABCDE | First two letters |
---|---|
ABCDE | AB |
ABDCE | AB |
ABEDC | AB |
ABECD |
AB |
ABDEC | AB |
ABCED | AB |
... | ... |
We see that the first two letters repeat six times. Pay special attention to the last 3 letters. Notice that we go through all
However, we still have not accounted for the shuffling of A & B
Combinations of ABCD | First two letters |
---|---|
ABCDE | AB |
BACDE | BA |
As Combinations do not care about order, AB and BA are equivalent or repeated. Since there are
Thus the total number of ways to pick 2 objects from 5 objects is
Permutations
How many ways can you pick and arrange
In permutation, order matters. For example, given 3 choices (ABC) and pick two.
Thus, hopefully you can understand why the formula works, given the above explanation for combinations.
John is trying to set up a 6 digit password. Given that he has 12 numeric characters, How many permutations of his passwords are there?
Ans:
How many different path can be made from point A to B, without passing through C.
Ans:
There are 9 moves to make, you have to move up (U) 3 times, and right (R) 6 times to reach from A to B. Thus the number of ways to reach from A to B is the number of ways you can choose 3 of the moves to be up, which is
The number of ways to go from A to C is
Thus, the total number of ways to move from A to B, while passing through C is
Thus the answer is