Uploaded by Kelvin Choy

Ch.17 Permutation and Combination

advertisement
Ch.17 Permutation and Combination
1 Direct multiplication
β—‹
Example:
If three people A, B and C go to a 3 stories
hotel, how many arrangements are there such
that A and B would not be on the same floor?
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  =3×2×3=18
For A is on 1/F, B must be on 2/F or 3/F, vice versa.
2 Permutation
β—‹
π‘ƒπ‘Ÿπ‘› =
𝑛!
(𝑛 − π‘Ÿ )!
Example:
How many ways can Andy, Bob, Cathy be lined up?
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝑃33 = 6
Note that
There are 3 people
The “capacity” of the line is 3
We may see it as: 𝑃33
Note that
Unlike combination, permutation includes arrangement.
For example, “Andyοƒ Bobοƒ Cathy” and “Andyοƒ Cathy οƒ Bob” are different.
3 Combination
β—‹
πΆπ‘Ÿπ‘› =
𝑛!
(𝑛 − π‘Ÿ )! π‘Ÿ!
Example:
How many ways can Andy, Bob, Cathy form a team of 2?
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝐢23 = 3
Note that
We may see it as: 𝐢23
There are 3 people
The “capacity” of the team is 2
Note that
Unlike permutation, combination excludes arrangement.
For example, “Andyοƒ Bob” and “Bobοƒ Andy” are the same.
4 Common question type
β—‹
Digits
Example:
How many 3-digit numbers can 0, 1 and 2 form?
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝑃33 − 𝑃22 = 4
012
021
102
120
201
210
012
021
Note that
Digits cannot start with 0
Letters and Words
Example:
How many different words can B, A, L, L form?
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝐢24 × 2 = 12
Consider the two “L” first:
There are 4 spaces to place 2 “L”
Lining up
Example:
If Andy, Bob, Cathy and Daniel line up, find the number of
ways such that Daniel is behind Cathy
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝑃44 ÷ 2 = 12
Note that
Daniel is either behind or in front of Cathy
Example:
There are 2 boys and 3 girls lining up. Find the number of
ways such that the boys are standing next to each other.
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 4 × π‘ƒ22 × π‘ƒ33 = 48
𝑃22
𝑃33
_B _B _G _G _G
The “box” can be in
4 different position
of the 5 spaces
Separation
Group with less individuals
Group with more individuals
Example:
There are 4 boys and 3 girls lining up. Find the number of
ways such that no boys are next to each other.
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  = 𝑃44 × π‘ƒ33 = 144
5 Complementary Cases
β—‹
π‘΅π’–π’Žπ’ƒπ’†π’“ 𝒐𝒇 π’˜π’‚π’šπ’” 𝒇𝒐𝒓 𝒆𝒗𝒆𝒏𝒕 𝑨 𝒏𝒐𝒕 𝒕𝒐 𝒉𝒂𝒑𝒑𝒆𝒏
= 𝑨𝒍𝒍 π’π’–π’•π’„π’π’Žπ’† − π‘΅π’–π’Žπ’ƒπ’†π’“ 𝒐𝒇 π’˜π’‚π’šπ’” 𝒇𝒐𝒓 𝒆𝒗𝒆𝒏𝒕 𝑨 𝒕𝒐 𝒉𝒂𝒑𝒑𝒆𝒏
Example:
Find the number of ways such that there are at least 1 head in
5 tosses of a fair coin.
π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘ 
= 𝐴𝑙𝑙 π‘œπ‘’π‘‘π‘π‘œπ‘šπ‘’ − π‘π‘’π‘šπ‘π‘’π‘Ÿ π‘œπ‘“ π‘€π‘Žπ‘¦π‘  π‘œπ‘“ 𝑔𝑒𝑑𝑑𝑖𝑛𝑔 π‘Žπ‘™π‘™ π‘‘π‘Žπ‘–π‘™
= 25 − 1 = 31
Download