arXiv:2610.39764cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.39764

A Single-Exponential Time Algorithm for the Maximum-Cardinality Weakly Stable Matching Problem with Ties and Incomplete Lists

Shuichi Miyazaki, Suguru Tamaki

Abstract

We study Stable Marriage with Ties and Incomplete lists (SMTI) under weak stability. For an instance with n agents on each side, we give an exact algorithm that returns a maximum-cardinality weakly stable matching in O∗(22.74n)O^{*}(22.74^{n}) time. To the best of our knowledge, this is the first exact algorithm for this problem running in single-exponential time.

1 Introduction

The stable marriage problem (SM), introduced by Gale and Shapley [5], is a fundamental problem of matching under preferences. There are nn men and nn women, and each person ranks all members of the opposite side in strict order of preference. The task is to pair men and women so that no man and woman prefer each other to their assigned partners. Such a pairing is called a stable matching. Gale and Shapley showed that a stable matching always exists and can be found in O(n2)O(n^{2}) time. The problem and its extensions have practical applications, including the assignment of medical residents to hospitals, and have been extensively studied in algorithm theory because of their rich combinatorial structure and diverse computational questions [7, 15].

Two natural extensions allow a person to be indifferent among several partners and to regard some partners as unacceptable. These are represented by ties and incomplete preference lists, respectively, and the resulting problem is called Stable Marriage with Ties and Incomplete lists (SMTI). In this paper, we consider weak stability: a mutually acceptable pair blocks a matching only when each person is unmatched or strictly prefers the other to the assigned partner. Although a weakly stable matching can be found in polynomial time by breaking ties arbitrarily and applying the Gale–Shapley algorithm, its cardinality may depend on how the ties are broken. It is therefore natural to seek a weakly stable matching of maximum cardinality. This optimization problem, called MAX-SMTI, is NP-hard [14, 9, 16]. Its approximability has been extensively studied, with results on both approximation algorithms [13, 18, 20] and hardness of approximation [4].

In this paper, we study exact algorithms for MAX-SMTI. For an instance with nn agents on each side, a straightforward approach examines all n!n! bijections between the two sides, deletes unacceptable pairs, and checks the resulting matchings for weak stability. This gives an O∗(n!)=2Θ(nlog⁡n)O^{*}(n!) = 2^{\Theta(n \log n)}-time algorithm, where O∗O^{*} suppresses factors polynomial in nn. A natural question is whether MAX-SMTI can be solved in single-exponential time, that is, in O∗(cn)O^{*}(c^{n}) time for some constant cc.

*Graduate School of Information Science, University of Hyogo. shuichi@sis.u-hyogo.ac.jp

†^{\dagger}Graduate School of Information Science, University of Hyogo. tamak@sis.u-hyogo.ac.jp

Our results. We answer this question affirmatively by giving an exact algorithm with running time O∗(22.74n)O^{*}(22.74^{n}). To the best of our knowledge, this is the first exact algorithm for MAX-SMTI running in single-exponential time. Our main result, which follows from Lemmas 7 and 9, is stated as follows.

Theorem 1. A maximum-cardinality weakly stable matching in an SMTI instance with n agents on each side can be found in O∗(22.74n)O^{*}(22.74^{n}) time.

Related work. Irving [8] studied stable marriage with ties and introduced weak, strong, and super-stabilities. Manlove [14] and Iwama et al. [9] established the NP-hardness of maximizing the cardinality of a weakly stable matching when ties and incomplete lists are allowed; these results were further extended to restricted cases by Manlove et al. [16]. Polynomial-time algorithms for strong stability and super-stability were given by Irving [8] and extended to incomplete lists by Manlove [14].

Approximation algorithms for MAX-SMTI have achieved progressively better guarantees [10, 12], culminating in a 1.5-approximation algorithm [18] and subsequent simpler and faster algorithms with the same guarantee [13, 20]. On the other hand, hardness results have clarified the limits of polynomial-time approximation under various complexity assumptions [22]. In particular, the approximation ratio of 1.5 is tight under the strong Unique Games Conjecture [4].

Parameterized studies of SMTI have identified tractable cases and hardness barriers using parameters that describe ties, solution size, and the structure of the acceptability graph [17, 1, 2]. This line of research includes fixed-parameter algorithms and kernelization, and has recently been extended to FPT approximation schemes [3]. These approaches complement our focus on the running time of exact algorithms as a function of the number of agents.

A related algorithmic idea appears in Kavitha’s single-exponential time algorithm for the popular roommates problem with strict preferences [11]. Her algorithm enumerates stable matchings in auxiliary bipartite instances and uses an exponential bound on their number to analyze the running time. Our algorithm also combines stable-matching enumeration with a counting bound, applying this approach to MAX-SMTI through auxiliary Hospitals/Residents instances. We use the bound of Palmer and Pálvölgyi [19] to obtain our explicit running time.

References (17)