SlideShare ist ein Scribd-Unternehmen logo
1 von 17
J.M.S.S. Silva
Pigeon-hole Principle

              If n (> m)
            pigeons are put
                 into m
             pigeonholes,
            there's a hole
            with more than
              one pigeon.
Alternative Forms
• If n objects are to be allocated to m
  containers, then at least one container
  must hold at least ceil(n/m) objects.
• For any finite set A , there does not exist
  a bijection between A and a proper
  subset of A .
• Let |A| denote the number of elements in
  a finite set A. For two finite sets A and B,
  there exists a 1-1 correspondence f: A-
  >B iff |A| = |B|.
History
      The first statement of the
       principle is believed to
       have been made by
       Dirichlet in 1834 under the
       name Schubfachprinzip
       ("drawer principle" or
       "shelf principle")
      Also known as Dirichlet's
       box (or drawer) principle
General Problems
 There 750 students in the a batch at
 UOM. Prove that at least 3 of them have
 their birthdays on the same date ?
   ○ 366 * 2= 732 < 750
   ○ Thus at least 3 students have the birthday
    on the same date.
Problems on Relations
   There are 50 people in a room. some of them are
    friends. If A is a friend of B then B is also a friend of
    A. Prove that there are two persons in the room
    who have a same number of friends.

   In league T20 tournament of 16 cricket
    teams, every two teams have to meet in a game.
    Prove that at any time there are two teams which
    played equal number of matches.
Solution
   Case 1                             Case 2
     There exists a person              There does not exists
      with 49 friends (he is a            a person with 49
      friend of all other people)         friends
     Then there cannot be a             The no of friends vary
      person with 0 friends               between 0 – 48 .
     The no of friends vary             There are 50 people
      between 1 – 49 .                    and only 49 values.
     There are 50 people and
      only 49 values.
Problems On Divisibility
   Prove that there
    exists a multiple of
    2009 whose decimal
    expansion contains
    only digits 1 and 0.
Answer
   Consider 2010 numbers
          - 1,11,111,1111, … ,1111…111.

 Each of these numbers produce one of 2009
  remainders
        - 0,1,2,3 ,…,2008
 We have 2010 numbers and 2009 remainders
 By pigeon-hole principle some two numbers have the
  same remainder .Let those 2 numbers be A and B
  (A>B)
 Consider A-B. which is a multiple of 2009.
        - In the form of 11…1100…000
Problems On Divisibility
   Prove that of any 52 natural numbers one can find
    two numbers n and m such that either their sum m+n
    or difference m-n is divisible by 100.

     Consider sets {0},{1,99},{2,98}….{49,51},{50}
     There are 51 sets
     By pigeon hole principle at least 1 set should have 2
      members
     If we consider any set above if they have 2 members in the
      set, m+n or m-n is divisible by 100
Problems on Geometry
   51 points are placed, in a random way, into a
    square of side 1 unit. Can we prove that 3 of these
    points can be covered by a circle of radius 1/7 units
    ?
Answer
    To prove the result, we may divide
    the square into 25 equal smaller
    squares of side 1/5 units each.
    Then by the Pigeonhole Principle, at
    least one of these small squares
    should contain at least 3 points.
    Otherwise, each of the small
    squares will contain 2 or less points
    which will then mean that the total
    number of points will be less than
    50 , which is a contradiction to the
    fact that we have 51 points in the
    first case !
Answer - continue
   Now the circle
    circumvented around the
    particular square with the
    three points inside should
    have
   Radius=Sqrt(1/100+1/100
    )
           =Sqrt(1/50)
           <Sqrt(1/49)=1/7
                                 1/10
Applications
   Lossless data compression cannot guarantee
    compression for all data input files.
   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
   In probability theory, the birthday problem, or
    birthday paradox pertains to the probability
    that in a set of randomly chosen people some
    pair of them will have the same birthday
Applications
   The proof of Chinese Remainder Theorem
    is based on pigeon-hole principle
        Let m and n be relatively prime positive
        Integers. Then the system:
              x = a (mod m)
              x = b (mod n)
                    has a solution.
References
   http://en.wikipedia.org/wiki/Pigeonhole_principle
   http://en.wikipedia.org/wiki/Johann_Peter_Gustav_
    Lejeune_Dirichlet
   http://en.wikipedia.org/wiki/Lossless_data_compre
    ssion#Limitations
   Article on "What is Pigeonhole Principle?" by
    Alexandre V. Borovik, Elena V. Bessonova.
   Article on "Applications of the Pigeonhole
    Principle" by Edwin Kwek Swee Hee ,Huang
    Meiizhuo ,Koh Chan Swee ,Heng Wee Kuan ,
    River Valley High School
Thank You

Weitere ähnliche Inhalte

Was ist angesagt?

2011 topic 01 lecture 1 - the mole and avogadro's constant
2011 topic 01   lecture 1 - the mole and avogadro's constant2011 topic 01   lecture 1 - the mole and avogadro's constant
2011 topic 01 lecture 1 - the mole and avogadro's constant
David Young
 
B sc_I_General chemistry U-IV Ligands and chelates
B sc_I_General chemistry U-IV Ligands and chelates  B sc_I_General chemistry U-IV Ligands and chelates
B sc_I_General chemistry U-IV Ligands and chelates
Rai University
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
nielsoli
 
The uncertainty principle
The uncertainty principleThe uncertainty principle
The uncertainty principle
farman53
 

Was ist angesagt? (20)

Quantum number and Pauli exclusion principle
Quantum number and Pauli exclusion principleQuantum number and Pauli exclusion principle
Quantum number and Pauli exclusion principle
 
2011 topic 01 lecture 1 - the mole and avogadro's constant
2011 topic 01   lecture 1 - the mole and avogadro's constant2011 topic 01   lecture 1 - the mole and avogadro's constant
2011 topic 01 lecture 1 - the mole and avogadro's constant
 
B sc_I_General chemistry U-IV Ligands and chelates
B sc_I_General chemistry U-IV Ligands and chelates  B sc_I_General chemistry U-IV Ligands and chelates
B sc_I_General chemistry U-IV Ligands and chelates
 
Pigeonhole Principle
Pigeonhole PrinciplePigeonhole Principle
Pigeonhole Principle
 
solutions state chemistry for class xii-
solutions state chemistry for class xii-solutions state chemistry for class xii-
solutions state chemistry for class xii-
 
Properties of periodic table by Saliha Rais
Properties of periodic table by Saliha RaisProperties of periodic table by Saliha Rais
Properties of periodic table by Saliha Rais
 
introduction to MOT
introduction to MOTintroduction to MOT
introduction to MOT
 
Periodic properties
Periodic propertiesPeriodic properties
Periodic properties
 
CBSE Class 11 Chemistry Chapter 1 (Some Basic Concepts of Chemistry) | Homi I...
CBSE Class 11 Chemistry Chapter 1 (Some Basic Concepts of Chemistry) | Homi I...CBSE Class 11 Chemistry Chapter 1 (Some Basic Concepts of Chemistry) | Homi I...
CBSE Class 11 Chemistry Chapter 1 (Some Basic Concepts of Chemistry) | Homi I...
 
Mo theory
Mo theoryMo theory
Mo theory
 
Bonding in Coordination Compounds
Bonding in Coordination CompoundsBonding in Coordination Compounds
Bonding in Coordination Compounds
 
Atomic structure - chemistry
Atomic structure - chemistryAtomic structure - chemistry
Atomic structure - chemistry
 
Vsepr theory
Vsepr theoryVsepr theory
Vsepr theory
 
Ppt xii p block elements , By Dr Mona Srivastava
Ppt xii  p block elements , By   Dr Mona SrivastavaPpt xii  p block elements , By   Dr Mona Srivastava
Ppt xii p block elements , By Dr Mona Srivastava
 
The uncertainty principle
The uncertainty principleThe uncertainty principle
The uncertainty principle
 
Inorganic chem presentation
Inorganic chem presentationInorganic chem presentation
Inorganic chem presentation
 
Lanthanides and actinides
Lanthanides and actinidesLanthanides and actinides
Lanthanides and actinides
 
Molecular Orbital Theory (MOT)
Molecular Orbital Theory  (MOT)Molecular Orbital Theory  (MOT)
Molecular Orbital Theory (MOT)
 
ppt on hydrogen for class XI th chemistry
ppt on hydrogen for class XI th chemistryppt on hydrogen for class XI th chemistry
ppt on hydrogen for class XI th chemistry
 
Acids, bases and salt
Acids, bases and saltAcids, bases and salt
Acids, bases and salt
 

Andere mochten auch

pigeonhole principle
pigeonhole principlepigeonhole principle
pigeonhole principle
Jeneva Clark
 
Card Trick based on Pigeon hole principle
Card Trick based on Pigeon hole principleCard Trick based on Pigeon hole principle
Card Trick based on Pigeon hole principle
Shashindra Silva
 
Recurrence relation
Recurrence relationRecurrence relation
Recurrence relation
Ohgyun Ahn
 
Math 1300: Section 7- 3 Basic Counting Principles
Math 1300: Section 7- 3 Basic Counting PrinciplesMath 1300: Section 7- 3 Basic Counting Principles
Math 1300: Section 7- 3 Basic Counting Principles
Jason Aubrey
 
Inverse functions and relations
Inverse functions and relationsInverse functions and relations
Inverse functions and relations
Jessica Garcia
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structure
ghhgj jhgh
 

Andere mochten auch (20)

Pigeon hole principle
Pigeon hole principlePigeon hole principle
Pigeon hole principle
 
Pigeonhole
PigeonholePigeonhole
Pigeonhole
 
Pigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,CountabilityPigeonhole Principle,Cardinality,Countability
Pigeonhole Principle,Cardinality,Countability
 
pigeonhole principle
pigeonhole principlepigeonhole principle
pigeonhole principle
 
Card Trick based on Pigeon hole principle
Card Trick based on Pigeon hole principleCard Trick based on Pigeon hole principle
Card Trick based on Pigeon hole principle
 
Generating functions (albert r. meyer)
Generating functions (albert r. meyer)Generating functions (albert r. meyer)
Generating functions (albert r. meyer)
 
Recurrence relation
Recurrence relationRecurrence relation
Recurrence relation
 
Math 1300: Section 7- 3 Basic Counting Principles
Math 1300: Section 7- 3 Basic Counting PrinciplesMath 1300: Section 7- 3 Basic Counting Principles
Math 1300: Section 7- 3 Basic Counting Principles
 
Recurrence relation
Recurrence relationRecurrence relation
Recurrence relation
 
Recurrence relations
Recurrence relationsRecurrence relations
Recurrence relations
 
recurrence relations
 recurrence relations recurrence relations
recurrence relations
 
Reccurrence relations
Reccurrence relationsReccurrence relations
Reccurrence relations
 
11.1 Fundamental Counting Principle
11.1 Fundamental Counting Principle11.1 Fundamental Counting Principle
11.1 Fundamental Counting Principle
 
Inverse functions and relations
Inverse functions and relationsInverse functions and relations
Inverse functions and relations
 
Fundamental Counting Principle
Fundamental Counting PrincipleFundamental Counting Principle
Fundamental Counting Principle
 
Cs419 lec11 bottom-up parsing
Cs419 lec11   bottom-up parsingCs419 lec11   bottom-up parsing
Cs419 lec11 bottom-up parsing
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpoint
 
Tree in data structure
Tree in data structureTree in data structure
Tree in data structure
 
Graphs ppt
Graphs pptGraphs ppt
Graphs ppt
 
Protherm Медведь 30 KLOM
Protherm Медведь 30 KLOMProtherm Медведь 30 KLOM
Protherm Медведь 30 KLOM
 

Ähnlich wie Pigeon hole principle

Goldbach Conjecture
Goldbach ConjectureGoldbach Conjecture
Goldbach Conjecture
Anil1091
 

Ähnlich wie Pigeon hole principle (20)

20-pigeonhole-principle.ppt
20-pigeonhole-principle.ppt20-pigeonhole-principle.ppt
20-pigeonhole-principle.ppt
 
20 pigeonhole-principle
20 pigeonhole-principle20 pigeonhole-principle
20 pigeonhole-principle
 
Pigeonhole principle
Pigeonhole principlePigeonhole principle
Pigeonhole principle
 
THE PIGEON HOLE PRINCIPLE or also known as DRAWER PRINCIPLE BY ALVIN OBLIGACION
THE PIGEON HOLE PRINCIPLE or also known as DRAWER PRINCIPLE BY ALVIN OBLIGACION THE PIGEON HOLE PRINCIPLE or also known as DRAWER PRINCIPLE BY ALVIN OBLIGACION
THE PIGEON HOLE PRINCIPLE or also known as DRAWER PRINCIPLE BY ALVIN OBLIGACION
 
L07 msr
L07 msrL07 msr
L07 msr
 
X12bPigeonHole.ppt
X12bPigeonHole.pptX12bPigeonHole.ppt
X12bPigeonHole.ppt
 
Word problems involving equations in one variable Grade 7
Word problems involving equations in one variable Grade 7Word problems involving equations in one variable Grade 7
Word problems involving equations in one variable Grade 7
 
Dirichlet processes and Applications
Dirichlet processes and ApplicationsDirichlet processes and Applications
Dirichlet processes and Applications
 
Linear equations
Linear equationsLinear equations
Linear equations
 
State2009
State2009State2009
State2009
 
Schl2008
Schl2008Schl2008
Schl2008
 
National2009
National2009National2009
National2009
 
Report in math 830
Report in math 830Report in math 830
Report in math 830
 
Group7 (1)
Group7 (1)Group7 (1)
Group7 (1)
 
Logic
LogicLogic
Logic
 
powerpoints probability.pptx
powerpoints probability.pptxpowerpoints probability.pptx
powerpoints probability.pptx
 
Paso 5-Realizar transferencia del conocimiento.
Paso 5-Realizar transferencia del conocimiento.Paso 5-Realizar transferencia del conocimiento.
Paso 5-Realizar transferencia del conocimiento.
 
Goldbach Conjecture
Goldbach ConjectureGoldbach Conjecture
Goldbach Conjecture
 
Int Math 2 Section 2-9 1011
Int Math 2 Section 2-9 1011Int Math 2 Section 2-9 1011
Int Math 2 Section 2-9 1011
 
Integrated Math 2 Section 2-9
Integrated Math 2 Section 2-9Integrated Math 2 Section 2-9
Integrated Math 2 Section 2-9
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Pigeon hole principle

  • 2. Pigeon-hole Principle  If n (> m) pigeons are put into m pigeonholes, there's a hole with more than one pigeon.
  • 3. Alternative Forms • If n objects are to be allocated to m containers, then at least one container must hold at least ceil(n/m) objects. • For any finite set A , there does not exist a bijection between A and a proper subset of A . • Let |A| denote the number of elements in a finite set A. For two finite sets A and B, there exists a 1-1 correspondence f: A- >B iff |A| = |B|.
  • 4. History  The first statement of the principle is believed to have been made by Dirichlet in 1834 under the name Schubfachprinzip ("drawer principle" or "shelf principle")  Also known as Dirichlet's box (or drawer) principle
  • 5. General Problems  There 750 students in the a batch at UOM. Prove that at least 3 of them have their birthdays on the same date ? ○ 366 * 2= 732 < 750 ○ Thus at least 3 students have the birthday on the same date.
  • 6. Problems on Relations  There are 50 people in a room. some of them are friends. If A is a friend of B then B is also a friend of A. Prove that there are two persons in the room who have a same number of friends.  In league T20 tournament of 16 cricket teams, every two teams have to meet in a game. Prove that at any time there are two teams which played equal number of matches.
  • 7. Solution  Case 1  Case 2  There exists a person  There does not exists with 49 friends (he is a a person with 49 friend of all other people) friends  Then there cannot be a  The no of friends vary person with 0 friends between 0 – 48 .  The no of friends vary  There are 50 people between 1 – 49 . and only 49 values.  There are 50 people and only 49 values.
  • 8. Problems On Divisibility  Prove that there exists a multiple of 2009 whose decimal expansion contains only digits 1 and 0.
  • 9. Answer  Consider 2010 numbers - 1,11,111,1111, … ,1111…111.  Each of these numbers produce one of 2009 remainders - 0,1,2,3 ,…,2008  We have 2010 numbers and 2009 remainders  By pigeon-hole principle some two numbers have the same remainder .Let those 2 numbers be A and B (A>B)  Consider A-B. which is a multiple of 2009. - In the form of 11…1100…000
  • 10. Problems On Divisibility  Prove that of any 52 natural numbers one can find two numbers n and m such that either their sum m+n or difference m-n is divisible by 100.  Consider sets {0},{1,99},{2,98}….{49,51},{50}  There are 51 sets  By pigeon hole principle at least 1 set should have 2 members  If we consider any set above if they have 2 members in the set, m+n or m-n is divisible by 100
  • 11. Problems on Geometry  51 points are placed, in a random way, into a square of side 1 unit. Can we prove that 3 of these points can be covered by a circle of radius 1/7 units ?
  • 12. Answer  To prove the result, we may divide the square into 25 equal smaller squares of side 1/5 units each. Then by the Pigeonhole Principle, at least one of these small squares should contain at least 3 points. Otherwise, each of the small squares will contain 2 or less points which will then mean that the total number of points will be less than 50 , which is a contradiction to the fact that we have 51 points in the first case !
  • 13. Answer - continue  Now the circle circumvented around the particular square with the three points inside should have  Radius=Sqrt(1/100+1/100 ) =Sqrt(1/50) <Sqrt(1/49)=1/7 1/10
  • 14. Applications  Lossless data compression cannot guarantee compression for all data input files.  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  In probability theory, the birthday problem, or birthday paradox pertains to the probability that in a set of randomly chosen people some pair of them will have the same birthday
  • 15. Applications  The proof of Chinese Remainder Theorem is based on pigeon-hole principle Let m and n be relatively prime positive Integers. Then the system: x = a (mod m) x = b (mod n) has a solution.
  • 16. References  http://en.wikipedia.org/wiki/Pigeonhole_principle  http://en.wikipedia.org/wiki/Johann_Peter_Gustav_ Lejeune_Dirichlet  http://en.wikipedia.org/wiki/Lossless_data_compre ssion#Limitations  Article on "What is Pigeonhole Principle?" by Alexandre V. Borovik, Elena V. Bessonova.  Article on "Applications of the Pigeonhole Principle" by Edwin Kwek Swee Hee ,Huang Meiizhuo ,Koh Chan Swee ,Heng Wee Kuan , River Valley High School