6.3 Permutations and Combinations Flashcards
(33 cards)
what are two strategies in solving counting problems?
- finding the number of ways to arrange a specified number of distinct elements of a set of a particular size, where the order of the elements matters
- finding the number of ways to select a particular number of elements from a set of a particular size, where the order of the elements selected does NOT matter
In how many ways can we select three students from a group of five students to stand in line for
a picture?
First, note that the order in which we select the students matters. There are five ways to select the first student to stand at the start of the line. Once this student has been selected, there are four ways to select the second student in the line. After the first and second students have been selected, there are three ways to select the third student in the line. By the product rule, there are 5 ⋅ 4 ⋅ 3 = 60 ways to select three students from a group of five students to stand in line for a picture.
In how many ways can we arrange all five of these students in a line for a picture?
To arrange all five students in a line for a picture, we select the first student in five ways, the second in four ways, the third in three ways, the fourth in two ways, and the fifth in one way. Consequently, there are 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 = 120 ways to arrange all five students in a line for a picture.
permutation
An ordered arrangement of a set of objects
r-permutation
An ordered arrangement of r elements of a set
Let S = {1, 2, 3}. The ordered arrangement 3, 1, 2 is what?
a permutation of S
Let S = {1, 2, 3}. The ordered arrangement 3, 2 is what?
a 2-permutation of S
Let S = {a, b, c}. What are the 2-permutations of S?
The ordered arrangements a, b; a, c; b, a; b, c; c, a;
and c, b
P(n, r)
If n is a positive integer and r is an integer with 1 ≤ r ≤ n, then there are
P(n, r) = n(n − 1)(n − 2) ⋯ (n − r + 1)
r-permutations of a set with n distinct elements.
Prove P(n, r) = n(n − 1)(n − 2) ⋯ (n − r + 1)
We will use the product rule to prove that this formula is correct.
The first element of the permutation can be chosen in n ways because there are n elements in the set.
There are n − 1 ways to choose the second element of the permutation, because there are n − 1 elements left in the set after using the element picked for the first position.
Similarly, there are n − 2 ways to choose the third element, and so on, until there are exactly n − (r − 1) = n − r + 1 ways to choose the rth element.
Consequently, by the product rule, there are n(n − 1)(n − 2) ⋯ (n − r + 1) r-permutations of the set.
1 If n and r are integers with 0 ≤ r ≤ n, then P(n, r) = ?
Prove
How many ways are there to select a first-prize winner, a second-prize winner, and a third-prize winner from 100 different people who have entered a contest?
Because it matters which person wins which prize, the number of ways to pick the three prize winners is the number of ordered selections of three elements from a set of 100 elements, that is, the number of 3 permutations of a set of 100 elements.
Consequently, the
answer is
P(100, 3) = 100 ⋅ 99 ⋅ 98 = 970,200.
Suppose that there are eight runners in a race. The winner receives a gold medal, the second place finisher receives a silver medal, and the third-place finisher receives a bronze medal.
How many different ways are there to award these medals, if all possible outcomes of the race can occur and there are no ties?
The number of different ways to award the medals is the number of 3-permutations of a set with eight elements.
Hence, there are P(8, 3) = 8 ⋅ 7 ⋅ 6 = 336 possible ways to award the medals.
Suppose that a saleswoman has to visit eight different cities. She must begin her trip in a specified city, but she can visit the other seven cities in any order she wishes.
How many possible orders can the saleswoman use when visiting these cities?
The number of possible paths between the cities is the number of permutations of seven elements, because the first city is determined, but the remaining seven can be ordered arbitrarily.
Consequently, there are 7! = 7 ⋅ 6 ⋅ 5 ⋅ 4 ⋅ 3 ⋅ 2 ⋅ 1 = 5040 ways for the saleswoman to choose her tour.
If, for instance, the saleswoman wishes to find the path between the cities with minimum distance, and she computes the total distance for each possible path, she must
consider a total of 5040 paths!
How many permutations of the letters ABCDEFGH contain the string ABC ?
Because the letters ABC must occur as a block, we can find the answer by finding the number of permutations of six objects, namely, the block ABC and the individual letters D, E, F, G, and H.
Because these six objects can occur in any order, there are 6! = 720 permutations of the letters ABCDEFGH in which ABC occurs as a block
How many different committees of three students can be formed from a group of four students?
To answer this question, we need only find the number of subsets with three elements from the set containing the four students.
We see that there are four such subsets, one for each of the four students, because choosing three students is the same as choosing one of the four students to leave out of the group.
This means that there are four ways to choose the three students for the committee, where the order in which these students are chosen does not
matter.
r-combination
an unordered selection of r elements from the set
Let S be the set {1, 2, 3, 4}. What is {1, 3, 4}?
A 3-combination from the set
binomial coefficient
The number of r combinations of a set with n distinct elements, denoted C(n, r) or alternately,
What is the number of r-combinations of a set with n elements?
When n is a nonnegative integer and r is an integer with 0 ≤ r ≤ n,
Prove C(n, r)
method 1
The P(n, r) r-permutations of the set can be obtained by forming the C(n, r) r-combinations of the set, and then ordering the elements in each r-combination, which can be done in P(r, r) ways.
Consequently, by the product rule, P(n, r) = C(n, r) ⋅ P(r, r). You can plug and chug/solve for C(n, r) algebraically to yield the solution
Prove C(n, r)
method 2
We can also use the division rule for counting to construct a proof of this theorem.
Because the order of elements in a combination does not matter and there are P(r, r) ways to order r elements in an r-combination of n elements, each of the C(n, r) r-combinations of a set with n elements corresponds to exactly P(r, r)r-permutations.
How many poker hands of five cards can be dealt from a standard deck of 52 cards?
Because the order in which the five cards are dealt from a deck of 52 cards does not matter, there are
C(52, 5) different hands of 5 cards that can be dealt.