ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalGE-167Pigeonhole Principle
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    GE-167

    Discrete Structures

    Progress0 / 67 done
    Topics67
    1Propositional and Predicate Logic
    2Logical Operators3Translations Between Symbolic Expressions and Formal English Expression4Logical Equivalences
    5Quantifiers6Nested Quantification7Equivalences in Predicate Logic8Translations Between Symbolic Forms and Formal English
    9Proof Methods and Strategies10Direct Proof11Proof by Contraposition12Proof by Induction13Proof by Implication14Existence Proof15Uniqueness Proofs16Trivial Proofs17Vacuous Proofs
    18Notations and Set Operations19Venn Diagrams20Countable and Uncountable Sets
    21Equivalence Relations and Partitions22Partial Orderings23Recurrence Relations51Reflexive, Symmetric, Transitive, and Antisymmetric52Equivalence Relations and Equivalence Classes53Partial Orders
    24Injective, Surjective, Bijective25Special Types of Functions26Function Composition27Inverse Functions28Recursive Functions29Compositions
    30Sequences and Series
    31Inclusion and Exclusion Principle32Pigeonhole Principle33Permutations and Combinations46Product Rule and Sum Rule47Principle of Inclusion-Exclusion48Binomial Coefficients49Pascal's Identity and Pascal’s Triangle50Binomial Theorem
    34Division Theorem35Modular Arithmetic36LCM and GCD37Euclidean and Extended Euclidean Method38Finding Solutions to Congruence
    39Fundamental Theorem of Arithmetic40Characterizations of Primes41Mersenne Primes
    42Weak Induction43Strong Induction
    44Formulation of Recurrences45Closed Formulas
    54Terminologies55Elements of Graph Theory56Planar Graphs57Graph Coloring58Euler Graph59Hamiltonian Path60Rooted Trees61Graph Traversals62Handshaking Lemma and Corollary63Special Families of Graphs64Graph Isomorphism65Planarity in Graphs66Eulerian and Hamiltonian Graphs67Trees in Graph Theory
    7 min read
    Topic 32 of 67
    Topic Study Note Illustration
    32

    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...

    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 view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    7mremaining
    1.1kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Discrete Structures