8
PIGEONHOLE PRINCIPLE PIGEONHOLE PRINCIPLE

PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

Embed Size (px)

Citation preview

Page 1: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

PIGEONHOLE PRINCIPLEPIGEONHOLE PRINCIPLE

Page 2: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

SocksSocks

You have a drawer full of black and white socks. You have a drawer full of black and white socks. Without looking in the drawer, how many socks Without looking in the drawer, how many socks must you pull out to be sure that you have a pair must you pull out to be sure that you have a pair of the same colour?of the same colour?

Trying to spice up your life, you go and buy a Trying to spice up your life, you go and buy a large number of red socks, green socks, and blue large number of red socks, green socks, and blue sock. Now how many must you pick out to be sock. Now how many must you pick out to be sure of having a pair of the same colour?sure of having a pair of the same colour?

Now, being of a mathematical persuasion, you Now, being of a mathematical persuasion, you have have nn different coloured socks in your drawer. different coloured socks in your drawer. Now how many must you pick to be sure of Now how many must you pick to be sure of having a pair of the same colour?having a pair of the same colour?

Page 3: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

Pigeonhole PrinciplePigeonhole Principle

If you place If you place n n + 1 + 1 objects in objects in nn holes, then holes, then at least one at least one hole must hole must contain contain more than more than one object.one object. 9 holes, and 10 = 9 + 1 pigeons.

So at least 1 hole contains at least 2 pigeons.

Page 4: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

More SocksMore Socks A dog-owner has a drawer with her dog-socks in it. Each sock is A dog-owner has a drawer with her dog-socks in it. Each sock is

either black or white. Presuming the dog has 4 legs, each of which either black or white. Presuming the dog has 4 legs, each of which needs a sock, how many must be taken from the drawer to ensure needs a sock, how many must be taken from the drawer to ensure that the dog has 4 socks of the same colour?that the dog has 4 socks of the same colour?

What if there are dog socks in all the colours of the rainbow, plus What if there are dog socks in all the colours of the rainbow, plus black and white – how many must be picked now to guarantee 4 black and white – how many must be picked now to guarantee 4 socks of the same colour?socks of the same colour?

Paul the Octopus has a Paul the Octopus has a drawer with socks, each drawer with socks, each of which is a colour of which is a colour featured on the German featured on the German flag. How many socks flag. How many socks must he pick in order to must he pick in order to have 8 of the same have 8 of the same colour?colour?

Page 5: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

Generalised PPGeneralised PP

If you have If you have nn boxes, and boxes, and n kn k + 1 + 1 objects, then at least one box objects, then at least one box contains more than contains more than kk objects. objects.

Page 6: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

ExamplesExamples

1.1. How many people must be assembled to ensure How many people must be assembled to ensure that 10 of them were born on the same day of the that 10 of them were born on the same day of the week? (EGMO pre-selection test 2012)week? (EGMO pre-selection test 2012)

2.2. Suppose 251 numbers are chosen from 1, 2, 3, … , Suppose 251 numbers are chosen from 1, 2, 3, … , 500. Show that, no matter how the numbers are 500. Show that, no matter how the numbers are chosen, you must have 2 that are consecutive. chosen, you must have 2 that are consecutive. (EGMO selection test 2012)(EGMO selection test 2012)

3.3. Seven darts are thrown at a circular dartboard of Seven darts are thrown at a circular dartboard of radius 10cm. Show that there will always be two radius 10cm. Show that there will always be two darts that are at most 10cm apart. (EGMO selection darts that are at most 10cm apart. (EGMO selection test 2012)test 2012)

4.4. A doctor has a row of 16 chairs in her waiting room. A doctor has a row of 16 chairs in her waiting room. What’s the least number of patients she must have What’s the least number of patients she must have to ensure that three consecutive chairs are filled?to ensure that three consecutive chairs are filled?

Page 7: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

More ExamplesMore Examples

5.5. Show that at a party with 6 people, there are Show that at a party with 6 people, there are two people who know the same number of two people who know the same number of people at the party. Assume that “knowing people at the party. Assume that “knowing someone” is a symmetric relation, i.e. if someone” is a symmetric relation, i.e. if xx knows knows yy then then yy knows knows xx (though may not be able to (though may not be able to remember his name, which can be remember his name, which can be embarrassing).embarrassing).

6.6. Given any 13 integers, show that there is a pair Given any 13 integers, show that there is a pair whose difference is divisible by 12. whose difference is divisible by 12.

7.7. Given any 26 integers, show there is a pair Given any 26 integers, show there is a pair whose sum, or difference, is divisible by 48.whose sum, or difference, is divisible by 48.

Page 8: PIGEONHOLE PRINCIPLE. Socks You have a drawer full of black and white socks. Without looking in the drawer, how many socks must you pull out to be sure

General CommentGeneral Comment

The PP sounds pretty vague – it doesn’t tell you The PP sounds pretty vague – it doesn’t tell you exactly how many people are in any given hole, it exactly how many people are in any given hole, it just gives a lower bound on the maximum number of just gives a lower bound on the maximum number of objects per hole. This means that it relates to objects per hole. This means that it relates to existence questions – i.e. show that a certain type of existence questions – i.e. show that a certain type of value exists, without finding the exact value. In fact, value exists, without finding the exact value. In fact, if you could find the value, you wouldn’t need the PP!if you could find the value, you wouldn’t need the PP!E.g. in Q1, you can’t say what day the 10 birthdays E.g. in Q1, you can’t say what day the 10 birthdays must be on, or whether there or more than ten must be on, or whether there or more than ten birthdays on that day – you can only say that there birthdays on that day – you can only say that there must be some day with at least 10 birthdays on it.must be some day with at least 10 birthdays on it.In Q3, you don’t find the two consecutive numbers, In Q3, you don’t find the two consecutive numbers, because you can’t! But you can show that, no matter because you can’t! But you can show that, no matter how you pick them, they must be there.how you pick them, they must be there.