Pigeonhole and Inclusion-Exclusion - Core Definitions
The Pigeonhole Principle and the Principle of Inclusion-Exclusion are two fundamental tools in discrete mathematics that provide elegant solutions to counting problems involving constraints and overlapping sets. These principles have applications ranging from number theory to computer science.
If objects are placed into boxes where , then at least one box must contain more than one object.
More formally, if objects are distributed among boxes, then at least one box contains at least objects, where denotes the ceiling function (smallest integer greater than or equal to ).
The pigeonhole principle, despite its simplicity, is remarkably powerful. It guarantees the existence of an object with a certain property without constructively finding it. This is an example of a non-constructive existence proof.
In any group of 13 people, at least two people must have birthdays in the same month.
This follows directly from the pigeonhole principle: 13 people (objects) distributed among 12 months (boxes) means at least one month contains at least people.
If objects are distributed among boxes, then either:
- At least one box contains at least objects, or
- At least one box contains at most objects
where denotes the floor function (largest integer less than or equal to ).
For finite sets and , the number of elements in their union is:
This principle corrects for overcounting: when we add and , elements in both sets are counted twice, so we must subtract once.
The inclusion-exclusion principle extends to any number of sets, providing a systematic method for counting elements in unions while accounting for all overlaps.
For finite sets , the cardinality of their union is:
More compactly, this can be written as:
The inclusion-exclusion principle alternates between adding and subtracting intersection terms. The intuition is that we must correct for elements counted multiple times: elements in exactly sets are counted times in the first sum, subtracted times in the second sum, added times in the third sum, and so on. The binomial theorem ensures that the net count is exactly once: .
These foundational principles provide powerful techniques for solving existence and counting problems in discrete mathematics.