The pigeonhole principle

Aug 23 2008

What is the pigeonhole principle?

The pigeonhole principle states that, given two natural numbers n and m with n > m, if n items are put into m pigeonholes, then at least one pigeonhole must contain more than one item.

I was thinking like: why pigeons? Who made up this thing?

Pigeon-hole

This is a photograph I took near Charminar, Hyderabad.

Look how the pigeons are sitting in such a disciplined way!!!

Now I know why the pigeonhole principle chose pigeons for illustrating the principle.

Here are some more interesting facts about the pigeonhole principle:

Although the pigeonhole principle may seem to be intuitive, it can be used to demonstrate possibly unexpected results. For example, there must be at least two people in London with the same number of hairs on their heads. A typical head of hair has around 150,000 hairs; it is reasonable to assume that no one has more than 1,000,000 hairs on his head (m = 1 million holes). There are more than 1,000,000 people in London (n is bigger than 1 million objects). If we assign a pigeonhole for each number of hairs on a head, and assign people to the pigeonhole with their number of hairs on it, there must be at least two people with the same number of hairs on their heads.

Uses and applications

The pigeonhole principle often arises in computer science. For example, collisions are inevitable in a hash table because the number of possible keys exceeds the number of indices in the array. No hashing algorithm, no matter how clever, can avoid these collisions. This principle also proves that any lossless compression algorithm that makes at least one input file smaller will make some other input file larger. (Otherwise, two files would be compressed to the same smaller file and restoring them would be ambiguous.)

Forgive me for the big quote. I thought you might be interested.

|

12 responses so far

  1. Pages tagged "photograph"on 24 Aug 2008 at 4:15 am

    [...] bookmarks tagged photograph The pigeonhole principle saved by 2 others     Rabix99 bookmarked on 08/23/08 | [...]

  2. shobanon 24 Aug 2008 at 10:11 am

    nice compilation!!! It will be good if teachers use this for teaching :)

  3. Niyaz PKon 24 Aug 2008 at 10:24 am

    Shoban,
    Thanks.

  4. akhion 25 Aug 2008 at 10:39 am

    Good niyaz. Good comparison. :)

  5. Niyaz PKon 25 Aug 2008 at 11:18 am

    akhi,
    Thanks for reading.

  6. Ashaon 25 Aug 2008 at 11:21 am

    really interesting!!

  7. Niyaz PKon 25 Aug 2008 at 11:22 am

    Asha,
    :)

  8. Rincyon 27 Aug 2008 at 2:24 pm

    Interesting Niyaz….

  9. Niyaz PKon 27 Aug 2008 at 2:34 pm

    Rincy,
    Welcome to diovo. Thanks for reading.

  10. David Houseon 27 Aug 2008 at 6:27 pm

    I believe the term ‘pigeonhole’ originates from http://en.wikipedia.org/wiki/Dovecote. In day-to-day usage, a pigeonhole normally refers to http://en.wikipedia.org/wiki/Pigeonhole_messagebox.

  11. webon 27 Aug 2008 at 7:36 pm

    There’s a whole “branch of mathematics that studies the conditions under which order *must* appear” called [Ramsey Theory](http://en.wikipedia.org/wiki/Ramsey_theory). I don’t know much about it, but it is pretty cool.

  12. [...] public links >> array The pigeonhole principle Saved by KeroChanRules on Sun 28-9-2008 New 113300-ton Carnival Splendor Offers An Array of [...]

Leave a Reply