Skip to main content
Log in

Sex-Equal Stable Matchings: Complexity and Exact Algorithms

  • Published:
Algorithmica Aims and scope Submit manuscript

Abstract

We explore the complexity and exact computation of a variant of the classical stable marriage problem in which we seek matchings that are not only stable, but are also “fair” in a formal sense. In particular, we study the sex-equal stable marriage problem (SESM), in which, roughly speaking, we wish to find a stable matching with the property that the men’s happiness is as close as possible to the women’s happiness. This problem is known to be strongly NP-hard (Kato in Jpn. J. Ind. Appl. Math. 10:1–19, 1993).

We specifically consider SESM instances in which the preference lists of the men and/or women are bounded in length by a constant. On the negative side, we show that SESM is NP-hard, even if both the men’s and women’s preference lists are of length at most three, and is not even in the class XP when parameterized by the objective value of the solution. This strengthens the NP-hardness results of Kato (Jpn. J. Ind. Appl. Math. 10:1–19, 1993). On the positive side, we show that our hardness result is “tight” by giving a polynomial-time algorithm for the case in which the preference lists on one side (say the men) are of length at most two, and the lengths of the lists on the other side (the women) are unbounded. Furthermore, we give a low-order exponential-time algorithm for SESM in which the preference lists on one side are of length at most l (and the lengths of the lists on the other side are unbounded). In particular, for every pair of constants \(l \in\mathcal{Z}^{+}\) and \(\epsilon\in\mathcal{R}^{+}\) there is an algorithm with running time bounded by \(O^{\star}(2^{(5 - \sqrt{24})(l-2 + \epsilon)n}) + O^{\star}(2^{\frac {(l-1)}{2\epsilon}})\). Hence, if ϵ is chosen to be a sufficiently small constant, the running time is in O (1.0726n), O (1.1504n), O (1.2339n),… for l=3,4,5,… .

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2

Similar content being viewed by others

Notes

  1. Gale and Shapley actually consider the restriction of SMI in which each man ranks every woman on his preference list, and each woman ranks every man on her preference list. Their results clearly generalize to the SMI case.

  2. The study of stable matching problems with preference lists that are of fixed or bounded length on one side is motivated by practical applications, such as matching medical students to hospitals, in which such a restriction usually applies.

  3. There has been much recent interest in exact exponential-time algorithms for computationally hard problems. We refer the reader to the survey of Woeginger [21].

  4. We use the standard O notation that suppresses polynomial factors in any terms to analyze the running time of an exponential-time algorithm.

References

  1. Bodlaender, H.: A tourist guide through treewidth. Acta Cybern. 11(1–2), 1–23 (1993)

    MATH  MathSciNet  Google Scholar 

  2. Cheng, C.: Understanding the generalized median stable matchings. Algorithmica 58(1), 34–51 (2010)

    Article  MATH  MathSciNet  Google Scholar 

  3. Edwards, K., Farr, G.: Planarization and fragmentability of some classes of graphs. Discrete Math. 308, 2396–2406 (2008)

    Article  MATH  MathSciNet  Google Scholar 

  4. Feder, T.: Stable networks and product graphs. Ph.D. Thesis, Stanford University, 1990 (Published in Memoirs of the American Mathematical Society, 116(555), (1995))

  5. Gale, D., Shapley, L.S.: College admissions and the stability of marriage. Am. Math. Mon. 69, 9–15 (1962)

    Article  MATH  MathSciNet  Google Scholar 

  6. Gusfield, D.: Three fast algorithms for four problems in stable marriage. SIAM J. Comput. 16(1), 111–128 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  7. Gusfield, D., Irving, R.W.: The Stable Marriage Problem: Structure and Algorithms. MIT Press, Cambridge (1989)

    MATH  Google Scholar 

  8. Gale, D., Sotomayor, M.: Some remarks on the stable matching problem. Discrete Appl. Math. 11, 223–232 (1985)

    Article  MATH  MathSciNet  Google Scholar 

  9. Irving, R.W., Leather, P.: The complexity of counting stable marriages. SIAM J. Comput. 15(3), 655–667 (1986)

    Article  MATH  MathSciNet  Google Scholar 

  10. Irving, R.W., Leather, P., Gusfield, D.: An efficient algorithm for the “optimal” stable marriage. J. ACM 34(3), 532–543 (1987)

    MathSciNet  Google Scholar 

  11. Iwama, K., Miyazaki, S., Yanagisawa, H.: Approximation algorithms for the sex-equal stable marriage problem. ACM Trans. Algorithms 7(1), Article No. 2 (2010)

  12. Johnson, D.S., Niemi, K.A.: On knapsacks, partitions, and a new dynamic programming technique for trees. Math. Oper. Res. 8(1), 1–14 (1983)

    Article  MATH  MathSciNet  Google Scholar 

  13. Kato, A.: Complexity of the sex-equal stable marriage problem. Jpn. J. Ind. Appl. Math. 10, 1–19 (1993)

    Article  MATH  Google Scholar 

  14. Kijima, S., Nemoto, T.: Finding a level ideal of a poset. In: Proceedings of COCOON’09: The 15th International Computing and Combinatorics Conference. Lecture Notes in Computer Science, pp. 317–327. Springer, Berlin (2009)

    Google Scholar 

  15. Knuth, D.E.: Mariages Stables. Les Presses de L’Université de Montréal, Montréal (1976)

    MATH  Google Scholar 

  16. Marx, D., Schlotter, I.: Stable assignment with couples: parameterized complexity and local search. Discrete Optim. 8(1), 25–40 (2011)

    Article  MATH  MathSciNet  Google Scholar 

  17. Marx, D., Schlotter, I.: Parameterized complexity and local search approaches for the stable marriage problem with ties. Algorithmica 58(1), 170–187 (2010)

    Article  MATH  MathSciNet  Google Scholar 

  18. Niedermeier, R.: Invitation to Fixed-Parameter Algorithms. Oxford University Press, London (2006)

    Book  MATH  Google Scholar 

  19. Teo, C., Sethuraman, J.: The geometry of fractional stable matchings and its applications. Math. Oper. Res. 23(4), 874–891 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  20. Valdes, J., Tarjan, R.E., Lawler, E.L.: The recognition of series parallel digraphs. SIAM J. Comput. 11(2), 298–313 (1982)

    Article  MATH  MathSciNet  Google Scholar 

  21. Woeginger, G.J.: Open problems around exact algorithms. Discrete Appl. Math. 156(3), 397–405 (2008)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Acknowledgements

We wish to thank an anonymous reviewer for valuable comments and suggestions, and for detecting an error in a previous draft.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eric McDermid.

Additional information

E. McDermid and R.W. Irving were supported by EPSRC grant EP/E011993/1.

E. McDermid was supported by UWM Research Growth Initiative.

Part of this work was completed while E. McDermid was at the School of Computing Science, University of Glasgow and the Computer Science Department, University of Wisconsin-Milwaukee.

Rights and permissions

Reprints and permissions

About this article

Cite this article

McDermid, E., Irving, R.W. Sex-Equal Stable Matchings: Complexity and Exact Algorithms. Algorithmica 68, 545–570 (2014). https://doi.org/10.1007/s00453-012-9672-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00453-012-9672-0

Keywords

Navigation