Beruflich Dokumente
Kultur Dokumente
Counting
Summation Principle
Multiplication Principle
Permutation
Combination
Pigeon Hole Principle
Probability
Why?
If the first m pigeon(s) choose different holes,
therefore all m hole(s) will be occupied. Since there
are n pigeon(s) where m < n, then (m+1)th pigeon has
to share the hole.
-Pigeon
-Pigeon hole
n (pigeon) = 5
m (pigeon hole) = 4
Example #1 :
If there are 11 football players in a team and if the
team win by 12-0, then there must be one player from
the team who scored two or more goals.
Assume:
11 players as pigeon holes
12 goals as pigeons
Example # 2:
If you have to attend 6 classes from Monday to
Friday, there must be one day where you have two or
more classes.
Assume:
5 days (Monday-Friday) as pigeon holes
6 classes as pigeons
Example #3:
If any five numbers from set {1,2,3,4,5,6,7,8} were
chose, then two of the numbers if added will produce a
sum of nine.
From the original set, there are four sets (or pigeon
holes), where each set consists of two numbers if
added will produce number 9: {1,8}, {2,7}, {3,6},
{4,5}
Worst case scenario: the first four numbers (pigeons)
were chosen from four different sets
However, the fifth must come from the four sets
where if two elements added will produce number 9.
CPT112 March 3, 2015
5.2 Pigeon Hole Principle
7/12
Example 4:
There are 20 computer servers that are connected. Show
that there are at least two servers that have the same
number of connections.
Example:
In a class of 52 students, there will be at least 10
students with the same grade (assume the grades
are only A, B, C, D, or F)
52 students/pigeons
5 grades/pigeons holes
Based on PHP2: 11 = 52/5
Example:
In a class of 52 students, there will be at least 10
students that have the same grade (assume the grade
are A, B, C, D, or F)
52 students/pigeons
5 grade/hole
hole/ A B C D F Based on PHP2: 11 = 52/5
Grade
1 = 5/5
2 = 10/5
Pigeon/
Student 10 = 50/5
11= 52/5
CPT112 March 3, 2015
Example
11/12
Example 2:
Some banks open on Saturdays, except the first
Saturday of the month. Show that there is/are cases
where those bank employees have to work 4
Saturdays in one month.
hole/ Jan Feb Mar Dec
month
1 = 12/12
Pigeon/
... 2 = 24/12
3 = 36/12
Saturday 4 = 48/12
5= 52/12
Example:
Some banks open on Saturdays, except the first
Saturday of the month. Shows that there is/are cases
where those bank employees have to work 4
Saturdays in one month.