Design and Analysis of Algorithms

CSE 421, Autumn 2009, University of Washington

Archive for the ‘Puzzle’ Category

Stable marriages

Posted by James Lee on September 30, 2009

In class today, we proved that the Gale-Shapley algorithm always finds a stable matching.  As a consequence, we learn something that is not at all obvious:  For every set of preferences for the men and women, there exists a stable matching.  After class today, someone asked if the proof had to be algorithmic; is there a proof of the existence of a stable matching which doesn’t actually find the matching?

It turns out that there is.  I’ll give some hints, and an adventurous student can see if they are able to find the proof.

A non-constructive argument

First, we will have to allow people to be single (not in the eventual stable matching, obviously, but as part of the proof).  Let’s also agree that a person prefers to be with anyone rather than be single.  Now, say that a matching M is simple if, whenever the pair (m,w) is unstable, it is because w is single, and m prefers to w to his current situation.

Say that a matching M  is weakly optimal for the men if it is simple, and there is no simple matching M' with the properties that: (1) Every man is at least as happy with M' as with M, and (2) there exists a man that is happier in M' than in M.

First: Show that there always exists a matching that is weakly optimal for the men.

Second: Show that if a matching is weakly optimal for the men, then it is stable.

Feel free to leave a proof (or proof ideas, where you got stuck, etc.) in the comments.

The last slide from the demo:

stable

Posted in Puzzle | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.