English

Bridging the Gap Between Stable Marriage and Stable Roommates: A Parameterized Algorithm for Optimal Stable Matchings

Data Structures and Algorithms 2026-05-11 v2 Computer Science and Game Theory Combinatorics

Abstract

In the Stable Roommates Problem (SR), a set of 2n2n agents rank one another in a linear order. The goal is to find a matching that is stable: one that has no pair of agents who mutually prefer each other over their assigned partners. We consider the problem of finding an optimal stable matching. Agents associate weights with each of their potential partners, and the goal is to find a stable matching that minimizes the sum of the associated weights. Efficient algorithms exist for finding an optimal stable matching in the Stable Marriage Problem (SM), but the problem is NP-hard for general SR instances. In this paper, we define a notion of structural distance between SR instances and SM instances, which we call the minimum crossing distance. When an SR instance has minimum crossing distance 00, the instance is structurally equivalent to an SM instance, and this structure can be exploited to find an optimal stable matching efficiently. More generally, we show that when an SR instance has minimum crossing distance kk, an optimal stable matching can be computed in time 2O(k)nO(1)2^{O(k)} n^{O(1)}. Thus, the optimal stable matching problem is fixed-parameter tractable (FPT) with respect to minimum crossing distance.

Keywords

Cite

@article{arxiv.2603.26943,
  title  = {Bridging the Gap Between Stable Marriage and Stable Roommates: A Parameterized Algorithm for Optimal Stable Matchings},
  author = {Christine T. Cheng and Will Rosenbaum},
  journal= {arXiv preprint arXiv:2603.26943},
  year   = {2026}
}

Comments

Accepted to MATCH UP 2026; version 2 includes various minor improvements

R2 v1 2026-07-01T11:41:46.652Z