Extending Stable and Popular Matching Algorithms from Bipartite to Arbitrary Instances

Gergely Csáji · DOI

Abstract

This paper addresses a long-standing gap in matching theory by extending stable and popular matching algorithms from bipartite graphs to arbitrary instances, commonly known as the "Stable Roommates" problem. The research provides a 3/2-approximation algorithm for maximum size weakly stable matchings in instances with ties, resolving a 20-year-old open question. By introducing a meta-algorithm framework that utilizes local symmetry and half-integral structures, the author demonstrates that many results previously restricted to bipartite settings can be generalized to arbitrary graphs.

Introduction

In matching theory, a fundamental distinction is made between bipartite instances—where two distinct sets of agents match with one another (e.g., the "Stable Marriage" problem)—and arbitrary instances, where any agent can match with any other (e.g., the "Stable Roommates" problem). While bipartite matching is well-understood, arbitrary graphs introduce significant complexity, particularly when agents have weak preferences (ties).

In scenarios with ties, finding the largest possible "weakly stable" matching—where no two agents both strictly prefer each other over their current partners—is NP-hard. For bipartite graphs, a 3/2-approximation algorithm has existed for years. However, for arbitrary graphs, it remained unknown whether a better-than-2-approximation was even possible. This specific problem, posed by Irving and Manlove in 2002, has remained one of the most prominent open questions in the field until now.

The Meta-Algorithm Framework

The core contribution of this work is a new Meta-Algorithm framework designed to bridge the gap between bipartite and arbitrary structures. The framework operates in three distinct phases:

  1. Transformation: The algorithm creates a modified roommates instance by generating parallel copies of every edge and establishing strict preference orders over these copies.
  2. Computation: An existing stable matching algorithm (specifically an extension of Tan’s algorithm) is executed on this expanded instance to find a "half-integral" stable matching. In this context, edges can have weights of 0, 0.5, or 1.
  3. Projection: This half-integral matching is projected back onto the original graph to produce the final result.

Historically, attempts to extend bipartite algorithms failed because they attempted to impose a global bipartite structure onto arbitrary graphs. The author’s key insight is that a global partition is unnecessary; one only needs to ensure that for each individual edge, its parallel copies are ranked in an "almost opposite" order by its two endpoints. This "local symmetry" allows the algorithm to bypass the structural constraints of non-bipartite graphs.

Key Theoretical Insights

Local vs. Global Symmetry

The realization that the "opposite ranking" trick used in bipartite algorithms can be applied locally to edges is a significant shift in perspective. It allows for the handling of odd cycles—the primary obstacle in roommates problems—without requiring the entire graph to be bipartite.

Half-Integrality as a Bridge

In the Stable Roommates problem, a perfect integral stable matching (where every agent is matched to exactly one person) might not exist. By focusing on half-integral matchings—where an agent can be "half-matched" to two different people—the author identifies a stable structure that is both guaranteed to exist and efficiently computable.

The paper also extends the concept of "popular matchings"—those that would not lose a head-to-head election against any other matching. The author introduces a new definition of popularity for fractional matchings and proves that an "extra-popular" matching always exists and can be found in polynomial time, even in the roommates setting.

Results and Impact

Solving the 3/2-Approximation Question

The paper rigorously proves that the Maximum Size Weakly Stable Roommates problem (Max-fSRTI) admits a 3/2-approximation algorithm in polynomial time. This result finally matches the best-known ratio for the simpler bipartite case and closes the gap identified by Irving and Manlove two decades ago.

Extensions to Popularity

Beyond stability, the author successfully extends algorithms to find:

  • Maximum size popular fractional matchings.
  • Popular matchings among maximum weight matchings.

Practical Application: The Couples Problem

These theoretical results have immediate practical implications for the Hospitals/Residents problem, specifically when couples are involved. Matching couples is a notorious difficulty for medical residency programs because the joint preferences of a couple break the bipartite structure of the matching market. The new algorithms provide a robust framework for finding "near-feasible" stable solutions in these complex, non-bipartite scenarios.

Limitations and Future Work

While the 3/2-approximation is a landmark result, it is likely the theoretical limit. Under the "Strong Unique Games Conjecture," it is impossible to achieve a better approximation ratio even for bipartite cases.

Furthermore, the current algorithms produce half-integral matchings (weights of 0.5). While these are useful for theoretical analysis and certain rounding applications (like the hospital-resident problem), some real-world applications strictly require integral matchings (weights of 0 or 1). Future research may focus on general-purpose integral solutions or further refining the local ranking approach to extend other bipartite matching results to more general graph structures.

Summary updated

BibTeX
@misc{csaji2024extending,
  author = {Gergely Csáji},
  title = {{Extending Stable and Popular Matching Algorithms from Bipartite to Arbitrary Instances}},
  year = {2024},
  eprint = {2409.16173},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.16173},
}
Figure