Hacker News new | ask | show | jobs
by narsil 3638 days ago
Yeah, the Stable Marriage problem provides a solution for matching these ordered preferences between two sets of people/elements: https://en.wikipedia.org/wiki/Stable_marriage_problem