Permutation and Combinations (CSCI 2824, Spring 2015)This page covers the notions of permutations and combinations. These are structures that do not allow for repetitions. PermutationPermutation
A permutation from of length is an ordered list of length whose elements are drawn from without repetitions. More generally, given a set of elements, a permutation of elements is a sequence of elements of distinct elements chosen from :
Eg., What are all the permutations of elements chosen from the set . Answer:
Number of permutations of lengthdenotes the number of permutations from of length . (Equivalent notations include , , .) What does the number mean?
That gives us by product rule choices overall. We can write the number as . Here are the some simple examples: . (3 factors, counting backwards from 10 to 9 to 8.) . (5 factors, counting backwards from 52 to 48.) Some more examples… Example 1How many 4 digit numbers can we form from the digits {1,2,3,7,9}, where we need to use each digit precisely once? In other words we are looking for a permutation of 4 elements from a set with 5 elements. The answer is which is . Example 2How many four digit numbers can be formed wherein (a) the digits in {1,2,3,7,9} are never used, or (b) if some digit is used it is used multiple times? Weird problem? But can you find a connection between what is asked in Example 1 and Example 2? Often looking at the complement of a set that we need to count can be easier. :-) Example 3Let be two sets where . How many one-to-one correspondences can exist between and ? Answer: Let us write to be . Let be the set .
Each one-to-one correspondence can be formed in this manner. Therefore there are functions. Question: Let us say professor X says that this is the wrong way to do this. He objects that we did not permute . So in his technique:
What is the flaw in his argument? CombinationsWe will now talk about combinations. Note that in permutations the order in which we choose things matter. When doing combinations the order does not matter. A choice or combination of elements out of a set with elements is one where
Combinations
An -combination from is a subset of of size . denotes the number of distinct -combinations from . Equivalent notations include , , , . The formula for is The reason behind is that we don't care about ordering, and the counts the number of repeated permutations of length with the same contents. For instance, 125 and 512 are considered the same combination even though they are different permutations; note that there are permutations of the three digits 1,2,5. Note that in general, whenever , Here are some simple examples: . . Example 4Take the set A ={1,2,3,5}. How many ways are there of choosing a subset with 2 elements? Obviously, in a subset, we do not care if we choose {1,2} or {2,1} they are the same subset. Let us first write down the permutations of 2 elements
Now notice that the number of choices in our problem is exactly half the number of permutations. Since {1,2} is the same as {2,1} {1,3} is the same as {3,1} and so on. So the answer should be 6. Example 5How many bit strings of length 5 contains exactly two 1's (whose positions are unrestricted)? We can represent the possible positions of the two 1's as a subset of of size 2. For instance,
So counting such bit strings boils down to counting the number of subsets of of size 2, which is . Example 6From a group of 10 men and 10 women, how many ways are there to form a committee with 6 members if the committee must have the 2 men and 4 women? Note that to get the configuration we want, it boils down to picking 2 out of 10 men and 4 out of 10 women.
Since we have to do both tasks and they can be done independently, using the product rule, the answer is . |