On the Existence of Three-Dimensional Stable Matchings with Cyclic Preferences
Chi-Kit Lam, C. Gregory Plaxton

TL;DR
This paper investigates the existence of weakly stable matchings in three-dimensional cyclic preference models, proving non-existence in some cases and NP-completeness of the decision problem, with implications for higher dimensions.
Contribution
It demonstrates that weakly stable three-dimensional matchings may not exist and proves the NP-completeness of deciding their existence, challenging previous conjectures.
Findings
Weakly stable three-dimensional matchings do not always exist.
Deciding the existence of such matchings is NP-complete.
Results extend to k-dimensional stable matching with cyclic preferences for k ≥ 3.
Abstract
We study the three-dimensional stable matching problem with cyclic preferences. This model involves three types of agents, with an equal number of agents of each type. The types form a cyclic order such that each agent has a complete preference list over the agents of the next type. We consider the open problem of the existence of three-dimensional matchings in which no triple of agents prefer each other to their partners. Such matchings are said to be weakly stable. We show that contrary to published conjectures, weakly stable three-dimensional matchings need not exist. Furthermore, we show that it is NP-complete to determine whether a weakly stable three-dimensional matchings exists. We achieve this by reducing from the variant of the problem where preference lists are allowed to be incomplete. Our results can be generalized to the -dimensional stable matching problem with cyclic…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
On the Existence of Three-Dimensional Stable Matchings
with Cyclic Preferences††thanks: Department of Computer Science, University of Texas at Austin, 2317 Speedway, Stop D9500, Austin, TX 78712–1757. Email: {geocklam, plaxton}@cs.utexas.edu.
Chi-Kit Lam
C. Gregory Plaxton
Abstract
We study the three-dimensional stable matching problem with cyclic preferences. This model involves three types of agents, with an equal number of agents of each type. The types form a cyclic order such that each agent has a complete preference list over the agents of the next type. We consider the open problem of the existence of three-dimensional matchings in which no triple of agents prefer each other to their partners. Such matchings are said to be weakly stable. We show that contrary to published conjectures, weakly stable three-dimensional matchings need not exist. Furthermore, we show that it is NP-complete to determine whether a weakly stable three-dimensional matchings exists. We achieve this by reducing from the variant of the problem where preference lists are allowed to be incomplete. Our results can be generalized to the -dimensional stable matching problem with cyclic preferences for .
1 Introduction
The study of stable matchings was started by Gale and Shapley [9], who investigated a market with two types of agents. The two-dimensional stable matching problem involves an equal number of men and women, each of whom has a complete preference list over the agents of the opposite sex. The goal is to find a matching between the men and the women such that no man and woman prefer each other to their partners. Matchings satisfying this property are said to be stable. Gale and Shapley showed that a solution for the two-dimensional stable matching problem always exists and can be computed in polynomial time. Their result also applies to the variant where preference lists may be incomplete due to unacceptable partners, and the number of men may be different from the number of women.
The problem of generalizing stable matchings to markets with three types of agents was posed by Knuth [13]. In pursuit of an existence theorem and an elegant theory analogous to those of the Gale-Shapley model, the three-dimensional stable matching problem has been studied with respect to a number of preference structures. When each agent has preferences over pairs of agents from the other two types, stable matchings need not exist [1, 15]. Furthermore, it is NP-complete to determine whether a stable matching exists [15, 17], even if the preferences are consistent with product orders [11]. When two types of agents care primarily about each other and secondarily about the remaining type, a stable matching always exists and can be obtained by computing two-dimensional stable matchings using the Gale-Shapley algorithm in a hierarchical manner [5]. When the types form a cyclic order such that each type of agent cares primarily about the next type and secondarily about the other type, stable matchings need not exist [3].
A prominent problem mentioned in several of the aforementioned papers [3, 11, 15] is the three-dimensional stable matching problem for the case where the types form a cyclic order such that each type of agent cares only about the next type and not the other type. Following the terminology of the survey of Manlove [14], we call this the three-dimensional stable matching problem with cyclic preferences (), and refer to the three types of agents as men, women, and dogs. A number of stability notions [11] can be considered in . In this paper, we focus on weak stability, which is the most permissive one and has received the most attention in the literature. It is known that determining whether a instance has a strongly stable matching is NP-complete [2]. For the variant where ties are allowed, determining the existence of a super-stable matching is also NP-complete [12]. However, it remained an open problem for weakly stable matchings in .
In , there are an equal number of men, women, and dogs. Each man has a complete preference list over the women, each woman has a complete preference list over the dogs, and each dog has a complete preference list over the men. A family is a triple consisting of a man, a woman, and a dog. A matching is a set of agent-disjoint families. A family is strongly blocking if every agent in the family prefers each other to their partners in the matching. A matching is weakly stable if it admits no strongly blocking family. This problem is related to applications such as kidney exchange [2] and three-sided network services [4].
The formulation of first appeared in the paper of Ng and Hirschberg [15], where it is attributed to Knuth. Using a greedy approach, Boros et al. [3] showed that every instance with at most agents per type has a weakly stable matching. Their result also applies to the -dimensional generalization of the problem, which we call . For , they showed that every instance with at most agents per type has a weakly stable matching. Using a case analysis, Eriksson et al. [6] showed that every instance with at most agents per type has a weakly stable matching. Despite unbalancedness and the lack of stable effective functions, Eriksson et al. conjectured that every instance has a weakly stable matching. More precisely, they conjectured that for an extension of with the strongest link rule, every instance with at least agents per type has at least two weakly stable matchings. Using an efficient greedy procedure, Hofbauer [10] showed that for , every instance with at most agents per type has a weakly stable matching. Using a satisfiability problem formulation and an extensive computer-assisted search, Pashkovich and Poirrier [16] showed that every instance with exactly agents per type has at least two weakly stable matchings. Escamocher and O’Sullivan [7] showed that the number of weakly stable matchings is exponential in the size of the instance if agents of the same type are restricted to have the same preferences. They also conjectured that for unrestricted instances, there are exponentially many weakly stable matchings.
Hardness results are known for some related problems. For the variant of where preference lists are allowed to be incomplete, which we refer to as , Biró and McDermid [2] showed that determining whether a weakly stable matching exists is NP-complete. Farczadi et al. [8] showed that determining whether a given perfect two-dimensional matching can be extended to a three-dimensional weakly stable matching in is also NP-complete. However, the existence of weakly stable matchings in remained unresolved. Manlove [14] described it as an “intriguing open problem”, and Woeginger [18] classified it as “hard and outstanding”.
Our Techniques and Contributions
In this paper, we show that there exists a instance that has no weakly stable matching. This disproves the conjectures of Eriksson et al. [6] and Escamocher and O’Sullivan [7]. Furthermore, we show that determining whether a instance has a weakly stable matching is NP-complete. We achieve this by reducing from the problem of determining whether a instance has a weakly stable matching. Our results generalize to for .
Our main technique involves converting each agent in to a gadget consisting of one non-dummy agent and many dummy agents. The dummy agents in our gadget give rise to chains of admirers. (See Remark 1 in Section 4.3.) By applying the weak stability condition to the chains of admirers, we are able to obtain some control over the partner of the non-dummy agent.
Organization of This Paper
In Section 2, we present the formal definitions of and . In Section 3, we show that the NP-completeness result of Biró and McDermid [2] can be extended to . In Section 4, we show that is NP-complete by a reduction from . In Section 5, we conclude by mentioning some potential future work.
2 Preliminaries
In this paper, we use to denote the list of all tuples satisfying predicate , where the tuples are sorted in increasing lexicographical order. Given two lists and , we denote their concatenation as . For any , we use to denote addition modulo .
2.1 The Models
Let . The -dimensional stable matching problem with incomplete lists and cyclic preferences () involves a finite set of agents, where each agent is associated with an identifier and a type . (When , we can think of the sets , , and as the sets of men, women, and dogs, respectively.) Each agent has a strict preference list over a subset of agents of type . In other words, every agent in appears in at most once, and every element in belongs to . For every , we say that prefers to if appears in and either agent appears in after or agent does not appear in . We denote this instance as .
Given a instance , a family is a tuple
[TABLE]
such that and appears in for every . A matching is a set of agent-disjoint families. In other words, for every and , if , then . Given a matching and an agent , if for some and , we say that is matched to , and we write . Otherwise, we say that is unmatched, and we write .
Given a matching , we say that a family is strongly blocking if prefers to for every . A matching is weakly stable if it does not admit any strongly blocking family.
The -dimensional stable matching problem with cyclic preferences () is defined as the special case of in which every agent in appears exactly once in for every agent .
Notice that when incomplete lists are allowed, the case of an unequal number of agents of each type can be handled within our model by padding with dummy agents whose preference lists are empty. Hence, the results of Biró and McDermid [2] apply to our model. When preference lists are complete, we follow the literature and focus on the case where each type has an equal number of agents. Our result shows that even when restricted to the case of an equal number of agents of each type, a given instance need not admit a weakly stable matching, and determining the existence of a weakly stable matching is NP-complete.
2.2 Polynomial-Time Verification
Given a matching of a instance with agents per type, it is straightforward to determine whether is weakly stable in time by checking that none of the families is strongly blocking. The following theorem shows that when is large, there is a more efficient method to determine whether a given matching is weakly stable.
Theorem 1**.**
There exists a -time algorithm to determine whether a given matching is weakly stable for a instance, where is the number of agents per type.
Proof.
Given , consider the directed graph with vertex set such that there exists an edge from to if and only if prefers to . Then cycles in of length correspond to strongly blocking families of . Notice that if a cycle in contains an agent in , then it also contains an agent in . Hence no cycle in has length less than . Thus determining whether is weakly stable is equivalent to determining whether the directed graph has a cycle of length at most , which can be done in time. ∎
3 NP-Completeness of -DSMI-CYC
In this section, we show that for every , it is NP-complete to determine whether a given instance has a weakly stable matching. We achieve this by reducing from the problem of determining whether a instance has a weakly stable matching.
3.1 The Reduction
Let . Consider an input instance where . Our reduction constructs a instance as follows.
- •
Let and . For every agent , we call the non-dummy agent corresponding to . We call the agents
[TABLE]
dummy agents.
- •
For every agent , we construct the preference list as follows.
- –
If and , we list in the agents
[TABLE]
in the order in which the corresponding agent appears in .
- –
If and , we list in the agents
[TABLE]
in the order in which the corresponding agent appears in .
- –
If and , we define as the empty list.
- –
If and is in , we define as .
- –
If and is in , we define as .
- –
If and is not in , we define as the empty list.
Figure 1 shows an example of the reduction when and .
3.2 Correctness of the Reduction
Lemma 1**.**
Let . Consider the reduction given in Section 3.1. The output instance has a weakly stable matching if and only if the input instance has a weakly stable matching.
Proof.
Since every family in has the form
[TABLE]
where is a family in , there is a-one-to-one correspondence between families in and families in . This induces a one-to-one correspondence between matchings in and matchings in . It is straightforward to see that a family in is a strongly blocking family of a matching in if and only if the corresponding family in is a strong blocking family of the corresponding matching in . Hence has a weakly stable matching if and only if has a weakly stable matching. ∎
Theorem 2**.**
Let . Then there exists a instance that has no weakly stable matching.
Proof.
Biró and McDermid [2, Lemma 1] show that there exists a instance that has no weakly stable matching. So we may assume that . Then Lemma 1 implies that given as an input, the reduction in Section 3.1 produces a instance that has no weakly stable matching. ∎
Theorem 3**.**
Let . Then it is NP-complete to determine whether a instance has a weakly stable matching.
Proof.
Biró and McDermid [2, Theorem 1] show that it is NP-complete to determine whether a instance has a weakly stable matching. So we may assume that . Then Lemma 1 implies the correctness of the reduction from to presented in Section 3.1. Moreover, the reduction can be implemented in time, where is the number of agents of each type. Theorem 1 implies that the problem of determining whether a instance has a weakly stable matching is in NP. Thus the problem of determining whether a instance has a weakly stable matching is NP-complete. ∎
4 NP-Completeness of -DSM-CYC
In this section, we show that for every , it is NP-complete to determine whether a instance has a weakly stable matching. We achieve this by reducing from the problem of determining whether a instance has a weakly stable matching. Since the dimensions of both the input instance and the output instance of the reduction are equal to , throughout this section, we write instead of for better readability.
4.1 The Reduction
Let . Consider an input instance where . We may assume that , so agents in can be compared lexicographically. Our reduction constructs a instance as follows.
- •
Let . Let and . For every agent , we call the gadget corresponding to .
- •
For every agent such that and , we call the non-dummy agent corresponding to . Let be the list obtained by replacing every in by . We define the preference list as followed by the remaining agents in in an arbitrary order.
- •
For every agent such that , we call a boundary dummy agent, and we define the preference list as
[TABLE]
followed by the remaining agents in in an arbitrary order.
- •
For every agent such that and , we call a non-boundary dummy agent, and we define the preference list as followed by the remaining agents in in an arbitrary order.
As shown in Figure LABEL:sub@fig:gadget-structure, the gadget corresponding to can be visualized as a grid of agents with rows and columns. The non-boundary dummy agents in the same row have essentially the same preferences, which begin with the agents in the next row from left to right. The preferences of the boundary dummy agents are similar to those of the non-boundary dummy agents, except that they incorporate the other boundary dummy agents in a special manner. Meanwhile, the preferences of the non-dummy agent reflect the preferences of agent by starting with .
4.2 Correctness of the Reduction
Lemmas 2 and 3 below show that the reduction in Section 4.1 is a correct reduction from to . The associated proofs are presented in Sections 4.4 and 4.5.
Lemma 2**.**
Let . Consider the reduction given in Section 4.1. If the input instance has no weakly stable matching, then the output instance has no weakly stable matching.
Lemma 3**.**
Let . Consider the reduction in Section 4.1. If the input instance has a weakly stable matching, then the output instance has a weakly stable matching.
Theorem 4**.**
Let . Then there exists a instance that has no weakly stable matching.
Proof.
By Theorem 2, there exists a instance that has no weakly stable matching. Then Lemma 2 implies that given as an input, the reduction in Section 4.1 produces a instance that has no weakly stable matching. ∎
Theorem 5**.**
Let . Then it is NP-complete to determine whether a instance has a weakly stable matching.
Proof.
By Theorem 3, it is NP-complete to determine whether a instance has a weakly stable matching. Lemmas 2 and 3 imply the correctness of the reduction from to presented in Section 4.1. Moreover, the reduction can be implemented in time, where is the number of agents of each type. Theorem 1 implies that the problem of determining whether a instance has a weakly stable matching is in NP. Thus the problem of determining whether a instance has a weakly stable matching is NP-complete. ∎
4.3 Properties of the Gadget
In this subsection, we study the properties of the gadget in the scenario that the non-dummy agent is not matched to a non-dummy agent corresponding to an acceptable partner. In Lemma 4, we show that in this scenario, many agents in the gadget are matched to agents in the same gadget. In Lemma 5, we apply Lemma 4 inductively to show that in the same scenario, every agent in the same family as the non-dummy agent belongs to the same gadget.
Lemma 4**.**
Let be a weakly stable matching in . Let and such that is not in . Let and such that . Then .
Proof.
Let for every . For the sake of contradiction, suppose is not in .
For every , since the length of is greater than the length of , there exists in such that is not in . Let . Then is in and is not in . Since is a weakly stable matching of , the family is not strongly blocking. So there exists such that does not prefer to . Since is in , there exists such that . We consider two cases.
Case 1: and . Then is a non-dummy agent and is a prefix of the preference list . Since is not in and is in , agent prefers to , a contradiction.
Case 2: or . We consider two subcases.
Case 2.1: . Since , we have . Hence is a boundary dummy agent and is a prefix of the preference list . Since is not in and is in , agent prefers to , a contradiction.
Case 2.2: . Then is a non-boundary dummy agent and is a prefix of the preference list . Since is not in and is in , agent prefers to , a contradiction. ∎
Remark 1*.*
In the proof of Lemma 4, we can think of as a chain of admirers in the gadget corresponding to , where prefers to . By applying the weak stability condition to this chain of admirers, we show that is matched to a partner no worse than .
Lemma 5**.**
Let be a weakly stable matching in . Let and such that . Let such that and . Suppose that is not in . Then, for every , we have and .
Proof.
We prove the claim by induction on . When , we have and .
Suppose and , where . Since is not in , agent is not in . Let . Then and . So Lemma 4 implies that . Hence and , since . Thus and . ∎
4.4 Proof of Lemma 2
The goal of this subsection is to prove Lemma 2. It suffices to show that every weakly stable matching in induces a weakly stable matching in .
Recall that each agent in has a corresponding non-dummy agent in , and that a family in is a tuple of agents in such that each agent appears in the preference list of another. Hence we include in a family of agents in whenever the corresponding family of non-dummy agents are matched in . More formally, we define the matching in induced by in as the set of families in satisfying . Notice that every induced by a matching in is a valid matching in since agent-disjoint families in induce agent-disjoint families in .
Lemma 6 below shows that if is weakly stable and matches a non-dummy agent to a non-dummy agent corresponding to an acceptable partner, then matches the corresponding agents. Our proof relies on Lemma 5 and the weak stability of . Notice that if is not weakly stable, it may be the case that matches a family consisting of non-dummy agents and one dummy agent. In such a case, the corresponding agents are unmatched in the induced matching .
Lemma 6**.**
Let be the matching in induced by a weakly stable matching in . Let and such that is in . Then .
Proof.
For the sake of contradiction, suppose . Since is in , we have for some and such that and is in . Let
[TABLE]
Then . We consider two cases.
Case 1: . Then for every , we have and is in . So and is in for every . Hence is a valid family in . Since is induced by and , we have . Thus , which contradicts .
Case 2: . Then there exists a smallest such that . Then . Let . Since , we have and is in . So and is in . Hence . Since and , agent is not in . So Lemma 5 implies . Hence , which contradicts . ∎
Proof of Lemma 2.
For the sake of contradiction, suppose has no weakly stable matching and has a weakly stable matching . Let be the matching in induced by .
Since is not a weakly stable matching of , there exists a strongly blocking family . Since is a weakly stable matching of , the family
[TABLE]
is not strongly blocking. So there exists such that does not prefer to . Since is a family in , agent is in . So is in . Hence appears in no later than , since is a prefix of the preference list .
Since is in , Lemma 6 implies . Since appears in no later than , agent appears in no later than . Hence does not prefer to . So is not a strongly blocking family of , a contradiction. ∎
4.5 Proof of Lemma 3
The goal of this subsection is to prove Lemma 3. It suffices to show that every weakly stable matching in induces a weakly stable matching in . We construct the matching induced by as follows.
- •
For every , we include in the family
[TABLE]
- •
For every agent and such that , we include in the family , where
[TABLE]
- •
For every , let be the list
[TABLE]
We include in the family for every , where denotes the th element of .
Figures LABEL:sub@fig:gadget-singleton and LABEL:sub@fig:gadget-family show the gadget under the matching .
It is straightforward to check that the families in induced by a matching are agent-disjoint. Hence is a valid matching in .
Lemma 7**.**
Let be the matching in induced by a matching in . Let and such that . Let and such that non-dummy agent prefers to . Then is in and prefers to .
Proof.
Notice that is a prefix of the preference list of non-dummy agent . We consider two cases.
Case 1: . Then . Since prefers to , agent appears in before . Hence prefers to .
Case 2: . Then . Since prefers to , agent is in . Then is in , and hence prefers to . ∎
Lemma 8**.**
Let be the matching in induced by a weakly stable matching in . Let and such that
[TABLE]
is a strongly blocking family of . Then for every .
Proof.
Let such that
[TABLE]
For the sake of contradiction, suppose . We consider two cases.
Case 1: and . Let . Then . We consider two subcases.
Case 1.1: . Then for every , since prefers to , Lemma 7 implies that prefers to . Hence is a strongly blocking family of , which contradicts the stability of .
Case 1.2: . Then there exists such that and . Since , we have and . Since prefers to , Lemma 7 implies that is in . Hence and , which contradicts .
Case 2: Either or . Thus is a dummy agent. We consider two subcases.
Case 2.1: . Since
[TABLE]
and the non-boundary dummy agent prefers to , we have , which contradicts the definition of .
Case 2.2: . Then since . So , and hence . Since
[TABLE]
and the boundary dummy agent prefers to , we have , which contradicts the definition of . ∎
Proof of Lemma 3.
Suppose has a weakly stable matching . Let be the matching in induced by . It suffices to show that does not admit a strongly blocking family.
For the sake of contradiction, suppose admits a strongly blocking family
[TABLE]
Lemma 8 implies that for every , we have . Since and , we deduce that and for every . Hence for every , there exists such that .
Let such that
[TABLE]
Since and the boundary dummy agent prefers boundary dummy agent to boundary dummy agent , we deduce that is lexicographically smaller than . Hence , which contradicts the definition of . ∎
5 Concluding Remarks
We have shown that a instance need not admit a weakly stable matching, and that it is NP-complete to determine whether a given instance admits a weakly stable matching. It seems that for the three-dimensional stable matching problem, none of the preference structures studied in the literature admits a non-trivial generalization of the existence theorem of Gale and Shapley. (The existence result in Danilov’s model [5] follows from applying the Gale-Shapley algorithm in a straightforward manner.) It would be interesting to consider solution concepts such as popular matchings instead of stable matchings in the multi-dimensional matching context.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Alkan [1988] A. Alkan. Nonexistence of stable threesome matchings. Mathematical Social Sciences , 16(2):207–209, 1988.
- 2Biró and Mc Dermid [2010] P. Biró and E. Mc Dermid. Three-sided stable matchings with cyclic preferences. Algorithmica , 58(1):5–18, 2010.
- 3Boros et al. [2004] E. Boros, V. Gurvich, S. Jaslar, and D. Krasner. Stable matchings in three-sided systems with cyclic preferences. Discrete Mathematics , 289(1):1–10, 2004.
- 4Cui and Jia [2013] L. Cui and W. Jia. Cyclic stable matching for three-sided networking services. Computer Networks , 57(1):351–363, 2013.
- 5Danilov [2003] V. I. Danilov. Existence of stable matchings in some three-sided systems. Mathematical Social Sciences , 46(2):145–148, 2003.
- 6Eriksson et al. [2006] K. Eriksson, J. Sjöstrand, and P. Strimling. Three-dimensional stable matching with cyclic preferences. Mathematical Social Sciences , 52(1):77–87, 2006.
- 7Escamocher and O’Sullivan [2018] G. Escamocher and B. O’Sullivan. Three-dimensional matching instances are rich in stable matchings. In Proceedings of the 15th International Conference on the Integration of Constraint Programming, Artificial Intelligence, and Operations Research , pages 182–197, 2018.
- 8Farczadi et al. [2016] L. Farczadi, K. Georgiou, and J. Könemann. Stable marriage with general preferences. Theory of Computing Systems , 59(4):683–699, 2016.
