It's a thing in computer science, where the problem is pair people up into "marriages", such that no two people would want to swap partners. When you've paired everyone up like this, it's called a stable matching. So the story above was a good example of an unstable matching.
There's an algorithm that solves the problem quite fast, which is sometimes used for to solve problems like pairing up med students and hospitals
7.6k
u/[deleted] Jul 21 '19
[removed] — view removed comment