Skip to content

Salil03/many-to-one-stable-matchings

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 44.5%
  • HTML 27.8%
  • JavaScript 13.6%
  • Python 13.3%
  • Shell 0.8%