Learn/Combinatorics/Hall's Marriage Theorem
Combinatorics • Topic 38

Hall's Marriage Theorem

Hall's Theorem gives a necessary and sufficient condition for a bipartite graph to have a matching that covers one side of the partition. It is often framed as a "marriage" problem between a set of men and women.

The Condition

Consider a bipartite graph . For any subset , let be the set of neighbors of vertices in (the set of vertices in connected to at least one vertex in ).

Theorem (Hall's Marriage Theorem)
The graph contains a matching that covers every vertex in if and only if for every subset :

Interpretation

"For every group of men, the total number of women they collectively like must be at least as large as the group of men." If a group of 3 men collectively only like 2 women, a matching is clearly impossible. Hall's Theorem states this is the only obstruction.

Systems of Distinct Representatives (SDR)

Hall's Theorem applies to sets. Given sets , an SDR is a choice of distinct elements such that .
  • Condition: For any sets, their union must contain at least elements.

Practice Problems

Exercise (Problem 1)
A deck of cards is dealt into 13 piles of 4 cards each. Prove that it is possible to select one card from each pile such that the 13 selected cards contain exactly one card of each rank (Ace through King).
Exercise (Problem 2)
Prove that a -regular bipartite graph () always has a perfect matching.
Exercise (Problem 3)
Check if a matching covering exists for , , with edges .