Skip to content

Lightweight implementation of proposal and rotation algorithms for optimal stable assignment.

License

Notifications You must be signed in to change notification settings

maxkapur/assignment

Repository files navigation

assignment

This module provides a lightweight implementation of the Gale-Shapley stable assignment (proposal) algorithm and a few tools for exploring the stable assignment polytope, including a modified implementation of the optimal stable marriage algorithm described by in the following reference:

  • Irving, Robert W., Paul Leather, and Dan Gusfield. 1987. “An Efficient Algorithm for the ‘Optimal’ Stable Marriage.” Journal of the Association for Computing Machinery 34, no. 3 (July): 532–43.

Visualizing preference lists

An optimal stable assignment

Please see the Jupyter notebooks in the root directory for usage examples and a mathematical discussion of the rotation algorithm.

The author’s homepage is maxkapur.com.

About

Lightweight implementation of proposal and rotation algorithms for optimal stable assignment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages