Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.41 KB

README.md

File metadata and controls

17 lines (11 loc) · 1.41 KB

Lattice of Stable Matchings for the College-Admissions Problem

This tool generates the lattice of stable matchings for the College-Admissions Problem. This code is a modification of Simon Mauras's repo for the stable marriage problem. Check it out for more such tools.

The table on the left shows the preferences for the canonical one-to-one instance. The graph in the middle shows the set of rotations and the graph on the right is the lattice of stable matchings arranged from firm-optimal(top) to worker-optimal(bottom).

  • Edit the instance (preferences and capacities) in instance.txt. For reference on what the format for specifying the instance is, refer to instanceFormat.txt.
  • Run python manage.py and then open http://localhost:8000/.
  • Modify capacities using the + and - symbols for each of the firm. Please allow some time for new lattice to be calculated and displayed.

Example given in Gusfield and Irving's book:

example