Maximum Stable Matching with Matroids and Partial Orders ††thanks: Some of the results in this paper have appeared in the 6th SIAM Symposium on Simplicity of Algorithms (SOSA 2023) [12]
Abstract
The Stable Marriage problem (SM), solved by the famous deferred acceptance algorithm of Gale and Shapley (GS), has many natural generalizations. If we allow ties in preferences, then the problem of finding a maximum stable matching becomes NP-hard, and the best known approximation ratio is (McDermid 2009, Paluch 2011, Z. Király 2012), achievable by running GS on a cleverly constructed modified instance. Another elegant generalization of SM is the matroid kernel problem introduced by Fleiner (2001), which is solvable in polynomial time using an abstract matroidal version of GS. Our main result is a simple -approximation algorithm for the matroid kernel problem when preferences are given as interval orders — a broad subclass of partial orders that covers many applications beyond preferences with ties. In addition, for the bipartite matching case, we show that the output of our algorithm also -approximates the LP-optimum of the relaxation of the corresponding Integer Program, which shows that the integrality gap is at most for the interval order case. To contrast this with hardness results, we show that if arbitrary partial orders are allowed in the preferences, then even in the bipartite matching case, the problem becomes hard to approximate within a factor better than assuming the Unique Games Conjecture, and the integrality gap becomes .
1 Introduction
The deferred acceptance algorithm of Gale and Shapley [18] is a quintessential example of a simple combinatorial algorithm that has wide-ranging applications, in such diverse areas as healtchcare labor markets, kidney exchange planning, project allocations, and school choice mechanisms. The original stable marriage problem solved by the Gale–Shapley algorithm has been generalized in many directions, and the mathematical research in the area is still thriving, 60 years after the original paper.
The aim of this paper is to bring together two directions in which the problem has been extended. One is the design of approximation algorithms for finding a maximum stable matching when ties are allowed in the preference lists. The other is the generalization of the stable marriage problem to matroid intersection, in particular, the matroid kernel problem introduced and solved by Fleiner [14] using an abstract version of the Gale–Shapley algorithm.
We show that the best known approximation ratio of for the maximum stable marriage problem with ties [33] can also be achieved for the matroid kernel problem with ties. This extension is made possible by a new theorem on basis exchanges for two disjoint bases of a matroid, which may be of independent interest.
In addition to extending the approximation result to matroids, we also go beyond preferences with ties, and achieve the same approximation ratio for preferences given by interval orders. Interval orders are partial orders that can be obtained as left-to-right precedence relations of intervals on the real line. Equivalently, they can be characterized by the property that the disjoint union of two comparable pairs contains a third comparable pair. Several stability notions that have appeared in the literature can be modeled as interval orders (e.g., -stability [1, 37], near-stability [10]). We show that a simple variant of the Gale–Shapley algorithm applied to carefully constructed modified instances of the problem gives a -approximation for the maximum matroid kernel problem with interval orders.
We complement this result with a new hardness result for the maximum stable marriage problem with arbitrary partial orders. We show that, assuming the Unique Games Conjecture [29], it is NP-hard to approximate the problem within a factor of for any .
1.1 Basic definitions
Partial orders, weak orders, and stable marriage with ties.
A (strict) partial order on a ground set , denoted by , is an irreflexive, transitive, and asymmetric binary relation111In literature, the term partial order is also used to refer to a reflexive, transitive, and antisymmetric binary relation, which we call a non-strict partial order. Strict partial orders and non-strict ones are equivalent in the sense that there is a one-to-one correspondence between them; a strict partial order is converted to a non-strict partial order by adding binary relations for all , and vise versa. on . In this paper, we always assume that is finite. If several partial orders are given, we use indices to distinguish them.
Two elements and are incomparable if and . A partial order is a weak order if being incomparable is a transitive relation. In this case, we use to indicate that and are incomparable, or in other words, tied. In a weak order, the ground set is partitioned into equivalence classes of tied elements.
In the stable marriage problem with ties and incomplete lists (smti)222While the stable marriage problem was orinally defined for simple bipartite graphs, we use the term to mean a generalized version where graphs can be multigraphs, i.e., parallel edges are allowed., we are given a bipartite graph , and a weak order on for every vertex , where denotes the set of edges incident to in . Given a matching in , an edge with endpoints is a blocking edge for if the following two conditions hold:
-
•
or ,
-
•
or ,
where denotes the edge of incident to if it exists. The matching is stable if no edge blocks it. The max-smti problem is to find a stable matching of maximum size. The problem is NP-hard [25], and the best known polynomial-time approximation algorithm has an approximation ratio of [33]. It is also known that no approximation ratio better than is achievable assuming the Unique Games Conjecture (UGC) [41]. In this paper, we will also consider the maximum stable marriage problem with partial orders (max-smpo), where the preferences are not required to be weak orders. To our knowledge, no stronger hardness of approximation results have previously been known for max-smpo than those for max-smti.
If no ties are allowed at all in the preference orders (i.e., the preferences are strict), then we obtain the standard stable marriage problem, where all stable matchings have the same size by the so-called “rural hospitals theorem” [39, 17], and the Gale–Shapley algorithm finds one efficiently. In fact, we can obtain a stable matching of a max-smti or max-smpo instance by modifying each agent’s preferences to an arbitrary total order that is consistent with the agent’s partial order, and running the Gale–Shapley algorithm with the resulting total orders. However, the size of the stable matching obtained depends on the choice of total orders, and it can be as small as half the optimum.
Matroid kernels.
A natural way to generalize the stable marriage problem and the max-smti problem is to allow agents to have multiple partners, but have some restrictions on the possible sets of partners. There are several models in this vein: the hospitals-residents problem, the college admissions problem with common quotas, classified stable matchings etc. (see Section 1.3 for more details).
From a theoretical point of view, a particularly elegant generalization is the matroid kernel problem defined by Fleiner [14]. We use the notation and terminology of Schrijver [40, Chapter 39] for matroids, unless otherwise stated. See Section 2 for the definitions of some basic notions of matroids (such as independence, bases, fundamental circuits).
A partially ordered matroid is a triple where is the set of elements, is the family of independent sets of the matroid, and is a partial order on . Let and be partially ordered matroids on the same ground set . A common independent set is an -kernel if for every there exists such that and for every for which . If there is an element for which this does not hold, then we say that blocks . The max-kernel-po problem is to find an -kernel of maximum size.
If are partition matroids and are weak orders, then the max-kernel-po problem is equivalent to max-smti. Indeed, we can construct a bipartite graph by considering the partition classes of the two matroids as vertices and the elements of as edges, whose two endpoints are the vertices corresponding to the two partition classes containing that element. When each vertex has a weak order that is the restriction of or to its incident edges, then there is a one-to-one correspondence between the stable matchings of this bipartite graph and the -kernels.
To see how the matroid kernel problem is considerably more general than the stable marriage problem, observe that in the above construction, we have a 1-uniform matroid for each partition class. We can replace these with arbitrary matroids, and still have a special case of the matroid kernel problem. This corresponds to a generalization of the many-to-many stable matching, where each agent has a matroid on the set of incident edges, and the chosen edge set is required to be independent in each of these matroids. Furthermore, we can include upper bounds on the number of edges incident to subsets of agents on both sides, provided that for each side these upper bounds are given by a polymatroid function.
Fleiner [14, 15] considered the matroid kernel problem without incomparability, i.e., when and are total orders. He showed that matroid kernels always exist and have the same size (in fact, they have the same span in both matroids). He also gave a matroidal version of the Gale–Shapley algorithm that finds a matroid kernel efficiently. In case of weak orders, the kernels may have different sizes, and it is NP-hard to find a largest one, since this problem is a generalization of max-smti.
Interval orders.
Interval orders form a useful and well-studied subclass of partial orders. To give an intuitive definition, let the ground set be a family of intervals on the real line: . Then, we can define a partial order on by (i.e., the th interval is completely to the right of the th interval). An interval order is a partial order that can be obtained in this way. An alternative definition, which we will later use, is that an interval order is a partial order that has no induced sub-poset of size 4 isomorphic to two disjoint chains of size 2 (with no other relations between the 4 elements). In other words, if there are distinct elements with and , then we have or . Due to this property, interval orders are sometimes called -free posets.
Weak orders are obviously interval orders. A larger notable subclass is that of semiorders, where a numerical utility value is assigned to each element of , and two elements are considered incomparable if their utilities differ by at most a fixed threshold . This corresponds to an interval order where all intervals have the same length. In the context of matching problems with preferences, semiorders have been used to model the reluctance of agents to switch partners if the improvement is too small; see e.g. the notion of locally nearly stable matchings in [10]. Interval orders provide a more refined way to model this kind of reluctance by allowing the incomparability intervals to have different sizes.
1.2 Our contribution
The key tool for generalizing the -approximation to matroid kernels is a result on the existence of a perfect matching of certain types of exchangeable pairs in a matroid. This is presented as Theorem 5 in Section 2. This result may be of independent interest, as it is a previously unknown elegant property of basis exchange graphs.
Using Theorem 5, we show in Section 3 that there is a -approximation algorithm for max-kernel-po with interval orders. That is, we show the following theorem.
Theorem 1.
Given two partially ordered matroids and with and being interval orders, one can find an -kernel such that is at least of the size of a maximum -kernel.
We remark that Theorem 1 implies a -approximation algorithm for finding a maximum solution in the many-to-many stable matching problem on where each vertex has a matroid constraint and an interval order on . To reduce the problem to the setting in Theorem 1, we construct an interval order on the ground set consistent to the orders of all vertices in as follows. (The construction of is similar). Assign indices to elements in as arbitrarily, and then define by taking the union of binary relations in and adding the relations for all and with . We see that is an interval order, and its restriction to is for any . Set and , where and are respectively the direct sums of the matroids of vertices in and . Then -kernels correspond to stable matchings on .
In the case of the stable marriage setting, in Section 4, we show an even stronger statement than Theorem 1: the output of the algorithm also -approximates the LP optimum of the corresponding natural Integer Program. This complements the previously known lower bound of of Iwama et al. [28] on the integrality gap of max-smti.
Our algorithm consists of three steps: (1) constructing an instance of the matroid kernel problem with total orders on the extended ground set obtained by replacing each element by three parallel elements, (2) running Fleiner’s algorithm on the new instance, and (3) projecting the solution to the original ground set. The running time of the algorithm is quadratic in (provided that the independence oracles of matroids are available), and linear in in case of partition matroids, which corresponds to the many-to-many stable matching problem with parallel edges allowed. Since interval orders can model -stability [1, 37] and near-stability [10], our algorithm implies -approximation for these stability notions.
The approximation ratio attained by our algorithm is best possible under UGC. As explained at the end of Section 3.2, this fact easily follows from the result of Askalidis et al. [2], who proved that max-smiss, the maximum stable marriage problem with incomplete lists under social stability, is inapproximable within under UGC. As max-smiss can be seen as a special case of the maximum stable marriage problem with interval orders, the following proposition follows.
Proposition 2.
Assuming UGC, it is NP-hard to approximate max-kernel-po with interval orders within for any . The statement holds even for the maximum stable marriage problem with interval orders.
We then show that the -approximability shown in Theorem 1 cannot be extended to the setting with general partial orders, even in the stable marriage case. In Section 4, we investigate max-smpo, the version of maximum stable marriage where preferences can be arbitrary partial orders. Note that for this problem and also for the more general max-kernel-po, -approximation is easily attained; as explained before, a stable matching (a matroid kernel) can be found by running the (matroidal version of) Gale–Shapley algorithm with total orders consistent with the original partial orders. Since stability implies that the output matching (common independent set) is maximal, its size is at least half of the optimum. We show that for general partial orders, we cannot beat this trivial approximation ratio even for the stable marriage case under UGC.
Theorem 3.
Assuming UGC, it is NP-hard to approximate max-smpo within for any .
The proof of Theorem 3 uses a result of Bansal and Khot [5] about the hardness of finding an independent set of size in a graph that has two disjoint independent sets of size each. We also show in Section 4 that the integrality gap of the LP relaxation of a natural IP of max-smpo has integrality gap at least for general partial orders while it is at most for interval orders as mentioned above. Our results suggest that maybe the class of interval orders is the right generalization for which a nontrivial approximation is still possible.
1.3 Related work
The stable marriage problem with ties and incomplete lists (smti) was first studied by Iwama et al. [25], who showed the NP-hardness of max-smti. Since then, various algorithms have been proposed to improve the approximation ratio [20, 26, 27, 30], and the current best ratio is by a polynomial-time algorithm of McDermid [33], where the same ratio is attained by linear-time algorithms of Paluch [35, 36] and Király [31, 32]. The -approximability extends to the many-to-one matching setting [32] and the student-project allocation problem with ties [11]. As for the inapproximability of max-smti, Halldórsson et al. [19] showed that it is NP-hard to approximate it within some constant factor. Later, inapproximability results have been improved, especially assuming stronger complexity-theoretic conjectures. Yanagisawa [41] and Huang et al. [22] showed that assuming the Unique Games Conjecture, there is no -approximation for any , if PNP. By a recent work by Dudycz, Manurangsi and Marcinkowski [13], it follows that, assuming the Strong Unique Games Conjecture or the Small Set Expansion Hypothesis, there cannot even be a -approximation algorithm for max-smti, if PNP.
The stable marriage problem also has generalizations in which constraints are imposed on the possible sets of edges. Biró et al. [6] studied the college admissions problem with common quotas. It is a many-to-one matching problem between students and colleges, where not only individual colleges but also certain subsets of colleges have upper quotas. Huang [21] investigated the classified stable matching problem, a many-to-one matching model in which each individual college has upper and lower quotas for subsets of students. In the absence of lower quotas, it was shown that a stable matching exists in these models if the constraints have a laminar structure. Yokoi [42] considered a many-to-many matching model with ties and laminar constraints and presented a -approximation algorithm. Its approximation analysis depends on the base orderability of laminar matroids and cannot extend to the general matroid setting.
The stable matching problem has been studied with many different types of preference structures. There are studies on super and strong stabilities with partial order preferences [23, 38]. Condon et al. [38] studied super stability with partial orders, where a blocking edge is defined as an edge such that each of and either strictly prefers the other to its current assignment, or are indifferent between them (i.e. the two are incomparable in the partial order). They showed that we can find a super stable matching in polynomial-time if one exists. Irving, Manlove, and Scott [23] studied strong stability, which differs from super stability in the aspect that an edge only blocks a matching if at least one of strictly prefers the other to their current assignment. They showed that with arbitrary partial orders in the preferences, it is NP-hard to decide if a strongly stable matching exists. With some modifications to their reduction from 3-SAT, it can also be shown that this hardness holds even in the case of semiorders, which is a special case of interval orders.
A closely related area is stable matchings with uncertain or changing preferences, where the preferences of the agents may be partially unknown, or may depend on some random factors and may change over time, which has also been the focus of interest lately [3, 9, 34, 7]. The usual purpose here is to find matchings that are stable with probability one, if there are any, or otherwise find matchings that are stable with maximum probability. In particular, as Aziz et al. [3] mentioned, uncertain preferences are strongly connected to partial order preferences. For example, if we suppose that there is a set of possible preference lists for each agent, then deciding if there is a matching that is stable with any possible choices for these preference lists can be reduced to finding a super stable matching where the agents have partial orders.
Another similar problem is robust stable matchings and locally nearly stable matchings [10]. Intuitively speaking, a robust stable matching is one that is stable, and remains stable even if each agent is allowed to make some swaps (i.e. switch two adjacent entries) in their preference lists, while a locally nearly stable matching is a matching that can be made stable if each agent is allowed to make some swaps in their list, or equivalently, there are no blocking edges, where both agents improve by a lot. Finding robust stable matchings reduces to finding super stable matchings, while finding a maximum size locally nearly stable matching reduces to finding a maximum size (weakly) stable matching with partial order preferences (in this case the arising orders are semiorders).
2 Existence of perfect matching of exchange edges in matroids
In this section, we present our key tool, a result on exchange properties of matroids.
A matroid is a pair of a finite set and a nonempty family satisfying the following two axioms: (i) implies , and (ii) for any with , there is an element with . A set in is called an independent set, and an inclusion-wise maximal one is called a base. By axiom (ii), all bases have the same size, which is called the rank of the matroid. A circuit is an inclusion-wise minimal dependent set. The fundamental circuit of an element for a base , denoted by , is the unique circuit in . By a slight abuse of notation, we will also use for an independent set and an element to denote the unique circuit in if it exists. Any pair of circuits satisfies the following property.
Proposition 4 (Strong circuit axiom).
If are circuits, , and , then there is a circuit such that and . ∎
If we have a total order given on , then the triple is called a (totally) ordered matroid. A nice property of totally ordered matroids is that for any weight vector that satisfies , the unique maximum weight base is the same. We call this base the optimal base of ; it is characterized by the property that the worst element of is for any . Equivalently, a base is optimal with respect to if and only if any pair of elements and with satisfies .
Here we prove the theorem that will be our main tool in proving the approximation bound for our algorithm. To our knowledge, this result on exchanges has not been previously observed in the literature. See Remark 8 for a comparison between a previously known property. We use the notation .
Theorem 5.
Let be a totally ordered matroid of rank . Let be the optimal base and be a base disjoint from . Then, there is a perfect matching between and such that and for every .
Proof.
Define and .
Claim 6.
Let be any circuit with . For any element , there exists with . For any element , there exists with .
Proof.
We only show the first claim because the second one is shown symmetrically. Take any . Suppose conversely that for any . This means that, we have for any . Set and repeatedly update it as follows while : (1) Take any , (2) apply the strong circuit axiom to , and to obtain a circuit satisfying , , and , (3) update by . Then, always satisfies and the size of decreases monotonically. We finally obtain a circuit with , a contradiction. ∎
Define . Then, showing the existence of a perfect matching in completes the proof of the theorem. To this end, we show the following claim.
Claim 7.
For any circuit with , there exists with .
Proof.
By Claim 6, we see that there is a cycle (possibly of length two) that is contained in and uses edges in and alternately. (Start at any element in and apply Claim 6 repeatedly.) As is optimal, any satisfies . Then, there must exist a pair with because otherwise the relation on the elements in would become cyclic and could not form a total order. This belongs to . ∎
We now show the existence of a perfect matching in . Suppose, to the contrary, there is no perfect matching in . By Hall’s theorem, then there exists a set such that , where . The size of the set is larger than that of the base , and hence there exists a circuit . By Claim 7, there exists included in , which satisfies and , contradicting the definition of . ∎
Remark 8.
It is a well-known fact that, for any two bases of a matroid of rank , there exists a perfect matching between and such that for every (see Brualdi [8] and also [40, Corollary 39.12a] and [16, Theorem 5.3.4]). We claim that this property does not immediately imply our Theorem 5.
In our theorem, the base is assumed to be optimal. This implies the condition for all pairs with but not for those with . To see this, consider the graphic matroid of with ground set shown in Figure 1. Suppose that the total order is defined as . Then, is the optimal base with respect to and its complement is also a base. Here, we have for and while .
Therefore, the existence of a perfect matching of exchangeability edges combined with the optimality of does not simply imply Theorem 5.
3 Matroid kernel algorithm with interval orders
In this section, we show Theorem 1, which states that max-kernel-po is approximable with a factor if the partial orders are interval orders, i.e., -free posets.
Like the previous algorithms by Yokoi [42] and by the present authors [12] (conference version of this paper), our algorithm is described as an application of the Gale–Shapley algorithm to a carefully constructed modified instance. In this modified instance, each element is replicated into three parallel elements, and special total orders are defined on the extended ground set. The origin of the idea comes from Király’s -approximation algorithm [30] for max-smti, which is a variant of the Gale–Shapley algorithm in which each man can propose to each woman at most three times and there are special rules for men’s proposal order and women’s acceptance/rejection.
Our construction of the modified instance is symmetric for the two sides, and the -approximation ratio depends only on the stability in the modified instance (not on the behaviour of the GS algorithm). This allows for a simple analysis while considering broad class preferences and constraints.
3.1 Description of the algorithm
Let and be partially ordered matroids on the same ground set and suppose that and are interval orders. Our algorithm consists of three steps.
-
1.
The algorithm first creates a new instance by replacing each element of by three parallel elements, and by defining total orders on the extended ground set as explained below.
-
2.
For the obtained totally ordered matroids , , an -kernel is computed.
-
3.
The algorithm returns a set that is the projection of to the original ground set .
The first step can be done in time as explained later, and the second step can be done in time using Fleiner’s algorithm, which we will briefly describe later.
Here, we explain the precise construction of the totally ordered matroids and . Let the extended ground set be . We define for as follows. The elements are parallel in each , that is,
where . It is easy to see that is a matroid for . To define the total order on the extended ground set , we first define a binary relation using as follows:
To define , we define from as follows, which is described in the same manner as but the roles of and are interchanged.
For each , we let be an arbitrary total order on such that holds for any . The existence of such a total order is guaranteed by the following lemma.
Lemma 9.
Let be a digraph with vertex set such that has an arc if and only if . Then is acyclic.
The proof of this lemma, which uses the fact that is an interval order, is postponed to the end of this section. We now complete the construction of the new instance.
Since the digraph is acyclic and has arcs, we can define a total order on consistent to by topological sort in time. This indeed satisfies the required condition, i.e., holds for any . This completes the construction of the totally ordered matroids and .
For completeness, here we describe how Fleiner’s algorithm works for our new instance and . The algorithm first sets to be an empty set and repeats the following three steps: set to be the optimal base of with the ground set restricted to , set to be the optimal base of with the ground set restricted to , and update with . The repetition stops if , and is returned, which is an -kernel (see [4] for this version of the description).
Here, we show that the output of the algorithm is indeed a matroid kernel (i.e., a stable common independent set) in the original instance. The approximation ratio is shown in the next section. We use and to denote fundamental circuits in and , respectively.
Lemma 10.
The output of our algorithm is an -kernel.
Proof.
Let be the output of the algorithm, where is the -kernel given by Fleiner’s algorithm. Since , it is clear from the definitions of that . Suppose for contradiction that there exists that blocks ; we claim that blocks . As blocks , for each , we have or holds for some . In the former case, immediately follows. In the latter case, implies that satisfies , and therefore by the construction of , while belongs to the fundamental circuit of for in . Thus, blocks . ∎
We now provide the postponed proof.
Proof of Lemma 9.
Since the constructions of and are symmetric, it is sufficient to show that the digraph defined from is acyclic.
Suppose, to the contrary, that has directed cycles. Let be a cycle of minimum length. By the definition of , we can observe the following properties. We say that an element is an -element (resp., -element, -element) if (resp., , ) for some .
-
•
Every -element has no leaving arcs. So, consists of only -elements and -elements.
-
•
No arc connects two -elements. So in there are no consecutive -elements.
-
•
There are no consecutive -elements in . Indeed, if (resp., ) appear in in this order consecutively, then has arcs and (resp., ), and hence and . Then, the transitivity of implies , and hence has an arc (resp, ), contradicting the minimality of .
-
•
Therefore, has an even length and -elements and -elements appear alternately.
-
•
Suppose that four distinct elements appear in in this order consecutively. Then we have , , , and .
-
–
If and , then all are distinct. Since is an interval order (i.e., -free), then the relations and imply that or . Hence there exists an arc or .
-
–
If (resp., ), then (resp., ), and hence there exists an arc (resp. ()).
The existence of an arc or contradicts the minimality of .
-
–
Then must be of length two, but it is impossible by the definition of . ∎
3.2 Proof of -approximation
We now show the approximation ratio of our algorithm. As in the previous section, we denote by and fundamental circuits in and , respectively.
Theorem 11.
The approximation ratio of the above algorithm is at most .
Proof.
Let be the output of the algorithm, where is an -kernel, and let be a largest -kernel. Suppose for contradiction that . Let be a subset of such that and for each . (The existence of such follows from axiom (ii) of matroids.) The sets and are disjoint because is an inclusion-wise maximal common independent set of and . In the following, we say that an element is of type (resp., ) if (resp., ).
Lemma 12.
Let . There is a matching of size between and such that the following hold for every , where and :
-
1.
is of type or if , and of type or if
-
2.
if is of type
-
3.
either or .
Proof.
Let be the matroid obtained from by deleting , contracting , and truncating to the size of . That is, and . In , the sets and are bases that are complements of each other.
We define a total order on as follows. The elements of are worst (in arbitrary order). On the remaining elements, i.e., on the elements of , we define the preferences based on the total order on . To do this, we assign an element to each as follows. Let if , let if and , and let if and . We then let if and only if . In the totally ordered matroid ), is an optimal base. Indeed, is the worst element of for every . It is clear for the elements in by the definition of . As for each , since holds and is an -kernel, must be the worst element of its fundamental circuit for . By Theorem 5, there is a perfect matching between and such that and for every , where and .
Let be the subset of induced by . Then , and every satisfies , which implies , which in turn implies . In case , as , we have , and hence . By the definition of , this implies the first two properties of the lemma. We can similarly obtain these two in the case .
Now we show that for every , either or . Since , is in the fundamental circuit of for in the matroid obtained by truncating to the size of . This means that it is either in the fundamental circuit also in , or is independent in , as required. ∎
We are now ready to prove the theorem by obtaining a contradiction. Let and be matchings described in Lemma 12. Since implies for , there is an element that is covered by both and . Let and . Since the first two properties of Lemma 12 hold for , the element must be of type , and for . But this means that blocks because of the third property of Lemma 12, a contradiction. ∎
Thus, we have completed the proof of the -approximability of max-kernel-po with interval orders.
We conclude this section by observing that Proposition 2, i.e., the UGC-hardness of -approximation, follows from the result of Askalidis et al. [2] on the maximum stable marriage problem with incomplete lists under social stability (max-smiss). An input of the problem is a graph , a total order on for each , and a set whose elements are called acquainted pairs. For a matching , an edge socially blocks if it blocks in the classical sense and belongs to . A matching is socially stable if there is no social blocking pair. The task of max-smiss is to find a maximum socially stable matching. Askalidis et al. [2] proved that, assuming UGC, it is NP-hard to approximate max-smiss within for any .
We can reduce max-smiss to the stable marriage problem with interval orders as follows. Given an instance of max-smiss, from the total order of each , define a partial order by . Then is an interval order. Indeed, we can easily observe that, if and hold for distinct , then or . It is also not hard to see that a socially stable matching in the original instance is a stable matching with respect to the interval orders . Thus, the maximum stable marriage with interval orders and its generalization to max-kernel-po are inapproximable within under UGC.
4 Inapproximability with General Partial Orders
In this section, we consider the case where preferences may be arbitrary partial orders. In particular, we investigate max-smpo, the maximum stable marriage problem with partial orders. Interestingly, in this case the structure of the problem changes significantly compared to the case with weak orders (i.e., max-smti), as shown in Section 4.1. In fact, beating the trivial -approximation becomes UGC-hard, as shown in Section 4.2.
4.1 Structural observations
Here we provide some structural observations on max-smpo. The first one shows that the main tool which is used to show the -approximability in previous approaches for max-smti cannot be used for partial order preferences. The previous -approximation algorithms for max-smti, such as one in [32], are designed so that, for the output stable matching and any stable matching , there is no maximal alternating path in consisting of one -edge and two -edges. In the case of arbitrary partial orders, it may happen that for any stable matching , there exists another stable matching , such that a maximal alternating path with one -edge and two -edges exists, as the next example shows.

Example 13.
Consider the instance in Figure 2. We claim that, in this example, for any stable matching , there is another stable matching , such that in there is a maximal alternating path of length 3, with two -edges and one -edge. It is easy to verify that the following matchings are stable: .
Consider vertex , which must be matched in any stable matching . If or (resp., or ), then (resp., ) too since otherwise (resp., ) blocks , so (resp., ) contains a desired alternating path (resp., ). If (resp., ), then (resp., ) contains a desired alternating path (resp., ).
The second observation is about the integrality gap. Observe that max-smpo on can be modeled with the following integer programming problem (IP) with variables . Since we allow parallel edges, to distinguish edges connecting the same vertices, say and , we use a notation where distinct edges have distinct subscripts :
(1) | |||||
(2) | |||||
In the special case of max-smti, that is, the case with weak orders, it is known that the integrality gap of the linear programming (LP) relaxation of this IP is at least [24]. This fact is sometimes considered to indicate a potential barrier to improving the approximation ratio .
We show that this integrality gap can be for the general max-smpo while it is at most even for interval orders. First, we give an example showing the former claim.
Example 14.
Consider an instance of max-smpo with vertices and edges for , for , and for . The partial orders of and are given by and . The orders of and are defined arbitrarily.
In this instance, is a solution to the LP relaxation of the above IP, but any stable matching must have size one (it must contain one of the edges). Thus, the integrality gap is .
We next show that, in contrast to this example, the integrality gap is at most for interval orders. The proof depends on the correctness of our -approximation algorithm shown in Section 3.
Theorem 15.
For a max-smpo instance consisting of and , if are interval orders, then the output of our algorithm -approximates the LP optimum of the relaxation of the above IP. In particular, the integrality gap of the IP is at most .
Proof.
Since max-smpo with interval orders is a special case of max-kernel-po with interval orders (recall the remark just after Theorem 1), we can apply our algorithm in Section 3 to the given instance. Let be the stable matching in the corresponding modified instance and be its projection to , i.e., the algorithm’s output. Let be an optimal solution to the LP. We show , which completes the proof.
For an edge , let be the set of edges such that one of ’s endpoints is or and the other is uncovered by . Then, and . We now show . We can assume and since otherwise the claim is trivial. For any , its copy in the modified instance is incident to and the other endpoint is uncovered by , and hence the stability of implies , where is the ’s copy in and is the -side total order in the modified instance. Similarly, for any , we obtain , where is the -side total order. By the construction of , these imply and that we have for every and for every . Thus, in the LP, every element in appears either in inequality (1) for or that for , and does not appear in the inequality (2) for . By adding the inequalities (1) for and and subtracting (2) for from it, we obtain as required.
Let denote the set of vertices in covered by . Observe that coincides with the set of edges connecting and , and that forms a partition of . Let , where the last inequality follows from the fact shown above.
Note that, as is stable, it is maximal, and hence every edge in has at least one endpoint in . Therefore, every has both endpoints in . Then, by summing the inequalities (1) for all vertices in , we obtain , which implies . Combined with , this implies . ∎
4.2 UGC-hardness of -approximation
In this section, we provide our hardness reduction to prove Theorem 3, i.e., we show that it is UGC-hard to beat the trivial -approximation for max-smpo with general partial orders. We use the following theorem of Bansal and Khot about independent set.
Theorem 16 (Bansal and Khot [5]).
Assuming UGC, for any it is NP-hard, given an -vertex graph that has two disjoint independent sets of size each, to find an independent set of size .
Proof of Theorem 3.
We show that a -approximation algorithm for max-smpo implies that we can find an independent set of size at least in an instance of Theorem 16, if is small enough, which is a contradiction.
Let be an instance of independent set, and let . We create an instance of max-smpo as follows. For clarity, we refer to the elements of and as “vertices” and “agents,” respectively. For each vertex , we create four agents and and create six edges for , for , and for . Then, for each we create four edges . This completes the construction of the bipartite graph . (See Figure 3 for an example.)
We describe the relations in the partial orders of the agents in Table 1.
Here, for and denotes a strict ranking over the adjacent edges to of type according to the indices of the other endpoint (the smaller index is ranked higher).
This concludes the construction part. The construction is illustrated in Figure 3

Claim 17.
If there are disjoint independent subsets with in , then there is a stable matching of size in .
Proof.
Let be two disjoint independent sets in . We create a matching in as follows. For each , we add the edges . For each , we add the edges . Finally, for , we add an edge . Clearly, has size .
We claim that is stable. First, observe that each agent is matched in . No type edge can block because such a blocking edge would imply that there is an index such that for some , which contradicts the construction of . No or type edge can block either, because (resp., ) could block only if for some , however, such indices must satisfy by the construction, and as and were independent sets, such an edge (resp., ) could not exist in the first place. Any (resp., ) type edge cannot block either, as its endpoint (resp., ) is covered by a better or indifferent edge in . ∎
Claim 18.
If there is a stable matching of size in , then there are disjoint independent sets in such that .
Proof.
Let be a stable matching of size .
We claim that for any and , if , then . Suppose for contradiction that but for some . Since does not block while prefers it to , agent must be covered by some edge that is not worse than (i.e., better than or incomparable with) . As , then must hold for some . Now, we know that has an edge . Since and do not block while prefers to and prefers to , agent must be covered by some edge that is not worse than and not worse than . Thus, we obtain that for some . Now, since and do not block while prefers to (as ) and prefers to , we get that is covered by an edge no worse than and , and hence for some . By the same argument, from the fact that and do not block , we get that for some . By iterating this argument, we get that there must be infinitely many type edges in , which is a contradiction.
By using similar arguments, we get that, for any and , we have if and only if . Recall that the size of is and observe that all agents are covered in (since otherwise or type edges block ). Let and . Then, and the fact implies that . Suppose that there is an edge with . Then, the edge blocks , a contradiction. Similarly, if there is an edge with , then blocks , a contradiction. Thus, and are disjoint independent sets with as required. ∎
Suppose for contradiction that there is a polynomial-time -approximation algorithm for max-smpo for some fixed . For any , let be an -vertex graph such that there are disjoint independent sets with size each. We have shown in Claim 17 that there is a stable matching of size in the corresponding max-smpo instance . Using a -approximation algorithm for max-smpo, we can find a stable matching in of size at least , where we have if is small enough (for example ). Then, by Claim 18, we can obtain two disjoint independent sets and in with . Then, we get that we can find an independent set of size at least , which contradicts Theorem 16. ∎
Acknowledgement
Some of our results were obtained at the Emléktábla Workshop in Gárdony, July 2022. We would like to thank Tamás Fleiner, Zsuzsanna Jankó, and Ildikó Schlotter for the fruitful discussions. We thank the anonymous reviewers of the previous versions for their helpful feedback. The work was supported by the Lendület Programme of the Hungarian Academy of Sciences – grant number LP2021-1/2021, by the Hungarian National Research, Development and Innovation Office – NKFIH, financed under the ELTE TKP2021-NKTA-62 funding scheme and grant K143858. The first author was supported by the Ministry of Culture and Innovation of Hungary from the National Research, Development and Innovation fund, financed under the KDP-2023 funding scheme (grant number C2258525). The last author was supported by JST PRESTO Grant Number JPMJPR212B and JST ERATO Grant Number JPMJER2301, and the joint project of Kyoto University and Toyota Motor Corporation,titled “Advanced Mathematical Science for Mobility Society”.
References
- [1] Elliot Anshelevich, Sanmay Das, and Yonatan Naamad. Anarchy, stability, and utopia: creating better matchings. Autonomous Agents and Multi-Agent Systems, 26(1):120–140, 2013.
- [2] Georgios Askalidis, Nicole Immorlica, Augustine Kwanashie, David F Manlove, and Emmanouil Pountourakis. Socially stable matchings in the hospitals/residents problem. In Algorithms and Data Structures: 13th International Symposium, WADS 2013, London, ON, Canada, August 12-14, 2013. Proceedings 13, pages 85–96. Springer, 2013.
- [3] Haris Aziz, Péter Biró, Serge Gaspers, Ronald de Haan, Nicholas Mattei, and Baharak Rastegari. Stable matching with uncertain linear preferences. Algorithmica, 82:1410–1433, 2020.
- [4] Haris Aziz, Péter Biró, and Makoto Yokoo. Matching market design with constraints. In Proc. of 36th AAAI Conference on Artificial Intelligence (AAAI 2022), volume 36 (11), pages 12308–12316, 2022.
- [5] Nikhil Bansal and Subhash Khot. Optimal long code test with one free bit. In Proceedings of 50th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2009), pages 453–462. IEEE, 2009.
- [6] Péter Biró, Tamás Fleiner, Robert W Irving, and David F Manlove. The college admissions problem with lower and common quotas. Theoretical Computer Science, 411(34):3136–3153, 2010.
- [7] Robert Bredereck, Jiehua Chen, Dušan Knop, Junjie Luo, and Rolf Niedermeier. Adapting stable matchings to evolving preferences. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 1830–1837, 2020.
- [8] Richard A Brualdi. Comments on bases in dependence structures. Bulletin of the Australian Mathematical Society, 1(2):161–167, 1969.
- [9] Jiehua Chen, Rolf Niedermeier, and Piotr Skowron. Stable marriage with multi-modal preferences. In Proceedings of the 2018 ACM Conference on Economics and Computation, pages 269–286, 2018.
- [10] Jiehua Chen, Piotr Skowron, and Manuel Sorge. Matchings under preferences: Strength of stability and tradeoffs. ACM Transactions on Economics and Computation, 9(4):1–55, 2021.
- [11] Frances Cooper and David Manlove. A 3/2-approximation algorithm for the student-project allocation problem. In Proc. 17th International Symposium on Experimental Algorithms (SEA 2018). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2018.
- [12] Gergely Csáji, Tamás Király, and Yu Yokoi. Approximation algorithms for matroidal and cardinal generalizations of stable matching. In Symposium on Simplicity in Algorithms (SOSA), pages 103–113. SIAM, 2023.
- [13] Szymon Dudycz, Pasin Manurangsi, and Jan Marcinkowski. Tight inapproximability of minimum maximal matching on bipartite graphs and related problems. In Approximation and Online Algorithms: 19th International Workshop, WAOA 2021, Lisbon, Portugal, September 6–10, 2021, Revised Selected Papers, pages 48–64. Springer, 2022.
- [14] Tamás Fleiner. A matroid generalization of the stable matching polytope. In Proc. 8th International Conference on Integer Programming and Combinatorial Optimization, pages 105–114. Springer, 2001.
- [15] Tamás Fleiner. A fixed-point approach to stable matchings and some applications. Mathematics of Operations research, 28(1):103–126, 2003.
- [16] András Frank. Connections in Combinatorial Optimization, volume 38. OUP Oxford, 2011.
- [17] D. Gale and M. Sotomayor. Some remarks on the stable matching problem. Discrete Applied Mathematics, 11(3):223–232, 1985.
- [18] David Gale and Lloyd S Shapley. College admissions and the stability of marriage. American Mathematical Monthly, 69(1):9–15, 1962.
- [19] Magnús Halldórsson, Kazuo Iwama, Shuichi Miyazaki, and Yasufumi Morita. Inapproximability results on stable marriage problems. In Proc. 5th Latin-American Theoretical Informatics Symposium (LATIN 2002), pages 554–568. Springer, 2002.
- [20] Magnús M Halldórsson, Kazuo Iwama, Shuichi Miyazaki, and Hiroki Yanagisawa. Improved approximation results for the stable marriage problem. ACM Transactions on Algorithms (TALG), 3(3):No. 30, 2007.
- [21] Chien-Chung Huang. Classified stable matching. In Proc. twenty-first annual ACM-SIAM symposium on Discrete Algorithms (SODA 2010), pages 1235–1253. SIAM, 2010.
- [22] Chien-Chung Huang, Kazuo Iwama, Shuichi Miyazaki, and Hiroki Yanagisawa. A tight approximation bound for the stable marriage problem with restricted ties. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2015). Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 2015.
- [23] Robert W Irving, David F Manlove, and Sandy Scott. Strong stability in the hospitals/residents problem. In Annual Symposium on Theoretical Aspects of Computer Science, pages 439–450. Springer, 2003.
- [24] K. Iwama, S. Miyazaki, and H. Yanagizawa. A 25/17-approximation algorithm for the stable marriage problem with one-sided ties. Algorithmica, 68(3):758–775, 2014.
- [25] Kazuo Iwama, David Manlove, Shuichi Miyazaki, and Yasufumi Morita. Stable marriage with incomplete lists and ties. In Proc. 26th International Colloquium on Automata, Languages, and Programming (ICALP 1999), pages 443–452. Springer, 1999.
- [26] Kazuo Iwama, Shuichi Miyazaki, and Naoya Yamauchi. A 1.875-approximation algorithm for the stable marriage problem. In Proc. Eighteenth annual ACM-SIAM symposium on Discrete algorithms (SODA 2007), pages 288–297. SIAM, Philadelphia, 2007.
- [27] Kazuo Iwama, Shuichi Miyazaki, and Naoya Yamauchi. A ()-approximation algorithm for the stable marriage problem. Algorithmica, 51(3):342–356, 2008.
- [28] Kazuo Iwama, Shuichi Miyazaki, and Hiroki Yanagisawa. A 25/17-approximation algorithm for the stable marriage problem with one-sided ties. Algorithmica, 68(3):758–775, 2014.
- [29] Subhash Khot. On the power of unique 2-prover 1-round games. In Proceedings of the thiry-fourth annual ACM symposium on Theory of computing, pages 767–775, 2002.
- [30] Zoltán Király. Better and simpler approximation algorithms for the stable marriage problem. Algorithmica, 60(1):3–20, 2011.
- [31] Zoltán Király. Linear time local approximation algorithm for maximum stable marriage. In Proc. Second International Workshop on Matching Under Preferences (MATCH-UP 2012), page 99, 2012.
- [32] Zoltán Király. Linear time local approximation algorithm for maximum stable marriage. Algorithms, 6(3):471–484, 2013.
- [33] Eric McDermid. A 3/2-approximation algorithm for general stable marriage. In Proc. 36th International Colloquium on Automata, Languages, and Programming (ICALP 2009), pages 689–700. Springer, 2009.
- [34] Shuichi Miyazaki and Kazuya Okamoto. Jointly stable matchings. Journal of Combinatorial Optimization, 38(2):646–665, 2019.
- [35] Katarzyna Paluch. Faster and simpler approximation of stable matchings. In Proc. 9th International Workshop on Approximation and Online Algorithms (WAOA 2011), pages 176–187, 2011.
- [36] Katarzyna Paluch. Faster and simpler approximation of stable matchings. Algorithms, 7(2):189–202, 2014.
- [37] Maria Silvia Pini, Francesca Rossi, K Brent Venable, and Toby Walsh. Stability, optimality and manipulation in matching problems with weighted preferences. Algorithms, 6(4):782–804, 2013.
- [38] Baharak Rastegari, Anne Condon, Nicole Immorlica, Robert Irving, and Kevin Leyton-Brown. Reasoning about optimal stable matchings under partial information. In Proceedings of the fifteenth ACM conference on Economics and computation, pages 431–448, 2014.
- [39] A. E. Roth. The evolution of the labor market for medical interns and residents: A case study in game theory. The Journal of Political Economy, 92(6):991–1016, 1984.
- [40] Alexander Schrijver. Combinatorial Optimization: Polyhedra and Efficiency, volume 24. Springer, 2003.
- [41] Hiroki Yanagisawa. Approximation algorithms for stable marriage problems. PhD thesis, Kyoto University, Graduate School of Informatics, 2007.
- [42] Yu Yokoi. An approximation algorithm for maximum stable matching with ties and constraints. In Proc. 32nd International Symposium on Algorithms and Computation (ISAAC 2021). Schloss Dagstuhl-Leibniz-Zentrum für Informatik, 2021.