Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Permutations
Combinatorics
Pigeonhole principle
Fundamental Theorem of Counting
Essentials: Permutations & Combinations
(So that’s how we determine the number of possible samples!)
Example: 8! = 8 * 7 *6 * 5 * 4 * 3 * 2 *1 = 40,320
Permutations
A Permutation is an arrangement of n objects
in a specific order using r objects at a time.
n!
n Pr
(n r )!
Permutations: Examples
Example: A news program n!
has time to present 2 of four n Pr
available news stories. How (n r )!
many ways can the evening
4!
n P2
news be set up?
(4 2)!
4 * 3 * 2 *1
4 P2
Checking the process:
If we let A, B, C, D represent the four
shows, then the possible show
2 *1
orders would be:
AB BA CA DA 24
4 P2 12
AC BC CB DB
AD BD CD DC
2
Twelve (12) possible presentations
where order matters.
Combinations
A combination is the selection of r objects
from n objects without regard to order.
n!
n Cr
(n r )!r!
Combinations: Examples
Example: A news program has time n!
to present 2 of four available news n Cr
(n r )!r!
stories. How many different sets
of stories can be presented on 4!
the evening news? n C2
(4 2)!2!
Checking the process:
If we let A, B, C, D represent the four
4 * 3 * 2 *1
n C2
shows, then the possible show orders
would be:
AB BA CA DA 2 *1* 2 *1
AC BC CB DB
AD BD CD DC
However, AB and BA represent the 24
n C2 6
presentation of the same two stories. If
order does not matter, one of these two
may be deleted. Repeating the process
4
results in: AB, AC, AD, BC, BD, CD,
Next slide
•Another way to solve is a
factor tree where the number
of end branches is your
answer. b
a c
a
b c
a
c
b
Fundamental Counting
Principle
Suppose that a certain procedure P can
be broken into n successive ordered
stages, S1, S2, . . . Sn, and suppose that
S1 can occur in r1 ways.
S2 can occur in r2 ways.
Sn can occur in rn ways.
Then the number of ways P can occur is
r1 r2 rn
Ex. 2: An experimental psychologist
uses a sequence of two food rewards
in an experiment regarding animal
behavior. These two rewards are of
three different varieties. How many
different sequences of rewards are
there if each variety can be used only
once in each sequence?
3 2
Using the fundamental counting principle:
X
1st reward 2nd reward
Permutations
An r-permutation of a set of n
! means
elements is an orderedfactorial
selection
of r elements from theEx.
set3!of n
= 3∙2∙1
elements
n!
n Pr
n r !
0! = 1
Ex. 1:How many three-letter
codes are there using letters
A, B, C, and D if no letter can
be repeated?
4!
4 P3 24
1!
Combinations
n!
n Cr
r!n r !
Order does
NOT
Where n & r matter!
are nonnegative integers & r
<n
Ex. 3: How many committees of
three can be selected from four
people?
Use A, B, C, and D to represent the people
Note: Does the order matter?
4!
4 C3 4
3!1!
Ex. 4: How many ways can
the 4 call letters of a radio
station be arranged if the first
letter must be W or K and no
letters repeat?
2 25 24 23
27,600
Ex. 5: In how many ways can
our class elect a president,
vice-president, and secretary
if no student can hold more
than one office?
n P3
Ex. 6: How many five-card
hands are possible from a
standard deck of cards?
52 C5 2,598,960
Ex. 7: Given the digits 5, 3, 6, 7,
8, and 9, how many 3-digit
numbers can be made if the first
digit must be a prime number?
(can digits be repeated?)
Think of these
numbers as if they
3 5 4 60
were on tiles, like
Scrabble. After you
use a tile, you can’t
use it again.
Ex. 8: In how many ways
can 9 horses place 1st, 2nd,
or 3rd in a race?
P
9 3 504
Ex. 9: Suppose there are 15 girls
and 18 boys in a class. In how
many ways can 2 girls and 2
boys be selected for a group
project?