Solution

ID: past-exam-of-the-probability-statistics-and-options-ii-course-of-the-university-of-oxford/2011/r/r2/b/solution

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.

New to topics? Read the docs here!