Represent the two sides of the marriage problem as the parts of a bipartite graph, with an edge for each allowed pairing. A matching is a set of edges with no common endpoint; a complete matching of covers every vertex in . When the two parts have equal size it also covers , giving a perfect matching.
Hall's marriage theorem gives the exact finite-graph criterion:
Here is the set of right-side neighbours of . Necessity follows because distinct matched vertices of need distinct neighbours; Hall's theorem supplies sufficiency.

Articles by others on the same topic (0)

There are currently no matching articles.