Hostname: page-component-77f85d65b8-grvzd Total loading time: 0 Render date: 2026-03-28T15:22:38.346Z Has data issue: false hasContentIssue false

Generating Satisfiable Benchmark Instances for Stable Roommates Problems with Optimization

Published online by Cambridge University Press:  27 August 2025

BATURAY YILMAZ
Affiliation:
Faculty of Engineering and Natural Sciences, Sabanci University, Istanbul, Turkiye (e-mails: baturayyilmaz@sabanciuniv.edu, esraerdem@sabanciuniv.edu)
ESRA ERDEM
Affiliation:
Faculty of Engineering and Natural Sciences, Sabanci University, Istanbul, Turkiye (e-mails: baturayyilmaz@sabanciuniv.edu, esraerdem@sabanciuniv.edu)
Rights & Permissions [Opens in a new window]

Abstract

While the existence of a stable matching for the stable roommates problem possibly with incomplete preference lists (SRI) can be decided in polynomial time, SRI problems with some fairness criteria are intractable. Egalitarian SRI that tries to maximize the total satisfaction of agents if a stable matching exists, is such a hard variant of SRI. For experimental evaluations of methods to solve these hard variants of SRI, several well-known algorithms have been used to randomly generate benchmark instances. However, these benchmark instances are not always satisfiable and usually have a small number of stable matchings if one exists. For such SRI instances, despite the NP-hardness of Egalitarian SRI, it is practical to find an egalitarian stable matching by enumerating all stable matchings. In this study, we introduce a novel algorithm to generate benchmark instances for SRI that have very large numbers of solutions, and for which it is hard to find an egalitarian stable matching by enumerating all stable matchings.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press
Figure 0

Fig. 1. (Upper left) First small seed SRTI instance, $I^1$; (upper right) two stable matchings of the first seed, $S_{I^1}$; (middle left) second small SRTI seed with renamed agents, $I^2$; (middle right) stable matchings of the second seed, $S_{I^2}$; (lower left) an SRTI instance obtained from two seeds, $\mathbf{I}$; (lower right) eight stable matchings of the combined instance.

Figure 1

Table 1. Results of computing all stable matchings, using Prosser’s software with Choco. For $n$ agents, out of 20 SR instances, the number #SI of instances with a solution, the average number #SM of stable matchings, the average CPU time (in seconds) to compute all these stable matchings for the satisfiable instances, and the average number of search nodes are reported

Figure 2

Table 2. Results of computing an egalitarian stable matching, using the ASP-based method of Fidan et al., with Clingo. For $n$ agents, incompleteness probability $p_1$, out of 20 SR instances, the number #SI of instances with a stable matching, and the average CPU time (in seconds) to compute an egalitarian solution for these satisfiable instances are reported