pigeonhole principle

Definition

The pigeonhole principle is also known as the pigeonhole principle (the pigeonhole principle).

It is often used to prove existence and to find solutions in the worst case.

Simple case

If n+1n+1 objects are divided into nn groups, then at least one group contains two or more objects.

This theorem appears quite obvious. A proof by contradiction can be considered: if each group contained at most 11 object, there would be at most 1×n1\times n objects, but in fact there are n+1n+1 objects, a contradiction.

Generalization

If nn objects are divided into kk groups, then at least one group contains at least ⌈nk⌉\left \lceil \dfrac{n}{k} \right \rceil objects.

The generalized form can also be proved by contradiction: if every group contained fewer than ⌈nk⌉\left \lceil \dfrac{n}{k} \right \rceil objects, then their total S≤(⌈nk⌉−1)×k=k⌈nk⌉−k<k(nk+1)−k=nS\leq (\left \lceil \dfrac{n}{k} \right \rceil -1 ) \times k=k\left\lceil \dfrac{n}{k} \right\rceil-k < k(\dfrac{n}{k}+1)-k=n would be a contradiction.

In addition, the partition can be weakened to a cover without changing the conclusion.
Given a set SS, let a family of nonempty subsets of SS be {A1,A2…Ak}\{A_1,A_2\ldots A_k\}.

  • If ⋃i=1kAi\bigcup_{i=1}^k A_i holds, it is called a cover of SS (cover).
  • If a cover also satisfies i≠j→Ai∩Aj=∅i\neq j\to A_i\cap A_j=\varnothing, it is called a partition of SS.

The pigeonhole principle can be stated as follows: for a cover SS of {A1,A2…Ak}\{A_1,A_2\ldots A_k\}, at least one set AiA_i satisfies ∣Ai∣≥⌈∣S∣k⌉\left\vert A_i \right\vert \geq \left\lceil \dfrac{\left\vert S \right\vert}{k} \right\rceil.

References

This content comes from OI Wiki: pigeonhole principle. See the original for authors and revision history. AIOJ has adapted the formatting, in-site links, and resource paths.

Content is shared under CC BY-SA 4.0 and SATA license; additional terms are governed by the original notice. Thanks to the OI Wiki authors and contributors; per the SATA terms, please visit the OI Wiki repository and star it to show your support.