Gale-Shapley Stable Marriage Algorithm

The text describe in pseudocode, the Gale-Shapley algorithm for producing a Stable Marriage assignment. Just for fun, we've implemented that algorithm in Python.

To produce the final result for input files men and women, usage is:

python marriage.py men women

To produce a verbose play-by-play of algorithm, usage is:

python marriage.py men women 1


Michael Goldwasser