Elsevier

Journal of Algorithms

Volume 12, Issue 1, March 1991, Pages 154-178
Journal of Algorithms

A necessary and sufficient condition for the existence of a complete stable matching

https://doi.org/10.1016/0196-6774(91)90028-WGet rights and content

Abstract

The stable roommates problem is a well-known problem of matching n people into n2 disjoint pairs so that no two unmatched persons both prefer each other to their partners under the matching. We call such a matching “a complete stable matching.” It is known that a complete stable matching may not exist. Irving described an O(n2) algorithm that would find one complete stable matching if there is one, or would report that none exists. In this paper, we give a necessary and sufficient condition for the existence of a complete stable matching; namely, the non-existence of any odd party, which will be defined subsequently. We define a new structure called a “stable partition,” which generalizes the notion of a complete stable matching, and prove that every instance of the stable roommates problem has at least one such structure. We also show that a stable partition contains all the odd parties, if there are any. Finally we have an O(n2) algorithm that finds one stable partition which in turn gives all the odd parties.

References (12)

  • D Gale et al.

    Some remarks on the stable matching problem

    Discrete Appl. Math.

    (1985)
  • R Irving

    An efficient algorithm for the stable roommates problems

    J. Algorithms

    (1985)
  • D Gale et al.

    College admissions and the stability of marriage

    Amer. Math. Monthly

    (1962)
  • D Gusfield

    Three fast algorithms for four problems in stable marriage

    SIAM J. Comput.

    (1987)
  • D Gusfield

    The structure of the stable roommates problem: Efficient representation and enumeration of all stable assignments

    SIAM J. Comput.

    (1988)
  • D Gusfield et al.

    The Stable Marriage Problem: Structure and Algorithms

    (1989)
There are more references available in the full text version of this article.

Cited by (128)

  • Stable and meta-stable contract networks

    2023, Journal of Mathematical Economics
  • Exploring the incremental merger value from multimarket and technology arguments

    2023, International Journal of Industrial Organization
  • A local interaction dynamic for the matching problem

    2022, Physica A: Statistical Mechanics and its Applications
    Citation Excerpt :

    A classical real-world example is the problem of finding roommates at the university, hence the name of the problem [4]. In contrast to the SMP, the RP have instances where a stable solution may fail to exist [5]. In addition to the stable solutions, in both the bipartite and monopartite models, it is possible to study the ground state solution, that is the configuration that maximizes the global benefit of the society.

  • Stability against robust deviations in the roommate problem

    2021, Games and Economic Behavior
    Citation Excerpt :

    Appendices A–C provide the proofs. Appendix D discusses the conditions for Tan's (1991) results, which we heavily exploit in our analysis. In the literature, a number of studies have defined stability concepts based on chains of deviations and their final outcomes, in a similar spirit with ours.

View all citing articles on Scopus

This research was supported by National Science Council of Republic of China under Grant NSC 77-0408-E009-18.

View full text