Hacker News new | ask | show | jobs
by ggggtez 2874 days ago
https://en.wikipedia.org/wiki/Stable_marriage_problem

Though, in this case, "marriage" is more of a mathematical construct, but the math matches the result here.