Imagine a dorm where an even number of students must be split into pairs of roommates. Each student has ranked everyone else from most to least preferred. You want a pairing that is stable: no two students who aren't paired together would both rather ditch their assigned roommate and move in with each other.
Such a troublesome duo is called a blocking pair — two people who mutually prefer each other to their current partners. A pairing is stable exactly when it has zero blocking pairs.
This sounds like the famous stable marriage problem, where the people split neatly into two sides. But here there are no sides — anyone can pair with anyone. That one change has a startling consequence: a stable pairing might not exist at all.
Comments
Loading comments...