1.0.0 • Published 3 years ago
@rami-abdou/stable-matching v1.0.0
Stable-Matching Problem (Gale-Shapley)
This is a Typescript implementation of the Gale-Shapley algorithm, which finds a stable matching between two equally sized sets of elements given an ordering of preferences for each element.
Naming Variation
The stable-matching problem is also called the stable-marriage problem, and that's because for years, the example used to solve the problem was marrying a man to a woman. The man/woman terminology is not one that's inclusive so in my implementation we'll use the following:
mentee
- Maps toman
in traditional example.mentor
- Maps towoman
in traditional example.
Project Status
Currently in development.
Upcoming Features
- Stable-Matching Visualizer - React application that allows you to visualize the Gale-Shapley algorithm for every single step.
1.0.0
3 years ago