SLIDE 3 Permutations Definition 2.
A permutation is an ordering of a set of objects. Puzzles
- a. Q: How many permutations of { a, b, c } are there?
- b. There are four spies. We choose one a pilot and another as co-pilot. Q: How
many ways are there of doing this?
- c. There are five spies. Choose one to go to Miami and another to go to
- Watertown. Q: How many ways can we do this?
- d. Same as above, but choose a 3rd to go to Kalamazoo.
- e. Q: How many permutations are there of r objects selected from a set of size n.
(Notation: P(r, n).)
2018-09-06
Counting Permutations ❖ How many permutations of { a, b, c } are there? An answer:
- There are 3 choices for the 1st
letter.
- There are 2 choices for the
2nd letter.
- There is 1 choice for the 3rd
letter.
- By the Mult. principle, there
are a total of 3 · 2 · 1 = 6 choices. ❖ There are four spies. We choose
- ne a pilot and another as co-pilot.
Question: How many ways are there of doing this? An answer:
- There are 4 choices for the 1st
spy.
- There are 3 choices for the
2nd spy.
- By the Mult. principle, there
are a total of 4 · 3 = 12 choices.
Permutations Definition 2.
A permutation is an ordering of a set of objects. Puzzles
- a. Q: How many permutations of { a, b, c } are there?
- b. There are four spies. We choose one a pilot and another as co-pilot. Q: How
many ways are there of doing this?
- c. There are five spies. Choose one to go to Miami and another to go to
- Watertown. Q: How many ways can we do this?
- d. Same as above, but choose a 3rd to go to Kalamazoo.
- e. Q: How many permutations are there of r objects selected from a set of size n.
(Notation: P(r, n).)
2018-09-06
Counting Permutations
❖ There are five spies. Choose one to go to Miami and another to go to Water-
- town. Question: How many ways are there of doing this?
An answer: 5 · 4 = 20. ❖ Same setup as above, but choose a 3rd to go to Kalamazoo. Question: How many ways are there of doing this? An answer: 5 · 4 · 3 = 60. ❖ Question: How many permutations are there of r objects selected from a set
An answer: P(r, n) = n · (n − 1) · . . . · (n − r + 1) = n! (n − r)!.
Combinations
Definition 3.
- a. A combination is a selection of r objects from a size-n set.
(We don’t worry about order.)
(n
r)
=
n! r!(n−r)!
=
1 r! · P(n, r).
= The number of ways of selecting (choosing) r
- bjects from a set of size n
is:
Puzzles
Suppose a lottery ticket contains 6 numbers from the set { 0, . . . , 39 }.
- a. How many tickets are possible when orders matters?
- b. How many when order doesn’t matter?
Combinations Definition 3.
- a. A combination is a selection of r objects from a size-n set.
(We don’t worry about order.)
(n
r)
=
n! r!(n−r)!
=
1 r! · P(n, r).
= The number of ways of selecting (choosing) r
- bjects from a set of size n
is: Puzzles Suppose a lottery ticket contains 6 numbers from the set { 0, . . . , 39 }.
- a. How many tickets are possible when orders matters?
- b. How many when order doesn’t matter?
2018-09-06
Counting Combinations Suppose a lottery ticket contains 6 numbers from the set { 0, . . . , 39 }.
- a. How many tickets are possible when orders matters?
P(6, 40) = 2763633600.
- b. How many when order doesn’t matter?
C(6, 40) = 3838380.