We say that (b,g) is a stable pair if there is some
stable marriage in which b and g are matched. We say that g is
a stable partner of b and vice versa.
The marriage returned by MATCH assigns every boy to
his favorite stable partner! We, therefore, call this the
boy-optimal match.
- Claim: At no point in the execution of MATCH does a girl
reject a stable partner. This means that the first time a boy
proposes to one of his stable partners, he gets to stay with her (and
consequently marries his favorite stable partner).
- Let's assume that a stable pair is rejected. Let (b1,g1) be
the first such stable pair. Let b2 be the boy that causes the
breakup of b1 and g1.
- Since (b1,g1) is a stable pair, there is some stable marriage
that includes it. In one such stable marriage, let g2 be b2's
mate.
- But, a marriage that includes (b1,g1) and (b2,g2) can't be
stable! Because g1 rejected b1 for b2, we know g1 would
rather be with b2. Because the (b1,g1) breakup was the first,
we know that b2 prefers g1 to any other stable partner (such as
the hypothetical g2).
- So, (b1,g1) isn't a stable pair--a contradiction--and,
therefore, no stable pair can be rejected.
This proves Theorem 7 (boy optimality), but it also implies
Theorem 4: you get the same marriage independent of the order in which
free boys propose.
Next: Girl Pessimality
Up: UNDERSTANDING THE ALGORITHM
Previous: Correctness