Hostname: page-component-89b8bd64d-72crv Total loading time: 0 Render date: 2026-05-07T13:37:06.735Z Has data issue: false hasContentIssue false

Solving stable matching problems using answer set programming

Published online by Cambridge University Press:  07 March 2016

SOFIE DE CLERCQ
Affiliation:
Department of Applied Mathematics, Computer Science & Statistics, Ghent University, Ghent, Belgium (e-mail: SofieR.DeClercq@ugent.be)
STEVEN SCHOCKAERT
Affiliation:
School of Computer Science & Informatics, Cardiff University, Cardiff, UK (e-mail: SchockaertS1@cardiff.ac.uk)
MARTINE DE COCK
Affiliation:
Center for Data Science, UW Tacoma, Tacoma, US Deparment of Applied Mathematics, Computer Science & Statistics, Ghent University, Ghent, Belgium (e-mail: MDeCock@u.washington.edu)
ANN NOWE
Affiliation:
Computational Modeling Lab, Vrije Universiteit Brussel, Brussels, Belgium (e-mail: ANowe@vub.ac.be)

Abstract

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.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2016 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable

Supplementary material: PDF

de Clercq supplementary material

Online Appendix

Download de Clercq supplementary material(PDF)
PDF 284.1 KB