20 Pigeonhole Principle
20 Pigeonhole Principle
Principle
CS/APMA 202
Rosen section 4.2
Aaron Bloomfield
1
The pigeonhole principle
Suppose a flock of pigeons fly into a set of
pigeonholes to roost
3
Generalized pigeonhole principle
If N objects are placed into k boxes, then
there is at least one box containing N/k
objects
This is Theorem 2
4
Generalized pigeonhole principle
examples
Among 100 people, there are at least
100/12 = 9 born on the same month
7
Rosen, section 4.2, question 32
6 computers on a network are connected to at least 1
other computer
Show there are at least two computers that are have
the same number of connections
9
More elegant applications
Not going over…
10
Quick survey
I felt I understood the material in this
slide set…
a) Very well
b) With some review, I’ll be good
c) Not really
d) Not at all
11
Quick survey
The pace of the lecture for this
slide set was…
a) Fast
b) About right
c) A little slow
d) Too slow
12
Quick survey
How interesting was the material in
this slide set? Be honest!
a) Wow! That was SOOOOOO cool!
b) Somewhat interesting
c) Rather borting
d) Zzzzzzzzzzz
13
Today’s demotivators
14