Counting Insights Vol 1.1 Pigeon-Hole Principle
In Vol 1.0 of k-to-1 Functions, we considered the Devotee-Footwear problem, in which we asked: what is the minimum possible count of devotees present in the temple (exclude the priest)? Now a question arises that why there exists a minimum count (lower-bound) on the number of devotees? Can we prove mathematically the existence of such a lower-bound?
Theorem 1. Let f:A→B be k-to-1 function, and let B be finite. Then, set A is finite with size |A|≤k×|B|.
Proof: Since B is given to be finite, let |B|=n. Since f() is k-to-1.
⟹|f−1(b)|≤k ∀b∈B.
To show upper-bound on size of A, assume f to be surjective.
⟹∀b∈B,∃ at most k pre-images in A.
But |B|=n.⟹∃ at most k×n elements in A.
Thus, |A|≤k×|B|. ◼
Note: A achieves its maximum size only when f is a surjection and every b∈B has k=|A||B| number of pre-images.
Let us now recall, S = set of all footwears lying outside the temple entrance, and D = set of all devotees present inside the temple, excluding the priest.
We defined actual mapping g:S→D that assignes each footwear to a unique devotee in D and the map g() is 2-to-1. Now using Theorem 1, we have |S|≤2×|D|.
⟹|D|≥12×|S|.
Thus, for a given number of footwears (i.e., |S|), the number of devotees |D| has a lower-bound =12×112=56, which is the required answer to “Devotee-Footwear” problem. Thus the count of devotees can vary from 56 (minimum) to 112 (maximum).
Contrapositive of Theorem 1 is so effective in rejecting certain claims or proving certain guarantees, that we state it separately:
Theorem 1. (Contrapositive): Let sets A and B be such that |A|>k×|B|, then there can not exist a k-to-1 map f:A→B, i.e., ∃ b∈B such that |f−1(b)|>k (at least ⌈|A||B|⌉ pre-images exist).
For example, suppose there are 56 devotees inside the temple (excluding the priest) and there are 113 footwears lying at the main entrance. Then clearly, 113>2×56.
⟹ at least one devotee came to the temple with 3 pieces of footwears (Strange enough! but true).
Contrapositive of Theorem 1 is generally known as Dirichlet-Drawer Principle or Pigeon-Hole Principle. We have seen Theorem 1 being applicable to Devotee-Footwear example, but the theory developed in Theorem 1 is general enough to be applicable in diverse problems of same kind.
While encountering problems of this kind, identifying sets A and B correctly is quite often confusing. As a validation test, we can ask elements of which set can have multiple number of pre-images (including no premage, i.e., left unmapped). That set is the set B, which can have varying number of pre-images.
Written with StackEdit.
Comments
Post a Comment