ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Discrete Structures
    GE-167
    Progress0 / 67 topics
    Topics
    1. Mathematical Reasoning: Propositional and Predicate Logic2. Propositional Logic: Logical Operators3. Translations Between Symbolic Expressions and Formal English Expression4. Logical Equivalences5. Predicate Logic: Quantifiers6. Nested Quantification7. Equivalences in Predicate Logic8. Translations Between Symbolic Forms and Formal English9. Rules of Inference: Proof Methods and Strategies10. Direct Proof11. Proof by Contraposition12. Proof by Induction13. Proof by Implication14. Existence Proof15. Uniqueness Proofs16. Trivial Proofs17. Vacuous Proofs18. Sets: Notations and Set Operations19. Venn Diagrams20. Countable and Uncountable Sets21. Relations: Equivalence Relations and Partitions22. Partial Orderings23. Recurrence Relations24. Functions: Injective, Surjective, Bijective25. Special Types of Functions26. Function Composition27. Inverse Functions28. Recursive Functions29. Compositions30. Number Theory: Sequences and Series31. Counting: Inclusion and Exclusion Principle32. Pigeonhole Principle33. Permutations and Combinations34. Integers and Divisibility: Division Theorem35. Modular Arithmetic36. LCM and GCD37. Euclidean and Extended Euclidean Method38. Finding Solutions to Congruence39. Primes: Fundamental Theorem of Arithmetic40. Characterizations of Primes41. Mersenne Primes42. Induction: Weak Induction43. Strong Induction44. Recursion and Recurrences: Formulation of Recurrences45. Closed Formulas46. Counting: Product Rule and Sum Rule47. Principle of Inclusion-Exclusion48. Binomial Coefficients49. Pascal's Identity and Pascal’s Triangle50. Binomial Theorem51. Relations: Reflexive, Symmetric, Transitive, and Antisymmetric52. Equivalence Relations and Equivalence Classes53. Partial Orders54. Graph Theory: Terminologies55. Elements of Graph Theory56. Planar Graphs57. Graph Coloring58. Euler Graph59. Hamiltonian Path60. Rooted Trees61. Graph Traversals62. Handshaking Lemma and Corollary63. Special Families of Graphs64. Graph Isomorphism65. Planarity in Graphs66. Eulerian and Hamiltonian Graphs67. Trees in Graph Theory
    GE-167›Pigeonhole Principle
    Discrete StructuresTopic 32 of 67

    Pigeonhole Principle

    7 minread
    1,144words
    Intermediatelevel

    Pigeonhole Principle

    The Pigeonhole Principle is a simple yet powerful concept in combinatorics and discrete mathematics. It asserts that if more items are placed into fewer containers than the number of items, at least one container must contain more than one item. This principle is used frequently in proofs and problem-solving in various areas of mathematics, particularly in number theory, graph theory, and computer science.

    Formal Statement of the Pigeonhole Principle

    The most basic form of the Pigeonhole Principle is:

    • Basic Pigeonhole Principle:
      If nnn items are placed into mmm containers, and n>mn > mn>m, then at least one container must contain more than one item.

    Mathematically, if you are putting nnn objects into mmm boxes, and if n>mn > mn>m, there must be at least one box that contains more than one object.

    This idea can be extended or modified in various ways, but this simple form is the foundation.


    Example 1: Basic Pigeonhole Principle

    Imagine that you have 11 pairs of socks (each pair is a different color) and only 10 drawers to put them in. The pigeonhole principle tells us that at least one drawer must contain at least two socks of the same color because there are more socks (11) than drawers (10).

    This simple example directly follows from the principle, as placing one sock per drawer would require 11 drawers, but since we only have 10, it's impossible not to have at least one drawer containing two socks.


    Example 2: Application to Birthday Paradox

    The Birthday Paradox is another famous application of the pigeonhole principle. The paradox states that in a group of 23 people, there's a better than even chance that at least two people share the same birthday.

    • Explanation:
      There are 365 possible birthdays (assuming no leap year), so if you randomly assign a birthday to each of the 23 people, the pigeonhole principle suggests that as the number of people (pigeons) exceeds the number of birthdays (pigeonholes), the chances of a shared birthday become quite high. By pigeonhole principle logic, if there are 23 people (pigeons) and only 365 possible birthdays (pigeonholes), it's likely that two people end up in the same pigeonhole.

    Generalized Pigeonhole Principle

    The generalized version of the pigeonhole principle provides a stronger statement:

    • Generalized Pigeonhole Principle:
      If nnn items are placed into mmm containers, and n>m⋅kn > m \cdot kn>m⋅k, then at least one container must contain more than kkk items.

    This is a generalization that allows us to deal with situations where we want to know the minimum number of items that must be in at least one container when the total number of items exceeds m⋅km \cdot km⋅k. It states that if you put more than m⋅km \cdot km⋅k items into mmm containers, one container must contain at least k+1k + 1k+1 items.


    Example 3: Generalized Pigeonhole Principle

    Suppose you have 100 apples and 8 baskets. According to the generalized pigeonhole principle, if you want to guarantee that at least one basket contains more than 15 apples, you can calculate:

    n=100(apples),m=8(baskets),k=15n = 100 \quad \text{(apples)}, \quad m = 8 \quad \text{(baskets)}, \quad k = 15n=100(apples),m=8(baskets),k=15

    Here, n>m⋅k=8⋅15=120n > m \cdot k = 8 \cdot 15 = 120n>m⋅k=8⋅15=120. Since 100 is less than 120, it is possible to distribute the apples so that no basket contains more than 15 apples. However, if you had more than 120 apples, at least one basket would have more than 15 apples.


    Proof Using the Pigeonhole Principle

    The pigeonhole principle can be used in proofs where we need to demonstrate that under certain conditions, there must be some structure or property that is guaranteed to occur.

    Example Proof:

    Problem: Show that in any group of 6 people, at least two of them must have the same number of friends in the group.

    Solution:

    • Each person can have between 0 and 5 friends in a group of 6 people (since the total number of people is 6, and no one can be friends with themselves).
    • So, the possible number of friends for each person is one of the values in the set {0,1,2,3,4,5}\{0, 1, 2, 3, 4, 5\}{0,1,2,3,4,5}, which gives 6 possibilities.
    • However, if one person has 0 friends (i.e., they are isolated), another person must have 5 friends (i.e., they are friends with everyone else), which means that we cannot have both a person with 0 friends and a person with 5 friends in the group.
    • Therefore, there must be at least two people who have the same number of friends.

    This conclusion is guaranteed by the pigeonhole principle because we have 6 people (items) and only 5 possible distinct numbers of friends (containers).


    Applications of the Pigeonhole Principle

    1. Number Theory:
      The pigeonhole principle is often used to prove results about divisibility, modular arithmetic, and prime numbers. For example, it can be used to show that in any set of nnn integers, there are always two integers whose difference is divisible by some constant.

    2. Graph Theory:
      In graph theory, the pigeonhole principle can help show the existence of certain types of subgraphs. For example, it can be used to prove that in any graph with more than n2n^2n2 edges, there must be a triangle.

    3. Computer Science:
      The pigeonhole principle can be used in algorithms to show that in a set of inputs, certain properties must hold. It is especially useful in hash functions, where it can show that collisions are inevitable after a certain number of inputs.

    4. Probability and Combinatorics:
      It is often used in problems involving random distributions and probabilities, like the Birthday Paradox, or in combinatorial arguments to prove the existence of certain structures within a set.


    Conclusion

    The pigeonhole principle is a deceptively simple yet powerful tool in mathematics. Its basic form is intuitive, but its applications range across many areas, from number theory to graph theory, combinatorics, and computer science. By recognizing the situations where this principle applies, you can solve many problems that seem complicated at first glance.

    Previous topic 31
    Counting: Inclusion and Exclusion Principle
    Next topic 33
    Permutations and Combinations

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time7 min
      Word count1,144
      Code examples0
      DifficultyIntermediate