TPLP 20 (6): 911–925, 2020. c The Author(s), 2020. Published by Cambridge University Press. This is an Open Access 911 article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited doi:10.1017/S1471068420000277 A General Framework for Stable Roommates Problems using Answer Set Programming∗ ESRA ERDEM and MUGE¨ FIDAN Faculty of Engineering and Natural Sciences, Sabanci University, Istanbul, Turkey fesraerdem,mugefi
[email protected] DAVID MANLOVE and PATRICK PROSSER School of Computing Science, University of Glasgow, Glasgow, UK fdavid.manlove,
[email protected] submitted 7 August 2020; accepted 10 August 2020 Abstract The Stable Roommates problem (SR) is characterized by the preferences of agents over other agents as roommates: each agent ranks all others in strict order of preference. A solution to SR is then a partition of the agents into pairs so that each pair shares a room, and there is no pair of agents that would block this matching (i.e., who prefers the other to their roommate in the matching). There are interesting variations of SR that are motivated by applications (e.g., the preference lists may be incomplete (SRI) and involve ties (SRTI)), and that try to find a more fair solution (e.g., Egalitarian SR). Unlike the Stable Marriage problem, every SR instance is not guaranteed to have a solution. For that reason, there are also variations of SR that try to find a good-enough solution (e.g., Almost SR).