The Stable Matching Problem was created by David Gale and Lloyd Shapley in 1962 based on the question: Could one design a college admissions process, or a job recruiting process, that was self-enforcing?
Concerns with the process: Better offers come along and change the matching of applicants, causing a domino effect
Both applicants and employers must be happy to maintain a stable state. One of the two must hold true:
Consider matching men and women where set M = {m(1),m(2),…,m(n)} represents n men and set W = {w(1),w(2),…w(n)} represents n women.
M X W denotes the set of all ordered pairs of the form (m, w).
A matching S is a set of ordered pairs with the property that each member of M and W appears in at most one pair in S. A perfect matching S’ is a matching with the property that each member of M and W appears in exactly one pair in S’.
Preferences must also be accounted for - in this problem, men rank all women. For example: m of (m,w) and w’ of (m’,w’) may prefer each other to their matching in S. In this case, the matching is unstable.
Matching S is stable if:
Basic ideas:
Concrete description of Gale-Shapley algorithm:
Initially all m (in M) and w (in W) are free While there is a man m who is free and hasn’t proposed to every woman Choose such a man m Let w be the highest-ranked woman in m’s preference list to whom m has not yet proposed If w is free then (m,w) become engaged Else w is currently engaged to m’ If w prefers m’ to m then m remains free Else w prefers m to m’ (m,w) become engaged m’ becomes free Endif Endif Endwhile Return the set S of engaged pairs
w remains engaged from first proposal, and her partners increase in terms of preference.
The sequence of women to whom m proposes gets worse in terms of preference.
The G-S algorithm terminates after at most n^2 iterations of the while loop.
If m is free at some point, then there remains a free w
The set S returned at termination is a perfect matching
Consider and execution of the G-S algorithm that returns a set of pairs S. The set S is a stable matching.
All executions yield the same matching, set S*.
In the stable matching S*, each woman is paired with her worst valid partner.
From this we can conclude that the gender doing the proposing ends up with a more desirable stable matching.