Solving stable matching problems using answer set programming

Since the introduction of the stable marriage problem (SMP) by Gale and Shapley (1962), several variants and extensions have been investigated. While this variety is useful to widen the application potential, each variant requires a new algorithm for finding the stable matchings. To address this issue, we propose an encoding of the SMP using answer set programming (ASP), which can straightforwardly be adapted and extended to suit the needs of specific applications. The use of ASP also means that we can take advantage of highly efficient off-the-shelf solvers. To illustrate the flexibility of our approach, we show how our ASP encoding naturally allows us to select optimal stable matchings, i.e. matchings that are optimal according to some user-specified criterion. To the best of our knowledge, our encoding offers the first exact implementation to find sex-equal, minimum regret, egalitarian or maximum cardinality stable matchings for SMP instances in which individuals may designate unacceptable partners and ties between preferences are allowed. This paper is under consideration in Theory and Practice of Logic Programming (TPLP).

[1]  Martine De Cock,et al.  Modeling Stable Matching Problems with Answer Set Programming , 2013, RuleML.

[2]  David Manlove,et al.  Algorithmics of Matching Under Preferences , 2013, Bull. EATCS.

[3]  Victor W. Marek,et al.  A theory of nonmonotonic rule systems I , 1990, [1990] Proceedings. Fifth Annual IEEE Symposium on Logic in Computer Science.

[4]  W IrvingRobert,et al.  An efficient algorithm for the optimal stable marriage , 1987 .

[5]  David Gale,et al.  Some remarks on the stable matching problem , 1985, Discret. Appl. Math..

[6]  Daniel S. Hirschberg,et al.  Three-Dimensional Stable Matching Problems , 1991, SIAM J. Discret. Math..

[7]  Robert W. Irving Stable Marriage and Indifference , 1994, Discret. Appl. Math..

[8]  K. Iwama,et al.  A Survey of the Stable Marriage Problem and Its Variants , 2008, International Conference on Informatics Education and Research for Knowledge-Circulating Society (icks 2008).

[9]  P. Gärdenfors Match making: Assignments based on bilateral preferences , 1975 .

[10]  Georg Gottlob,et al.  On the computational cost of disjunctive logic programming: Propositional case , 1995, Annals of Mathematics and Artificial Intelligence.

[11]  Robert W. Irving The cycle roommates problem: a hard case of kidney exchange , 2007, Inf. Process. Lett..

[12]  Alvin E. Roth,et al.  Two-Sided Matching: A Study in Game-Theoretic Modeling and Analysis , 1990 .

[13]  Baochun Li,et al.  Egalitarian stable matching for VM migration in cloud computing , 2011, 2011 IEEE Conference on Computer Communications Workshops (INFOCOM WKSHPS).

[14]  Robert W. Irving Greedy Matchings , 2022 .

[15]  L. S. Shapley,et al.  College Admissions and the Stability of Marriage , 2013, Am. Math. Mon..

[16]  Robert W. Irving,et al.  An efficient algorithm for the “optimal” stable marriage , 1987, JACM.

[17]  Dan Gusfield,et al.  Three Fast Algorithms for Four Problems in Stable Marriage , 1987, SIAM J. Comput..

[18]  Eric McDermid,et al.  Sex-Equal Stable Matchings: Complexity and Exact Algorithms , 2012, Algorithmica.

[19]  Victor W. Marek,et al.  A theory of nonmonotonic rule systems I , 2005, Annals of Mathematics and Artificial Intelligence.

[20]  Gerald Pfeifer,et al.  Design and implementation of aggregate functions in the DLV system* , 2008, Theory and Practice of Logic Programming.

[21]  Shuichi Miyazaki,et al.  Approximation algorithms for the sex-equal stable marriage problem , 2007, TALG.

[22]  Tomi Janhunen,et al.  Representing Normal Programs with Clauses , 2004, ECAI.

[23]  Akiko Kato,et al.  Complexity of the sex-equal stable marriage problem , 1993 .

[24]  David Manlove,et al.  Hard variants of stable marriage , 2002, Theor. Comput. Sci..

[25]  Esra Erdem,et al.  Tight logic programs , 2003, Theory and Practice of Logic Programming.

[26]  Miroslaw Truszczynski,et al.  Answer set programming at a glance , 2011, Commun. ACM.

[27]  Alvin E. Roth,et al.  Pairwise Kidney Exchange , 2004, J. Econ. Theory.

[28]  David F. Manlove,et al.  Stable Marriage with Ties and Unacceptable Partners , 1999 .

[29]  Eric McDermid,et al.  Three-Sided Stable Matchings with Cyclic Preferences , 2010, Algorithmica.

[30]  Chitta Baral,et al.  Knowledge Representation, Reasoning and Declarative Problem Solving , 2003 .

[31]  Ágnes Cseh Popular Matchings , 2017 .