Hall's marriage theorem and a deck of cards
Statement
- (Hall) Let and be the two sides of a bipartite graph. Suppose that for every subset , . Prove that there is a matching that covers all of .
- The cards of a deck (13 ranks, four cards of each rank) are dealt into piles of cards. Prove that one can choose one card from each pile so that the chosen cards have different ranks.
Hint
For 1, induct on . Distinguish whether every proper non-empty has or whether some has . For 2, let be the set of piles and the set of ranks.
Show solutionHide solution
Solution
1. Induction on . If , the single vertex has a neighbour.
Let .
*Case 1: for every non-empty proper subset .* Pick and ; match them and delete both. For any non-empty , , so Hall's condition still holds and induction gives a matching of the rest.
*Case 2: some non-empty proper has .* By induction can be matched into . In the remaining graph, for ,
so Hall's condition holds and induction matches . The two matchings together cover . ∎
2. The cards. Let be the piles, the ranks, and join a pile to a rank if the pile contains a card of that rank. Take any piles: they contain cards, and each rank has exactly cards, so these piles contain cards of at least distinct ranks. By Hall there is a matching assigning to each pile a distinct rank present in it. ∎
Lesson. When you need a system of distinct representatives, check Hall's condition.