TOPICS
Search

Stable Roommate Problem


The stable roommate problem asks whether an even number of participants, each with a strict ranking of all other participants, can be paired so that there is no blocking pair. A blocking pair consists of two participants who each prefer the other to their assigned partner. The desired pairing is a perfect matching. Unlike the stable marriage problem, a stable roommate instance need not have a solution (Young and Studebaker 2026).

Let P_n be the probability that a solution exists when the n participants have independent, uniformly random strict rankings. Young and Studebaker (2026) reported

 P_n∼(e2^(1/4)Gamma(3/4))/(sqrt(pi))n^(-1/4)

as even n->infty, where Gamma is the gamma function. The leading constant is approximately 2.234914123. This confirms Mertens's predicted exponent but not his original numerical prediction for the constant (Young and Studebaker 2026).

Fanelli and Moscardelli (2025) introduced a rank-improvement version allowing unmatched participants, who rank being single last. In a complete strict preference profile on N participants, a pair blocks at threshold k if both would improve their ranks by at least k by pairing with each other. A matching is k-stable if it has no such pair. Let K(N) be the least positive k that guarantees a k-stable matching for every profile.

Fanelli and Moscardelli conjectured that the upper bound [N/2] might be tight for large N. Kumar (2026) showed that K(2m+1)<=m for m>=3. Zheng (2026) established K(N)=[N/2]-1 for every N>=13, including both parities. Both results have registered Lean formalizations.

Chen (2026) reports exact thresholds through ten participants, extending the small cases of Fanelli and Moscardelli (2025). The threshold is 1 for N=1 or 2, 2 for N=3 or 4, 3 for 5<=N<=8, and 4 for N=9 or 10. Chen also gives the bounds

 |_(N-1)/2_|<=K(N)<=|_(N+1)/2_|

for N>=7, where |_x_| is the floor function. These imply K(N)/N->1/2 and agree with the sharper exact formula in its range. Chen reports a Lean formalization and credits Gemini with assistance in developing the proof and formalization.


See also

Perfect Matching, Stable Marriage Problem

Explore with Wolfram|Alpha

References

Chen, Y. "Phase Transition, Exact Thresholds Through N=10, and Tight Asymptotic Bounds for Approximate Stable Roommates." Palomar Registry, Nov. 29, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-29-000018&version=1.Fanelli, A. and Moscardelli, L. "Approximately Stable Matching." In ECAI 2025. 2025. https://doi.org/10.3233/FAIA251234.Kumar, H. "Disproof of the Fanelli-Moscardelli Conjecture on Approximate Stable Roommates in Lean 4." Palomar Registry, Nov. 27, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-27-000064&version=1.Young, C. and Studebaker, I. "Sharp Asymptotics for the Solvability Probability of Random Stable Roommates." 6 Oct 2026. https://arxiv.org/abs/2610.07741.Zheng, R. "Disproof and Exact Threshold for the Fanelli-Moscardelli Approximate Stable Roommates Conjecture." Palomar Registry, Nov. 28, 2026. https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-28-000033&version=1.

Cite this as:

Weisstein, Eric W. "Stable Roommate Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/StableRoommateProblem.html

Subject classifications