Introduction
The daycare matching problem is a pressing issue faced by many cities worldwide. In many regions, daycare slots are in high demand, with long waiting lists resulting from the scarcity of qualified teachers and limited physical space [25 , 47 ] . This creates substantial challenges for families seeking to balance work and caregiving responsibilities. Decentralized approaches to assigning children to daycare centers may lead to inefficient outcomes and fail to make effective use of available resources. To address this issue, we adopt a centralized market-design approach to daycare matching. By eliciting families’ preferences and daycare centers’ priorities, this approach aims to identify desirable matchings that balance efficiency and fairness.
The daycare matching problem is not only an important practical matching market [26 , 19 , 46 ] , but also provides a theoretically rich model that combines and extends two established matching problems: matching with couples and matching with initial enrollments. First, each family may have multiple children and submit joint preferences over assignments of its children to daycare centers. This sibling feature generalizes the Hospitals/Residents problem with Couples [41 ] , in which couples of doctors express joint preferences over pairs of hospital positions. Second, some children may already be enrolled in daycare centers while seeking transfers to other centers. Such initial enrollments have been studied extensively in school choice [20 , 49 , 50 ] .
Combining these two features creates challenges that do not arise when either is considered in isolation. Stability is a well-established solution concept in two-sided matching markets [18 , 40 ] and plays a central role in many real-world applications, including the National Resident Matching Program in the US [38 ] and school choice programs in Boston and New York [2 ] . In matching with couples, stability is typically defined through the absence of blocking individuals and blocking coalitions involving doctors, couples, and hospitals [27 , 28 , 29 , 36 ] . Even for couples of two doctors, defining a blocking coalition requires careful treatment of different cases depending on whether the couple applies to the same or different hospitals, the number of available seats, and the hospitals’ priorities [34 , 10 , 32 ] . For example, five specific cases are carefully analyzed in [9 ] .
A case-by-case definition becomes increasingly cumbersome when a family may contain more than two children, because a deviation may simultaneously involve several daycare centers, vacancies, priority comparisons, and changes to the assignments of multiple siblings. Initial enrollments introduce an additional complication: when some siblings move to new daycare centers, seats released from their initial or current assignments may become available to other siblings. Thus, simply extending the usual definitions for couples does not provide a convenient general formulation. This motivates our first research question: How can stability be defined concisely and precisely in daycare matching with siblings and initial enrollments?
Informally speaking, a feasible matching is stable if no family (i) receives an unacceptable assignment (blocking individual) or (ii) can obtain a strictly preferred assignment that the relevant daycare centers are willing to accept (blocking coalition). A family’s improvement may involve three forms of reallocation. Such reallocations can occur in two primary ways: by occupying unfilled slots or by displacing children with lower priority. When siblings are involved, a third form of reallocation becomes possible: a child may occupy a seat released by one of its own siblings as part of the same deviation. We refer to the latter as seat withdrawal . By formulating blocking coalitions through daycare choice functions, we provide a unified definition that captures all three forms without enumerating the many possible configurations separately.
Stable matchings, however, need not exist once joint preferences of couples or siblings are introduced [38 ] . A natural approach is therefore to decompose stability into weaker requirements. Following the school-choice literature, we consider individual rationality, non-wastefulness, and fairness [17 , 30 , 5 , 45 ] . Individual rationality protects families from unacceptable assignments. Non-wastefulness rules out improvements that can be achieved without changing the assignments of other families. In our † The SFMR guarantee for GI refers to its dominance-based extension in Algorithm 3.
FN is parameterized by a fairness property A. Each fairness entry in the FN column refers to the corresponding choice of A, assuming that the algorithm is initialized with a feasible and individually rational matching satisfying A. The SFMR entry refers to the instantiation A = SFMR and does not imply that ordinary fairness (F) implies SFMR.
setting, such improvements include not only the use of seats that are currently vacant but also seats released through seat withdrawal. Fairness, in contrast, rules out profitable deviations that displace other families.
In the presence of siblings, these requirements may be incompatible, and initial enrollments further restrict which displaced families can be moved without violating their existing entitlements. Existing studies have considered couples or siblings and initial enrollments separately, particularly in hospital matching and school choice [35 , 20 , 49 ] . Some studies incorporate both features under restrictive preference domains [16 , 13 ] , but much less is known under general joint preferences. This motivates our second research question: When fairness and non-wastefulness cannot be simultaneously achieved, how can one property be relaxed while retaining the other, and which relaxations restore existence while remaining economically meaningful?
Existence and axiomatic compatibility, however, do not by themselves resolve the computational questions raised by these solution concepts. Even when a desirable matching exists, it may be difficult to verify the relevant fairness property, decide whether such a matching exists in a given instance, or compute one efficiently. This motivates our third research question: What is the computational complexity of verifying the proposed fairness notions, deciding the existence of matchings satisfying them together with non-wastefulness, and computing such matchings?
The central theme of this paper is the tension between fairness and non-wastefulness created by the interaction of siblings and initial enrollments. Rather than seeking a single universally desirable solution concept, we study this trade-off from two complementary directions: preserving non-wastefulness while weakening fairness, and preserving fairness while weakening non-wastefulness. We identify which relaxations restore compatibility, develop algorithms that achieve them, and characterize the computational limits of the resulting solution concepts.
We summarize our contributions as follows.
First, we provide a unified treatment of stability, fairness, and non-wastefulness for daycare matching with siblings and initial enrollments. Our formulation identifies three distinct ways in which a family may improve its assignment: claiming vacant seats, replacing lower-priority children, and using seats released through sibling withdrawal. By expressing these possibilities through daycare choice functions, our framework avoids the case-by-case definitions commonly required in matching with couples and provides a common basis for comparing the solution concepts studied throughout the paper.
Second, we preserve non-wastefulness while weakening fairness and study two complementary algorithmic approaches. The Serial Selection (SS) Algorithm , inspired by serial dictatorship, processes families according to a master list and allows them to take available improvements without altering the assignments of other families. This naturally guarantees non-wastefulness, but initial enrollments make conventional master-list-based fairness too demanding: displacing a lower-ranked family may deprive it of an assignment protected by its initial enrollment. This motivates the Greedy Improvement (GI) Algorithm , which combines master-list priority with resettlement . A higher-ranked family may displace lower-ranked families, while the displaced families are returned to their initial assignments whenever such resettlement is feasible. We show constructively that GI guarantees non-wastefulness together with fairness by master list and resettlement. The same principle extends to our stronger dominance-based fairness notion, under which displaced families can be selected directly according to daycare priorities.
Third, we consider the opposite direction: preserving fairness while weakening non-wastefulness. The Generalized Cutoff (GC) Algorithm extends the previous cutoff approach [25 , 6 ] : daycare cutoffs are gradually relaxed, and families choose their most preferred assignments available under the current cutoffs. Joint preferences among siblings, however, create interactions across daycare centers that prevent this natural extension from guaranteeing full fairness; we show that it guarantees only fairness by replacement. This limitation motivates our Fairness-preserving Non-wasteful (FN) Algorithm . Rather than restricting improvements through cutoffs, FN permits an improvement whenever it does not create a prescribed fairness violation. This yields full fairness together with a new relaxation of non-wastefulness, which we call fairness-preserving non-wastefulness . The underlying principle is modular: by changing the fairness criterion used to screen improvements, the same approach can accommodate different notions of fairness.
The four algorithms represent distinct ways of addressing the same fairness–non-wastefulness tension. GC controls access through daycare cutoffs , FN screens improvements through a fairness test , SS protects existing assignments through serial selection , and GI permits displacement through resettlement . Simply combining these ingredients cannot in general eliminate the underlying incompatibility: our impossibility results show that non-wastefulness remains incompatible with several successively weaker notions of fairness. Resettlement provides a way around this incompatibility by protecting the initial assignments of displaced families. Figure 1 summarizes the relationships and compatibility among the resulting solution concepts, while Table 1 compares the guarantees of the four algorithms.
Figure 1. Relationships among the proposed properties. Directed arrows indicate implication, while dashed edges indicate compatibility between the corresponding properties. S: Stability; WS: Weak Stability; NW: Non-wastefulness; FNW: Fairness-preserving Non-wastefulness; F: Fairness; FMR: Fairness by Master List and Resettlement; SFMR: Strong Fairness by Master List and Resettlement; FRW: Fairness by Replacement and Withdrawal; FR: Fairness by Replacement; and FRM: Fairness by Replacement and Master List.
Table 1. Comparison of the four proposed algorithms: Serial Selection (SS), Greedy Improvement (GI), Generalized Cutoff (GC), and Fairness-preserving Non-Wasteful (FN).
Finally, we characterize the computational limits of these solution concepts. We distinguish among verifying whether a given matching satisfies a fairness notion, deciding whether a matching satisfying both fairness and non-wastefulness exists, and computing such a matching. Fairness, fairness by replacement and withdrawal, fairness by replacement, and fairness by replacement and master list can be verified in polynomial time, whereas deciding the existence of a non-wasteful matching satisfying these fairness requirements is NP-hard. Introducing resettlement restores universal existence: a matching satisfying non-wastefulness and fairness by master list and resettlement, or its stronger dominance-based variant, always exists. This compatibility, however, comes with a computational cost. Computing such matchings is PLS-hard. Moreover, detecting a violation of the stronger dominance-based fairness notion is NP-complete, and hence verifying whether a matching satisfies this notion is coNP-complete. Thus, restoring existence does not necessarily restore computational tractability. Table 2 summarizes these results.
Table 2. Summary of the compatibility of different fairness notions with non-wastefulness (NW), and the complexity of verifying, deciding the existence of, and computing a matching satisfying NW and the corresponding fairness notion.
Literature
Our work lies at the intersection of matching with couples, daycare matching with siblings, and matching markets with initial endowments. It also relates to the literature on master lists, approximate feasibility, and the computational complexity of stable matching.
Matching with couples. Our model is closely related to matching with couples, where couples have joint preferences over pairs of positions; see Biró and Klijn [2013] for a comprehensive survey. A fundamental difficulty in this setting is that stable matchings need not exist. Moreover, deciding whether a stable matching exists is computationally hard. Ronn [1990] established NP-hardness even when each hospital has only one position. McDermid and Manlove [2010] showed that hardness persists when couples restrict their preferences to pairs of positions within the same hospital, while Biró et al. [2011] obtained hardness results under common rankings of doctors. Thus, neither simple capacities nor substantial structure on preferences and priorities is sufficient in general to restore tractability.
Our setting shares the central difficulty of matching with couples: members of the same family are evaluated jointly rather than independently. However, families in our model may contain more than two children and, more importantly, some children may already be enrolled in daycares. These initial enrollments introduce entitlements that are absent from the standard matching-with-couples model and fundamentally affect the interaction between fairness and non-wastefulness.
Restricted preferences and large markets. One approach to overcoming the non-existence of stable matchings with couples is to impose structure on joint preferences. Klaus and Klijn [2005] introduced weakly responsive preferences, under which stable matchings are guaranteed to exist. Roughly, weak responsiveness requires that an improvement in one member’s assignment, holding the other member’s assignment fixed, be regarded as an improvement for the couple. Hatfield and Kojima [2010] subsequently studied bilateral substitutes in the matching with contracts framework of Hatfield and Milgrom [2005] and showed the connection between this condition and weak responsiveness. Such restrictions, however, substantially constrain the complementarity between siblings’ assignments. We instead allow general joint family preferences and study weaker desiderata when full stability cannot be achieved.
A complementary literature obtains positive results through market largeness rather than preference restrictions. Kojima et al. [2013] show that stable matchings exist with high probability in sufficiently large markets when the number of couples grows sufficiently slowly relative to market size. Ashlagi et al. [2014] substantially extend the range of market sizes for which such asymptotic existence results hold, and more recent work further develops this large-market perspective [48 ] . These results provide an important explanation for why stable outcomes may often be observed despite worst-case non-existence. Our analysis is instead worst-case and axiomatic: we ask which fairness and non-wastefulness properties remain mutually compatible for arbitrary instances.
Algorithms for matching with couples and siblings. The computational difficulties of matching with couples have motivated a variety of practical solution methods. The National Resident Matching Program employs a heuristic related to the incremental algorithm of Roth and Vande Vate [1990]. Biró et al. [2016] propose an alternative approach based on Scarf’s algorithm [43 ] , first computing a fractional solution whose integrality yields a stable matching.
Integer programming, constraint programming, and satisfiability-based methods have also been extensively explored [31 , 10 , 15 , 32 ] . For example, Drummond et al. [2015] formulate the stable matching problem with couples using both SAT and integer programming, allowing modern general-purpose solvers to search for stable outcomes. Related optimization approaches have recently been adapted to daycare matching markets with siblings [46 , 47 ] . These works primarily seek stable outcomes computationally when they exist. In contrast, our focus is on identifying alternative normative properties that remain meaningful and achievable when stability itself is incompatible with the market structure.
The problem has also been studied from the perspective of parameterized complexity. Marx and Schlotter [2011] show that deciding whether a stable matching exists is W [ 1 ] W[1] W [ 1 ] -hard when parameterized by the number of couples. On the positive side, additional structure, including common priority orderings, can lead to fixed-parameter tractability [9 ] . These results complement our complexity analysis, which focuses on the difficulty of verifying and computing outcomes satisfying relaxations of stability rather than stability itself.
Capacity modification and approximate feasibility. Another approach to the non-existence of stable matchings is to relax capacity constraints rather than stability. Building on the fractional approach based on Scarf’s lemma, Nguyen and Vohra [2018] show that every instance can be transformed into a nearby instance admitting a stable matching by slightly perturbing hospital capacities. Their results provide bounded changes both to individual hospital capacities and to aggregate capacity. More recently, Csáji et al. [2024] develop a polynomial-time algorithm for computing near-feasible stable matchings in which each hospital’s capacity is violated by only a small amount, under restrictions on couples’ preferences.
Our approach is complementary. We retain the original daycare capacities and instead relax the normative requirements imposed on the matching. In particular, we decompose stability into individual rationality, fairness, and non-wastefulness and investigate how the latter two properties can be weakened or refined while preserving the original feasibility constraints. This distinction is particularly relevant in daycare markets, where physical capacities may be difficult to modify.
Master lists. Master lists provide a common ordering of agents and have been used to impose additional structure on matching markets. Irving et al. [ [23 ] study stable marriage problems in which preference lists are derived from master preference lists and characterize the computational consequences of this structure. Common rankings have also been studied in matching with couples. In particular, Biró et al. [ [9 ] show that the non-existence and computational difficulties associated with couples can persist even when hospitals share a common ranking of doctors.
The master list in our model plays a different role. Rather than generating the daycare priority orderings, it provides a common ordering of families that restricts which displacements are regarded as justified. This idea allows us to weaken fairness in a structured way while retaining non-wastefulness. We show, however, that a master list alone is insufficient in the presence of initial enrollments. A lower-ranked family displaced by a higher-ranked family may lose an assignment to which it was initially entitled. This observation motivates our notion of resettlement , under which displaced families can be returned to their initial assignments.
Initial enrollments and endowments. Initial assignments have a long history in matching and allocation problems. In house allocation with existing tenants, agents may already possess houses before participating in the allocation mechanism, and their initial endowments must therefore be respected [3 ] . Closely related issues arise in student placement and school choice, where students may have existing placements or priority claims [7 , 1 ] .
Subsequent work has studied initial endowments together with increasingly general distributional constraints. Hamada et al. [ [20 ] consider strategy-proof school choice mechanisms in the presence of minimum quotas and initial endowments. Suzuki et al. [ [49 ] develop efficient allocation mechanisms that accommodate both endowments and distributional constraints. Suzuki et al. [ [50 ] further extend this line of research to M-convex distributional constraints while retaining strategy-proofness. Together, these studies demonstrate that initial endowments can be incorporated into allocation mechanisms even under rich feasibility constraints.
Our setting introduces a different source of difficulty: families have joint preferences over the assignments of multiple children. An initial enrollment therefore cannot always be treated independently at the child level. A transfer by one family may simultaneously involve several daycares, while displacement may affect the initial entitlements of another family. The interaction between joint family preferences and initial enrollments is precisely what generates several of the incompatibility results studied in this paper and motivates our resettlement-based fairness notions.
Local search and computational complexity. Finally, our results connect to the literature on local-search complexity. The complexity class PLS was introduced by Johnson et al. [ [24 ] to formalize search problems in which a locally improving solution can be recognized efficiently but finding a local optimum may nevertheless be computationally difficult. This framework is particularly relevant to our greedy improvement procedures, which repeatedly implement welfare-improving moves while maintaining the desired matching properties.
Our complexity results reveal a distinction between existence, verification, and computation. Several of our fairness notions can be verified in polynomial time even though deciding whether they can coexist with non-wastefulness is NP-hard. Conversely, our resettlement-based fairness notions restore universal existence, but stronger variants become computationally difficult to verify, and computing an outcome that is both non-wasteful and strongly fair by master list and resettlement is PLS-hard. Thus, the computational obstacles in our model do not arise solely from the possible non-existence of desirable outcomes: they persist even for solution concepts for which existence is guaranteed.
Model
An instance of the matching problem with siblings and initial enrollment is given by I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) I=(C,F,D,\mathcal{Q},\mathcal{X},\omega,\succ_F,\succ_D) I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) , where C C C , F F F , and D D D denote the sets of children, families, and daycares, respectively. Each child c ∈ C c \in C c ∈ C belongs to exactly one family, denoted by f c ∈ F f_c \in F f c ∈ F . For each family f ∈ F f \in F f ∈ F , let C f = ( c 1 f , c 2 f , … , c n f f ) C_f=(c_1^f,c_2^f,\ldots,c_{n_f}^f) C f = ( c 1 f , c 2 f , … , c n f f ) denote its children, listed in a fixed order, where n f = ∣ C f ∣ n_f=|C_f| n f = ∣ C f ∣ . Each daycare d ∈ D d \in D d ∈ D is subject to a capacity Q d Q_d Q d .
We impose no bound on family size unless explicitly stated otherwise. All our complexity results other than the local-search hardness results hold even when each family has at most three children.
Let X ⊆ C × D \mathcal{X} \subseteq C \times D X ⊆ C × D denote the set of available contracts. A contract x = ( c , d ) ∈ X x=(c,d) \in\mathcal{X} x = ( c , d ) ∈ X represents the assignment of child c c c to daycare d d d . The initial enrollment is represented by a set of contracts ω ⊆ X \omega\subseteq\mathcal{X} ω ⊆ X , where each child appears in at most one contract. For convenience, let ω ( c ) = d \omega(c)=d ω ( c ) = d if ( c , d ) ∈ ω (c,d) \in\omega ( c , d ) ∈ ω , and let ω ( c ) = ∅ \omega(c)=\varnothing ω ( c ) = ∅ if child c c c is initially unassigned.
For any subset Y ⊆ X Y \subseteq\mathcal{X} Y ⊆ X , let Y c Y_c Y c , Y d Y_d Y d , and Y f Y_f Y f denote the subsets of contracts involving child c c c , daycare d d d , and family f f f , respectively. Similarly, let C ( Y ) C(Y) C ( Y ) , D ( Y ) D(Y) D ( Y ) , and F ( Y ) F(Y) F ( Y ) denote the sets of children, daycares, and families appearing in contracts in Y Y Y . For any set of families G ⊆ F G \subseteq F G ⊆ F , let
Y G = ⋃ g ∈ G Y g and ω G = ⋃ g ∈ G ω g . Y_G = \bigcup_{g\in G} Y_g \quad\text{and}\quad\omega_G = \bigcup_{g\in G} \omega_g. Y G = g ∈ G ⋃ Y g and ω G = g ∈ G ⋃ ω g .
A matching Y ⊆ X Y \subseteq\mathcal{X} Y ⊆ X is a set of contracts such that each child is assigned to at most one daycare,
∣ Y c ∣ ≤ 1 for every c ∈ C . |Y_c| \le1 \qquad\text{for every } c \in C. ∣ Y c ∣ ≤ 1 for every c ∈ C .
A matching Y Y Y is feasible if no daycare exceeds its capacity:
∣ Y d ∣ ≤ Q d for every d ∈ D . |Y_d| \le Q_d \qquad\text{for every } d \in D. ∣ Y d ∣ ≤ Q d for every d ∈ D .
We assume that the initial enrollment ω \omega ω is feasible.
For a feasible matching Y Y Y and a family f f f , the set Y f Y_f Y f is called the family’s assignment . When convenient, we represent an assignment as a tuple according to the fixed ordering of the children in C f C_f C f , where ∅ \emptyset ∅ denotes being unmatched. For example, if C f = ( c 1 , c 2 ) C_f = (c_1,c_2) C f = ( c 1 , c 2 ) , the assignment { ( c 1 , d 1 ) , ( c 2 , d 2 ) } \{(c_1,d_1),(c_2,d_2)\} {( c 1 , d 1 ) , ( c 2 , d 2 )} may be written as ( d 1 , d 2 ) (d_1,d_2) ( d 1 , d 2 ) , while { ( c 1 , d 1 ) } \{(c_1,d_1)\} {( c 1 , d 1 )} may be written as ( d 1 , ∅ ) (d_1,\emptyset) ( d 1 , ∅ ) . When used by itself as a family assignment, ∅ \emptyset ∅ denotes the empty assignment, in which all children of the family are unmatched.
Let Y \mathcal{Y} Y denote the set of all matchings, and for each family f ∈ F f \in F f ∈ F , define
W f = { Y f ∣ Y ∈ Y } W_f = \{Y_f \mid Y \in\mathcal{Y}\} W f = { Y f ∣ Y ∈ Y }
as the set of possible assignments for family f f f . Each family f f f has a strict preference ordering ≻ f \succ_f ≻ f over W f W_f W f , and let ≻ F = ( ≻ f ) f ∈ F \succ_F = (\succ_f)_{f\in F} ≻ F = ( ≻ f ) f ∈ F denote the family preference profile. We assume that each family’s preference ordering over its possible assignments is explicitly represented as part of the input. Thus, although the number of possible assignments may grow with family size, the preference list itself is part of the input, and our complexity bounds are measured with respect to the length of this explicit representation.
Preferences over matchings are induced by preferences over family assignments. Thus, for two matchings Y Y Y and Z Z Z ,
Y ≻ f Z ⟺ Y f ≻ f Z f . Y \succ_f Z \quad\Longleftrightarrow\quad Y_f \succ_f Z_f. Y ≻ f Z ⟺ Y f ≻ f Z f .
In particular, the initial assignment of family f f f is ω f \omega_f ω f . A feasible matching Y Y Y is acceptable to family f f f if Y f ≻ f ω f Y_f \succ_f \omega_f Y f ≻ f ω f or Y f = ω f Y_f = \omega_f Y f = ω f . We will combine this family-side acceptability requirement with daycare-side acceptability when defining individual rationality.
Each daycare d ∈ D d \in D d ∈ D has a strict priority ordering ≻ d \succ_d ≻ d over X d ∪ { ∅ } \mathcal{X}_d \cup\{\emptyset\} X d ∪ { ∅ } , where ∅ \emptyset ∅ denotes the outside option of leaving a seat unfilled. We use the same symbol ∅ \emptyset ∅ for these notions of non-assignment; its meaning will be clear from context. Let ≻ D = ( ≻ d ) d ∈ D \succ_D = (\succ_d)_{d\in D} ≻ D = ( ≻ d ) d ∈ D denote the daycare priority profile. A contract x ∈ X d x \in\mathcal{X}_d x ∈ X d is acceptable to daycare d d d if x ≻ d ∅ x \succ_d \emptyset x ≻ d ∅ . We assume without loss of generality that every contract in X \mathcal{X} X is acceptable to the corresponding daycare, since unacceptable contracts can simply be excluded from X \mathcal{X} X . For notational simplicity, we sometime write c ≻ d c ′ c \succ_d c' c ≻ d c ′ instead of ( c , d ) ≻ d ( c ′ , d ) (c,d) \succ_d (c',d) ( c , d ) ≻ d ( c ′ , d ) .
We impose a natural priority condition motivated by daycare assignment systems with initial enrollment: a daycare gives higher priority to children already enrolled there than to children who are not initially enrolled there [46 , 47 ] . This assumption is important for guaranteeing compatibility between initial enrollment and fairness. Without it, individual rationality and fairness may be incompatible; for example, a daycare with a single seat may initially enroll a child who has lower priority than a newly applying child.
Definition 1 (Priority for Initially Enrolled Children). For every daycare d ∈ D d \in D d ∈ D and any children c , c ′ ∈ C c,c' \in C c , c ′ ∈ C , if ω ( c ) = d \omega(c)=d ω ( c ) = d and ω ( c ′ ) ≠ d \omega(c') \ne d ω ( c ′ ) = d , then c ≻ d c ′ c \succ_d c' c ≻ d c ′ .
Properties
In this section, we explore how to generalize the concept of stability by accounting for siblings and initial enrollments, and we demonstrate how to decompose stability into two distinct properties: fairness and non-wastefulness.
Broadly speaking, a feasible matching is deemed stable if no family: (i) is assigned an unacceptable outcome (blocking individual), or (ii) can improve its assignment by reallocating a subset of its children to more preferred daycares which are willing to accept them (blocking coalition) [39 ] . Such reallocations can occur in two ways: by occupying unfilled slots or by displacing lower-priority children. Non-wastefulness ensures that no family can improve its allocation by merely occupying vacant slots, while fairness prohibits families from achieving better outcomes by displacing at least one child with lower priority.
The presence of siblings introduces an additional consideration. When a family changes its assignment, a child may vacate a seat at a daycare, and that seat may subsequently be used by another child in the same family. We refer to this possibility as seat withdrawal . Depending on whether such withdrawals are taken into account when evaluating a deviation, we obtain two notions of stability.
Seat Withdrawal and Stability
We begin by introducing the concept of a choice function, which provides a streamlined framework for representing key concepts in matching theory.
Definition 2 (Choice Function for Daycares). For a given set of contracts X ⊆ X X \subseteq\mathcal{X} X ⊆ X , the choice function of a daycare d d d , denoted by Ch d ( X d ) \operatorname{Ch}_d(X_d) Ch d ( X d ) , selects contracts from X d X_d X d sequentially, in descending order of ≻ d \succ_d ≻ d , while ensuring that the quota Q d Q_d Q d is not exceeded. This function naturally extends to a set of daycares D D D by aggregating their individual choices:
Ch D ( X ) = ⋃ d ∈ D Ch d ( X d ) . \operatorname{Ch}_D(X) = \bigcup_{d \in D} \operatorname{Ch}_d(X_d). Ch D ( X ) = d ∈ D ⋃ Ch d ( X d ) .
Individual rationality is a fundamental requirement that prevents blocking by individuals. A feasible matching is individually rational if every family is matched to an acceptable assignment and no daycare is assigned an unacceptable contract. We impose individual rationality as a rigid requirement throughout the paper.
Definition 3 (Individual Rationality). A feasible matching Y Y Y is individually rational if
Y f ≻ f ω f Y_f \succ_f \omega_f Y f ≻ f ω f or Y f = ω f Y_f = \omega_f Y f = ω f for every family f ∈ F f \in F f ∈ F ; and
x ≻ d ∅ x \succ_d \varnothing x ≻ d ∅ for every daycare d ∈ D d \in D d ∈ D and every contract x ∈ Y d x \in Y_d x ∈ Y d .
The primary challenge of defining stability lies in properly defining blocking coalitions, which we address next. We first consider deviations without seat withdrawal. In such a deviation, the family’s current contracts remain available to the daycares when its proposed contracts are evaluated. Formally, we define weak stability as follows:
Definition 4 (Weak Stability). Let Y Y Y be an individually rational matching. A family f f f and a proposed assignment W ∈ W f W \in\mathcal{W}_f W ∈ W f with W ≠ Y f W \ne Y_f W = Y f form a strong blocking coalition against Y Y Y if
W ≻ f Y f W \succ_f Y_f W ≻ f Y f ,
W ⊆ Ch D ( Y ∪ W ) W \subseteq\operatorname{Ch}_D(Y \cup W) W ⊆ Ch D ( Y ∪ W ) .
An individually rational matching Y Y Y is weakly stable if it admits no strong blocking coalition.
The concept in Definition 4 generalizes the classical notion of stability, reducing to it when siblings are not considered. The first condition requires that the family strictly prefer the proposed assignment. The second requires every proposed contract to be selected by the corresponding daycare when the proposed contracts are added to the current matching. Importantly, the family’s current contracts remain in the choice set. Thus, a child who is currently assigned to a daycare may prevent a sibling from being accepted by that daycare, even if the child prefers to be transferred to a different daycare. Even under this weaker notion, existence is not guaranteed in general [38 ] .
The following example illustrates why allowing a family to withdraw its current contracts before its proposed assignment is evaluated can be important. The idea of seat withdrawal has been considered in recent work [46 , 47 ] .
Example 1 (Instance of Seat Withdrawal). Consider a family f f f with two children C f = ( c 1 , c 2 ) C_f = (c_1, c_2) C f = ( c 1 , c 2 ) and two daycares D = { d 1 , d 2 } D = \{d_1, d_2\} D = { d 1 , d 2 } , each with capacity one: Q d 1 = Q d 2 = 1 Q_{d_1} = Q_{d_2} = 1 Q d 1 = Q d 2 = 1 . Suppose that X = { ( c 1 , d 1 ) , ( c 1 , d 2 ) , ( c 2 , d 2 ) } \mathcal{X} = \{(c_1, d_1), (c_1, d_2), (c_2, d_2)\} X = {( c 1 , d 1 ) , ( c 1 , d 2 ) , ( c 2 , d 2 )} . Since all contracts involve children from the same family f f f , we have X = X f \mathcal{X} = \mathcal{X}_f X = X f .
Suppose the family most prefers assigning c 1 c_1 c 1 to d 1 d_1 d 1 and c 2 c_2 c 2 to d 2 d_2 d 2 , and its next-best relevant assignment assigns only c 1 c_1 c 1 to d 2 d_2 d 2 . For example, its preferences may satisfy { ( c 1 , d 1 ) , ( c 2 , d 2 ) } ≻ f { ( c 1 , d 2 ) } ≻ f ∅ \{(c_1, d_1), (c_2, d_2)\} \succ_f \{(c_1, d_2)\} \succ_f \varnothing {( c 1 , d 1 ) , ( c 2 , d 2 )} ≻ f {( c 1 , d 2 )} ≻ f ∅ , with all other assignments ranked below ∅ \varnothing ∅ . Each daycare ranks c 1 c_1 c 1 above c 2 c_2 c 2 : c 1 ≻ d 1 c 2 c_1 \succ_{d_1} c_2 c 1 ≻ d 1 c 2 and c 1 ≻ d 2 c 2 c_1 \succ_{d_2} c_2 c 1 ≻ d 2 c 2 .
Consider current assignment Y = { ( c 1 , d 2 ) } Y = \{(c_1, d_2)\} Y = {( c 1 , d 2 )} and a new assignment W = { ( c 1 , d 1 ) , ( c 2 , d 2 ) } W = \{(c_1, d_1), (c_2, d_2)\} W = {( c 1 , d 1 ) , ( c 2 , d 2 )} . Under Definition 4, the family cannot block Y Y Y with its preferred assignment W W W . Indeed, Ch D ( Y ∪ W ) = { ( c 1 , d 1 ) , ( c 1 , d 2 ) } \operatorname{Ch}_D(Y \cup W) = \{(c_1, d_1), (c_1, d_2)\} Ch D ( Y ∪ W ) = {( c 1 , d 1 ) , ( c 1 , d 2 )} , because each daycare ranks c 1 c_1 c 1 above c 2 c_2 c 2 . Hence, W ⊈ Ch D ( Y ∪ W ) W \not\subseteq\operatorname{Ch}_D(Y \cup W) W ⊆ Ch D ( Y ∪ W ) . Nevertheless, this outcome appears undesirable. If c 1 c_1 c 1 first gives up the seat at d 2 d_2 d 2 and moves to d 1 d_1 d 1 , the vacated seat at d 2 d_2 d 2 becomes available to c 2 c_2 c 2 . The family can therefore obtain W = { ( c 1 , d 1 ) , ( c 2 , d 2 ) } W = \{(c_1, d_1), (c_2, d_2)\} W = {( c 1 , d 1 ) , ( c 2 , d 2 )} , its most preferred assignment, without displacing any child outside the family.
Motivated by this observation, we define stability by allowing a family to withdraw all of its current contracts before its proposed assignment is evaluated.
Definition 5 (Stability). Let Y Y Y be an individually rational matching. A family f f f and a proposed assignment W ∈ W f W \in\mathcal{W}_f W ∈ W f with W ≠ Y f W \ne Y_f W = Y f form a blocking coalition against Y Y Y if
Figure 2. Illustration of seat withdrawal. Although f f f cannot block Y Y Y with W W W under weak stability, c 1 c_1 c 1 can first move from d 2 d_2 d 2 to d 1 d_1 d 1 , thereby releasing the seat at d 2 d_2 d 2 , which can then be assigned to c 2 c_2 c 2 . Thus, the family can obtain W W W without displacing any child outside the family.
W ≻ f Y f W \succ_f Y_f W ≻ f Y f ;
W ⊆ C h D ( ( Y ∖ Y f ) ∪ W ) W \subseteq Ch_D((Y \setminus Y_f) \cup W) W ⊆ C h D (( Y ∖ Y f ) ∪ W ) .
An individually rational matching is stable if no such blocking coalition exists.
The difference between weak stability and stability lies entirely in the set of contracts presented to the daycare choice functions. Under weak stability, the proposed assignment is evaluated together with the family’s current assignment. Under stability, the family’s current contracts are first withdrawn. Consequently, seats vacated by members of the deviating family may be used by their siblings.
Proposition 1. Stability implies weak stability.
Proof. Suppose that family f f f and assignment W W W form a strong blocking coalition against Y Y Y . Then
W ⊆ C h D ( Y ∪ W ) . W \subseteq Ch_D(Y \cup W). W ⊆ C h D ( Y ∪ W ) . Removing contracts in Y f Y_f Y f cannot cause a contract in W W W that was previously selected to become rejected, because each daycare chooses the highest-priority contracts up to its capacity. Hence,
W ⊆ C h D ( ( Y ∖ Y f ) ∪ W ) . W \subseteq Ch_D((Y \setminus Y_f) \cup W). W ⊆ C h D (( Y ∖ Y f ) ∪ W ) . Since W ≻ f Y f W \succ_f Y_f W ≻ f Y f , family f f f and W W W also form a blocking coalition against Y Y Y . Therefore, if Y Y Y admits no blocking coalition, it admits no strong blocking coalition. Thus, stability implies weak stability.
Non-wastefulness and Fairness
In this subsection, we decompose stability in Definition 5 into two distinct properties: non-wastefulness and fairness. Both properties are defined based on blocking coalitions, but distinguish whether a profitable deviation causes any existing contract to be rejected. Note that weak stability implies neither non-wastefulness nor fairness.
Intuitively, non-wastefulness requires that no family can obtain a strictly preferred assignment by claiming unused seats without altering the assignments of other families. We use the term unused seats to include not only seats that are vacant under the current matching, but also seats that become available through the withdrawal of contracts belonging to the same family. Formally, we define non-wastefulness as follows.
Definition 6 (Non-wastefulness). Given an individually rational matching Y Y Y and a new assignment W W W , a family f f f is said to claim unused seats if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊆ C h D ( ( Y ∖ Y f ) ∪ W ) W \subseteq Ch_D((Y \setminus Y_f) \cup W) W ⊆ C h D (( Y ∖ Y f ) ∪ W ) .
(2) no rejection:
( Y ∖ Y f ) ∪ W = C h D ( ( Y ∖ Y f ) ∪ W ) . (Y \setminus Y_f) \cup W = Ch_D((Y \setminus Y_f) \cup W). ( Y ∖ Y f ) ∪ W = C h D (( Y ∖ Y f ) ∪ W ) . An individually rational matching is said to be non-wasteful if no family can claim unused seats.
Condition (2) of Definition 6 requires that no contract be rejected when family f f f changes its assignment from Y f Y_f Y f to W W W . Thus, the assignments of all other families remain unchanged. Note that Condition (2) implies
W ⊆ C h D ( ( Y ∖ Y f ) ∪ W ) , W \subseteq Ch_D((Y \setminus Y_f) \cup W), W ⊆ C h D (( Y ∖ Y f ) ∪ W ) , and hence implies the daycare-acceptance requirement in Condition (1). We nevertheless retain this requirement explicitly in Condition (1) to maintain a common formulation with stability and the fairness notions introduced below.
In contrast, fairness concerns profitable deviations that cause at least one existing contract to be rejected. Such a deviation may involve replacing lower-priority children, possibly together with the use of vacant seats or seats withdrawn by children in the same family. The difference from stability in Definition 5 is therefore the additional requirement that at least one contract be rejected.
Definition 7 (Fairness). Given an individually rational matching Y Y Y and a new assignment W W W , a family f f f is said to have justified envy if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊆ C h D ( Y ∖ Y f ∪ W ) W \subseteq Ch_D(Y \setminus Y_f \cup W) W ⊆ C h D ( Y ∖ Y f ∪ W ) .
(2) at least one rejection:
∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ . \lvert Y \setminus Y_f \cup W\rvert> \lvert Ch_D(Y \setminus Y_f \cup W)\rvert. ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W )∣ . Let R e = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) \mathrm{Re} = (Y \setminus Y_f \cup W) \setminus Ch_D(Y \setminus Y_f \cup W) Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) denote the set of rejected contracts. Family f f f is said to have justified envy toward the families in F ( R e ) F(\mathrm{Re}) F ( Re ) , i.e., the families whose contracts are rejected as a result of the deviation.
An individually rational matching is said to be fair if no family has justified envy.
Non-wastefulness and fairness partition blocking coalitions according to whether the deviation causes a rejection. If no contract is rejected, the deviating family can claim unused seats; if at least one contract is rejected, the family has justified envy. This immediately gives the following relationship.
Proposition 2. An individually rational matching is stable if and only if it is both non-wasteful and fair.
Proof. Suppose first that Y Y Y is stable. Then no family forms a blocking coalition against Y Y Y . Since both a wasteful improvement and justified envy require a blocking coalition, Y Y Y is both non-wasteful and fair.
Conversely, suppose that Y Y Y is both non-wasteful and fair. If Y Y Y were not stable, there would exist a family f f f and an assignment W W W forming a blocking coalition against Y Y Y . Consider Y ∖ Y f ∪ W Y \setminus Y_f \cup W Y ∖ Y f ∪ W . Either no contract is rejected by the daycare choice functions, in which case
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) , Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W), Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) ,
and f f f can wastefully improve, contradicting non-wastefulness; or at least one contract is rejected, in which case
∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ , \lvert Y \setminus Y_f \cup W\rvert> \lvert Ch_D(Y \setminus Y_f \cup W)\rvert, ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W )∣ ,
and f f f has justified envy, contradicting fairness. Hence, no blocking coalition exists, and Y Y Y is stable. □
Computational Complexity of Problems Related to F
We next examine the computational complexity of non-wastefulness and fairness. While verifying whether a given matching satisfies both properties is computationally tractable, deciding whether such a matching exists is NP-complete.
Theorem 1. Given a feasible matching Y Y Y , whether Y Y Y satisfies both non-wastefulness and fairness can be verified in polynomial time.
Proof. We first check whether Y Y Y is individually rational. For each family f ∈ F f \in F f ∈ F , we verify that Y f Y_f Y f is weakly preferred to its initial assignment ω f \omega_f ω f , and for each contract ( c , d ) ∈ Y (c,d) \in Y ( c , d ) ∈ Y , we verify that it is acceptable to daycare d d d . Since family preferences and daycare priorities are explicitly represented, these conditions can be checked in polynomial time. If Y Y Y is not individually rational, it does not satisfy the two properties. Suppose henceforth that Y Y Y is individually rational. By Proposition 2, Y Y Y is both non-wasteful and fair if and only if it is stable. It therefore suffices to determine whether Y Y Y admits a blocking coalition. For each family f ∈ F f \in F f ∈ F , we examine every assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f in its preference ordering. For each such W W W , let
Z = ( Y ∖ Y f ) ∪ W . Z = (Y \setminus Y_f) \cup W. Z = ( Y ∖ Y f ) ∪ W .
We compute C h D ( Z ) Ch_D(Z) C h D ( Z ) by applying the daycare choice function at each daycare. By Definition 5, family f f f and assignment W W W form a blocking coalition against Y Y Y if and only if
W ⊆ C h D ( Z ) . W \subseteq Ch_D(Z). W ⊆ C h D ( Z ) .
Since the daycare priority orders are explicitly represented, C h D ( Z ) Ch_D(Z) C h D ( Z ) can be computed in polynomial time. Moreover, family preference orderings are explicitly represented, so the total number of assignments examined is polynomial in the input size. Hence, we can determine in polynomial time whether any blocking coalition exists. Therefore, whether Y Y Y satisfies both non-wastefulness and fairness can be verified in polynomial time. □
Theorem 2. Given an instance, deciding whether there exists a matching that is both non-wasteful and fair is NP-complete. Consequently, computing such a matching, while correctly reporting when none exists, is NP-hard.
Proof. We first establish NP-hardness by a reduction from the Hospitals/Residents problem with Couples (HRC). An instance of HRC consists of a set of residents and a set of hospitals. Some residents form couples and express joint preferences over pairs of hospitals, while each hospital has a capacity and a strict priority ordering over residents. A couple is either jointly unassigned or jointly assigned to an acceptable pair of hospitals.
The stability notion used in the HRC literature is the MM-stability notion introduced by McDermid and Manlove [2010] and subsequently employed in Biró et al. [2014], Manlove et al. [2017], Csáji et al. [2024]. For completeness, we recall the definition below.
Definition 8 (MM-stability). A matching M M M is MM-unstable if at least one of the following holds:
A single resident r i r_i r i and a hospital h j h_j h j block M M M as in the classical Hospitals/Residents problem.
A coupled resident r i r_i r i , whose partner is r j r_j r j , and a hospital h k h_k h k block M M M : the couple ( r i , r j ) (r_i,r_j) ( r i , r j ) prefers ( h k , M ( r j ) ) (h_k,M(r_j)) ( h k , M ( r j )) to ( M ( r i ) , M ( r j ) ) (M(r_i),M(r_j)) ( M ( r i ) , M ( r j )) , and h k h_k h k is either undersubscribed in M M M or prefers r i r_i r i to some member of M ( h k ) ∖ { r j } M(h_k) \setminus\{r_j\} M ( h k ) ∖ { r j } .
A couple ( r i , r j ) (r_i,r_j) ( r i , r j ) and hospitals h k h_k h k and h l h_l h l , where h k ≠ M ( r i ) h_k \ne M(r_i) h k = M ( r i ) and h l ≠ M ( r j ) h_l \ne M(r_j) h l = M ( r j ) , block M M M : the couple prefers ( h k , h l ) (h_k,h_l) ( h k , h l ) to ( M ( r i ) , M ( r j ) ) (M(r_i),M(r_j)) ( M ( r i ) , M ( r j )) , and one of the following holds: (a) h k ≠ h l h_k \ne h_l h k = h l , and h k h_k h k is either undersubscribed in M M M or prefers r i r_i r i to some member of M ( h k ) M(h_k) M ( h k ) , while h l h_l h l is either undersubscribed in M M M or prefers r j r_j r j to some member of M ( h l ) M(h_l) M ( h l ) ; (b) h k = h l h_k = h_l h k = h l , and h k h_k h k has at least two free posts, i.e.,
c k − ∣ M ( h k ) ∣ ≥ 2 ; c_k - \lvert M(h_k)\rvert\ge2; c k − ∣ M ( h k )∣ ≥ 2 ; (c) h k = h l h_k = h_l h k = h l , h k h_k h k has exactly one free post, i.e.,
c k − ∣ M ( h k ) ∣ = 1 , c_k - \lvert M(h_k)\rvert= 1, c k − ∣ M ( h k )∣ = 1 , and h k h_k h k prefers at least one of r i , r j r_i,r_j r i , r j to some member of M ( h k ) M(h_k) M ( h k ) ; (d) h k = h l h_k = h_l h k = h l , h k h_k h k is full, h k h_k h k prefers r i r_i r i to some r s ∈ M ( h k ) r_s \in M(h_k) r s ∈ M ( h k ) , and h k h_k h k prefers r j r_j r j to some r t ∈ M ( h k ) ∖ { r s } r_t \in M(h_k) \setminus\{r_s\} r t ∈ M ( h k ) ∖ { r s } .
A matching is MM-stable if it is not MM-unstable.
For positive integers α \alpha α and β \beta β , ( α , β ) (\alpha,\beta) ( α , β ) -HRC denotes the restriction of HRC in which each single resident finds at most α \alpha α hospitals acceptable, each couple finds at most α \alpha α pairs of hospitals acceptable, and each hospital finds at most β \beta β residents acceptable. Deciding whether an MM-stable matching exists in ( 2 , 2 ) (2,2) ( 2 , 2 ) -HRC is NP-complete, even when there are no single residents and every hospital has capacity one [10 ] .
Given such an instance, we construct an instance of our model by interpreting each couple as a family with two children and each hospital as a daycare with the same capacity and priority ordering. The joint preference ordering of each couple over acceptable hospital pairs becomes the preference ordering of the corresponding family over the associated assignments. All assignments corresponding to acceptable hospital pairs are ranked above ∅ \varnothing ∅ , while all other assignments are ranked below ∅ \varnothing ∅ . There is no initial enrollment. Clearly, this construction can be performed in polynomial time.
We next establish the correspondence between MM-stability and our stability notion. We first show that MM-stability and weak stability coincide on the restricted instances used in the NP-hardness construction of Biró et al. [2014]. Besides containing no single residents and having unit-capacity hospitals, these instances have the property that whenever a couple has two acceptable hospital pairs, the two pairs involve disjoint hospitals.
Consider a couple corresponding to a family f f f and a strictly preferred acceptable assignment W W W . Case (1) of Definition 8 cannot arise because the restricted instances contain no single residents.
Case (2) cannot arise either. If the couple is currently matched, then a strictly preferred acceptable pair cannot retain one member at the same hospital while moving only the other member, because any two acceptable pairs of the couple involve disjoint hospitals. If the couple is currently unmatched, our restricted HRC instances allow a couple to be either jointly unassigned or jointly assigned to an acceptable pair of hospitals, so a deviation assigning only one member is not an acceptable alternative.
It remains to consider Case (3). Since every hospital has capacity one, Cases (3b)–(3d), in which both members apply to the same hospital, cannot yield a blocking coalition. Indeed, a unit-capacity hospital cannot have two free posts; if it has one free post, it has no currently assigned resident to replace; and if it is full, it cannot replace two distinct currently assigned residents. Hence only Case (3a) is relevant.
Let the proposed assignment be
W = { ( r i , h k ) , ( r j , h l ) } , h k ≠ h l . W = \{(r_i,h_k),(r_j,h_l)\}, \qquad h_k \ne h_l. W = {( r i , h k ) , ( r j , h l )} , h k = h l .
Under Case (3a) of MM-stability, the couple blocks M M M precisely when it strictly prefers W W W to its current assignment and, at each proposed hospital, the hospital is either vacant or prefers the corresponding incoming resident to its current assignee.
Since every hospital has capacity one, the latter condition is equivalent to requiring both proposed contracts to be selected when they are added to the current matching. Under the correspondence between residents and children and between hospitals and daycares, this is exactly
W ⊆ C h D ( Y ∪ W ) . W \subseteq Ch_D(Y \cup W). W ⊆ C h D ( Y ∪ W ) .
Therefore, a couple forms an MM-blocking coalition if and only if the corresponding family forms a strong blocking coalition in the sense of Definition 4. Hence,
MM-stability ⟺ weak stability \text{MM-stability} \Longleftrightarrow\text{weak stability} MM-stability ⟺ weak stability
on the instances produced by the reduction.
We next show that weak stability and stability also coincide on these instances. Consider a family f f f and an acceptable assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f . If Y f = ∅ Y_f = \varnothing Y f = ∅ , then removing Y f Y_f Y f clearly has no effect. Otherwise, Y f Y_f Y f and W W W correspond to two distinct acceptable hospital pairs of the same couple. By the disjointness property,
D ( Y f ) ∩ D ( W ) = ∅ . D(Y_f) \cap D(W) = \varnothing. D ( Y f ) ∩ D ( W ) = ∅ .
Thus, removing the family’s current assignment does not change the set of contracts considered at any daycare involved in W W W . Since daycare choice is evaluated independently at each daycare,
W ⊆ C h D ( Y ∪ W ) ⟺ W ⊆ C h D ( ( Y ∖ Y f ) ∪ W ) . W \subseteq Ch_D(Y \cup W) \Longleftrightarrow W \subseteq Ch_D((Y \setminus Y_f) \cup W). W ⊆ C h D ( Y ∪ W ) ⟺ W ⊆ C h D (( Y ∖ Y f ) ∪ W ) .
Therefore,
weak stability ⟺ stability \text{weak stability} \Longleftrightarrow\text{stability} weak stability ⟺ stability
on the instances produced by the reduction.
Combining the two equivalences, the restricted HRC instance admits an MM-stable matching if and only if the corresponding instance of our model admits a stable matching. By Proposition 2, an individually rational matching is stable if and only if it is both non-wasteful and fair. Hence, the original HRC instance admits an MM-stable matching if and only if the constructed instance admits an individually rational matching that is both non-wasteful and fair. This proves NP-hardness.
It remains to show membership in NP. A matching Y Y Y serves as a polynomial-size certificate. Feasibility and individual rationality can be checked in polynomial time, and by Theorem 1, whether Y Y Y is both non-wasteful and fair can also be verified in polynomial time. Therefore, the existence problem belongs to NP and is thus NP-complete.
Finally, if a polynomial-time algorithm could compute a matching that is both non-wasteful and fair, while correctly reporting when none exists, then it would also decide the NP-complete existence problem in polynomial time. Hence, the corresponding computation problem is NP-hard.
Weakening Fairness
It is well known that weakly stable matchings may fail to exist in matching markets with couples [38 ] . Since stability is stronger than weak stability in our model, a stable matching may also fail to exist. This motivates us to investigate whether one of the two components of stability, fairness and non-wastefulness, can be preserved while the other is relaxed. In this section, we focus on weakening fairness while retaining non-wastefulness.
Replacement and Withdrawal
Recall that a family may improve its assignment in three ways: (i) by occupying previously unfilled seats, (ii) by replacing lower-priority children, and (iii) by using seats withdrawn by children in the same family.
The fairness notion in Definition 7 may be considered demanding because a deviation can constitute justified envy even when some of the newly obtained seats are vacant or are made available by seat withdrawal, as long as the deviation causes at least one existing contract to be rejected. Such seats do not require the displacement of another family.
Motivated by this observation, we introduce two weaker notions of fairness. The first excludes improvements that rely on previously vacant seats, while still allowing seats released through seat withdrawal. The second is more restrictive and requires every newly obtained seat to arise through the replacement of a contract belonging to another family.
Figure 3. Comparison of fairness (F), fairness by replacement and withdrawal (FRW), and fairness by replacement (FR). Fairness allows a profitable deviation to use previously vacant seats, seats released through sibling withdrawal, or seats obtained through replacement. FRW excludes deviations that rely on previously vacant seats, while FR further excludes deviations that rely on sibling withdrawal.
We first introduce fairness by replacement and withdrawal. Intuitively, whenever a family proposes a new assignment, the corresponding seat must already be occupied under the current assignment: it must become available either because a contract of another family is rejected or because a child of the deviating family withdraws from that daycare. Thus, improvements that rely on previously vacant seats are excluded.
Definition 9 (Fairness by Replacement and Withdrawal (FRW)). Given an individually rational matching Y Y Y and an alternative assignment W W W , a family f f f is said to have justified envy by replacement and withdrawal if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊆ C h D ( Y ∖ Y f ∪ W ) W \subseteq Ch_D(Y \setminus Y_f \cup W) W ⊆ C h D ( Y ∖ Y f ∪ W ) .
(2) at least one rejection: ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ \lvert Y \setminus Y_f \cup W\rvert> \lvert Ch_D(Y \setminus Y_f \cup W)\rvert ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W )∣ .
(3) no use of vacant seats: Let R e = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) R_e = (Y \setminus Y_f \cup W) \setminus Ch_D(Y \setminus Y_f \cup W) R e = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) . For each contract ( c , d ) ∈ W ∖ Y f (c,d) \in W \setminus Y_f ( c , d ) ∈ W ∖ Y f , there exists a distinct contract ( c ′ , d ) (c',d) ( c ′ , d ) such that ( c ′ , d ) ∈ R e ∪ ( Y f ∖ W ) (c',d) \in R_e \cup(Y_f \setminus W) ( c ′ , d ) ∈ R e ∪ ( Y f ∖ W ) .
An individually rational matching is said to be fair by replacement and withdrawal if no family has justified envy by replacement and withdrawal.
The only difference between Definition 7 and Definition 9 is Condition (3). For every newly proposed contract ( c , d ) ∈ W ∖ Y f (c,d) \in W \setminus Y_f ( c , d ) ∈ W ∖ Y f , there must be a distinct contract at the same daycare that either (i) is rejected as a result of the deviation, or (ii) belongs to the deviating family’s current assignment and is withdrawn under W W W . Hence, every newly obtained seat is supported by either replacement or seat withdrawal, and no previously vacant seat can be used.
We next introduce an even weaker fairness notion by excluding sibling withdrawal as well. Under fairness by replacement, every newly obtained contract must be supported by a contract of another family that is actually rejected as a result of the deviation.
Definition 10 (Fairness by Replacement (FR)). Given an individually rational matching Y Y Y and a new assignment W W W , a family f f f is said to have justified envy by replacement if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊂ C h D ( Y ∖ Y f ∪ W ) W \subset Ch_D(Y \setminus Y_f \cup W) W ⊂ C h D ( Y ∖ Y f ∪ W ) .
(2) at least one rejection: ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ \lvert Y \setminus Y_f \cup W\rvert> \lvert Ch_D(Y \setminus Y_f \cup W)\rvert ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W )∣ .
(3) replacement only: For each ( c , d ) ∈ W ∖ Y f (c,d) \in W \setminus Y_f ( c , d ) ∈ W ∖ Y f , there exists a distinct contract ( c ′ , d ) (c',d) ( c ′ , d ) such that
( c ′ , d ) ∈ Y ∖ Y f and ( c ′ , d ) ∉ C h D ( Y ∖ Y f ∪ W ) . (c',d) \in Y \setminus Y_f \quad\text{and} \quad(c',d) \notin Ch_D(Y \setminus Y_f \cup W). ( c ′ , d ) ∈ Y ∖ Y f and ( c ′ , d ) ∈ / C h D ( Y ∖ Y f ∪ W ) . An individually rational matching is said to be fair by replacement if no family has justified envy by replacement.
The three fairness notions are ordered by implication.
Proposition 3. Fairness implies fairness by replacement and withdrawal, and fairness by replacement and withdrawal implies fairness by replacement.
Proof. Any justified envy by replacement and withdrawal satisfies Conditions (1) and (2) of Definition 7, and therefore constitutes justified envy. Hence, if a matching is fair, it is also fair by replacement and withdrawal.
Similarly, any justified envy by replacement satisfies Conditions (1) and (2) of Definition 9. Moreover, Condition (3) of Definition 10 implies Condition (3) of Definition 9: every newly proposed contract is supported by a rejected contract from another family, which is one of the two types of supporting contracts permitted under replacement and withdrawal. Therefore, justified envy by replacement implies justified envy by replacement and withdrawal. Consequently, fairness by replacement and withdrawal implies fairness by replacement. ∎
Figure 4. The two non-wasteful matchings in the instance of Theorem 3. In X 1 X_1 X 1 , f 2 f_2 f 2 has justified envy by replacing c 2 c_2 c 2 with c 3 c_3 c 3 at d 2 d_2 d 2 , while in X 2 X_2 X 2 , f 1 f_1 f 1 can replace c 3 c_3 c 3 and c 4 c_4 c 4 with c 1 c_1 c 1 and c 2 c_2 c 2 , respectively.
Although fairness by replacement is substantially weaker than fairness, it is still incompatible with non-wastefulness, even in the absence of initial enrollment.
Theorem 3. A matching that satisfies both non-wastefulness and fairness by replacement may not exist, even when no child is initially enrolled.
Proof. Consider three families. Family f 1 f_1 f 1 has two children C f 1 = ( c 1 , c 2 ) C_{f_1}=(c_1,c_2) C f 1 = ( c 1 , c 2 ) , while families f 2 f_2 f 2 and f 3 f_3 f 3 have one child each, C f 2 = ( c 3 ) C_{f_2}=(c_3) C f 2 = ( c 3 ) and C f 3 = ( c 4 ) C_{f_3}=(c_4) C f 3 = ( c 4 ) . There are two daycares, d 1 d_1 d 1 and d 2 d_2 d 2 , each with capacity one. The acceptable assignments and priority orders are as follows:
≻ f 1 : { ( c 1 , d 1 ) , ( c 2 , d 2 ) } , ≻ d 1 : c 1 ≻ d 1 c 3 , ≻ f 2 : ( c 3 , d 1 ) ≻ f 2 ( c 3 , d 2 ) , ≻ d 2 : c 3 ≻ d 2 c 2 ≻ d 2 c 4 , ≻ f 3 : ( c 4 , d 2 ) . \begin{aligned}
\succ_{f_1}&:\{(c_1,d_1),(c_2,d_2)\}, & \succ_{d_1}&:c_1\succ_{d_1}c_3,\\
\succ_{f_2}&:(c_3,d_1)\succ_{f_2}(c_3,d_2), & \succ_{d_2}&:c_3\succ_{d_2}c_2\succ_{d_2}c_4,\\
\succ_{f_3}&:(c_4,d_2).
\end{aligned} ≻ f 1 ≻ f 2 ≻ f 3 : {( c 1 , d 1 ) , ( c 2 , d 2 )} , : ( c 3 , d 1 ) ≻ f 2 ( c 3 , d 2 ) , : ( c 4 , d 2 ) . ≻ d 1 ≻ d 2 : c 1 ≻ d 1 c 3 , : c 3 ≻ d 2 c 2 ≻ d 2 c 4 ,
All assignments not listed above are unacceptable to the corresponding family, and no child is initially enrolled.
We first identify the non-wasteful matchings. If f 1 f_1 f 1 is assigned its acceptable assignment, feasibility uniquely gives
X 1 = { ( c 1 , d 1 ) , ( c 2 , d 2 ) } . X_1=\{(c_1,d_1),(c_2,d_2)\}. X 1 = {( c 1 , d 1 ) , ( c 2 , d 2 )} .
Otherwise, f 1 f_1 f 1 is unmatched. If c 3 c_3 c 3 is assigned to d 2 d_2 d 2 , then d 1 d_1 d 1 is vacant and f 2 f_2 f 2 can improve by moving c 3 c_3 c 3 from d 2 d_2 d 2 to d 1 d_1 d 1 , so the matching is wasteful. If c 3 c_3 c 3 is assigned to d 1 d_1 d 1 while d 2 d_2 d 2 is vacant, then f 3 f_3 f 3 can improve by assigning c 4 c_4 c 4 to d 2 d_2 d 2 , so the matching is again wasteful. Consequently, the only non-wasteful matching in this case is
X 2 = { ( c 3 , d 1 ) , ( c 4 , d 2 ) } . X_2=\{(c_3,d_1),(c_4,d_2)\}. X 2 = {( c 3 , d 1 ) , ( c 4 , d 2 )} .
Thus, X 1 X_1 X 1 and X 2 X_2 X 2 are the only non-wasteful matchings.
Consider first X 1 X_1 X 1 . Family f 2 f_2 f 2 has justified envy by replacement through
W = { ( c 3 , d 2 ) } . W=\{(c_3,d_2)\}. W = {( c 3 , d 2 )} .
Family f 2 f_2 f 2 prefers d 2 d_2 d 2 to being unmatched, and c 3 c_3 c 3 has higher priority than c 2 c_2 c 2 at d 2 d_2 d 2 . Hence, ( c 3 , d 2 ) (c_3,d_2) ( c 3 , d 2 ) replaces ( c 2 , d 2 ) (c_2,d_2) ( c 2 , d 2 ) , satisfying all conditions of Definition 10. Therefore, X 1 X_1 X 1 is not fair by replacement.
Now consider X 2 X_2 X 2 . Family f 1 f_1 f 1 has justified envy by replacement through
W = { ( c 1 , d 1 ) , ( c 2 , d 2 ) } . W=\{(c_1,d_1),(c_2,d_2)\}. W = {( c 1 , d 1 ) , ( c 2 , d 2 )} .
At d 1 d_1 d 1 , child c 1 c_1 c 1 has higher priority than c 3 c_3 c 3 , while at d 2 d_2 d 2 , child c 2 c_2 c 2 has higher priority than c 4 c_4 c 4 . Thus, the two proposed contracts replace ( c 3 , d 1 ) (c_3,d_1) ( c 3 , d 1 ) and ( c 4 , d 2 ) (c_4,d_2) ( c 4 , d 2 ) , respectively. Hence, X 2 X_2 X 2 is also not fair by replacement.
Therefore, every non-wasteful matching violates fairness by replacement. A matching satisfying both properties need not exist.
Computational Complexity of Problems Related to FRM
We next examine the computational complexity of fairness by replacement and fairness by replacement and withdrawal. While violations of either fairness notion can be detected in polynomial time, deciding whether there exists a non-wasteful matching satisfying either notion is NP-complete, and computing such a matching is NP-hard.
Theorem 4. Given an individually rational matching Y Y Y , whether Y Y Y satisfies fairness by replacement or fairness by replacement and withdrawal can be verified in time O ( ∣ X ∣ ∑ f ∈ F ∣ W f ∣ ) O\left(|\mathcal{X}|\sum_{f\in F}|\mathcal{W}_f|\right) O ( ∣ X ∣ ∑ f ∈ F ∣ W f ∣ ) , where ∣ W f ∣ |\mathcal{W}_f| ∣ W f ∣ denotes the length of family f f f 's preference ordering.
Proof. We verify the absence of justified envy for each family f ∈ F f\in F f ∈ F . Fix a family f f f . We examine each assignment W ≻ f Y f W\succ_f Y_f W ≻ f Y f in its preference ordering. Since the preference ordering is explicitly represented, at most ∣ W f ∣ |\mathcal{W}_f| ∣ W f ∣ assignments need to be examined.
Fix an assignment W W W and let Z = ( Y ∖ Y f ) ∪ W Z=(Y\setminus Y_f)\cup W Z = ( Y ∖ Y f ) ∪ W . We show that all conditions for justified envy by replacement and justified envy by replacement and withdrawal can be checked in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time.
First, we compute the contracts selected by the daycare choice functions, Ch D ( Z ) = ⋃ d ∈ D Ch d ( Z d ) \operatorname{Ch}_D(Z)=\bigcup_{d\in D}\operatorname{Ch}_d(Z_d) Ch D ( Z ) = ⋃ d ∈ D Ch d ( Z d ) . For each daycare d d d , we scan its priority list and select, among the contracts contained in Z d Z_d Z d , the highest-priority contracts up to its capacity Q d Q_d Q d . Since the daycare priority lists are explicitly represented, scanning all priority lists takes O ( ∑ d ∈ D ∣ X d ∣ ) = O ( ∣ X ∣ ) O\left(\sum_{d\in D}|X_d|\right)=O(|\mathcal{X}|) O ( ∑ d ∈ D ∣ X d ∣ ) = O ( ∣ X ∣ ) time. We then define the set of rejected contracts as Re = Z ∖ Ch D ( Z ) \operatorname{Re}=Z\setminus\operatorname{Ch}_D(Z) Re = Z ∖ Ch D ( Z ) . Condition (1) can be checked by verifying W ⊆ Ch D ( Z ) W\subseteq\operatorname{Ch}_D(Z) W ⊆ Ch D ( Z ) , while Condition (2) can be checked by verifying Re ≠ ∅ \operatorname{Re}\ne\varnothing Re = ∅ . Thus, Conditions (1) and (2) can be checked within the same O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) computation.
It remains to check Condition (3). For each daycare d d d , let N d = ( W ∖ Y f ) d N_d=(W\setminus Y_f)_d N d = ( W ∖ Y f ) d denote the set of newly proposed contracts at d d d . For justified envy by replacement, let R d = Re d ∩ ( Y ∖ Y f ) R_d=\operatorname{Re}_d\cap(Y\setminus Y_f) R d = Re d ∩ ( Y ∖ Y f ) denote the rejected contracts at d d d belonging to families other than f f f . Condition (3) requires that every contract in N d N_d N d correspond to a distinct rejected contract in R d R_d R d . Since both the new and rejected contracts must involve the same daycare, such a correspondence exists if and only if ∣ N d ∣ ≤ ∣ R d ∣ |N_d|\leq|R_d| ∣ N d ∣ ≤ ∣ R d ∣ for every d ∈ D d\in D d ∈ D . These cardinalities can be computed by scanning the relevant contracts, and hence Condition (3) can be checked in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time.
For justified envy by replacement and withdrawal, a newly proposed contract may instead use a seat released by another child of the same family. Let H d = ( Y f ∖ W ) d H_d=(Y_f\setminus W)_d H d = ( Y f ∖ W ) d denote the contracts withdrawn by family f f f from daycare d d d . Condition (3) is therefore satisfied if and only if ∣ N d ∣ ≤ ∣ R d ∣ + ∣ H d ∣ |N_d|\leq|R_d|+|H_d| ∣ N d ∣ ≤ ∣ R d ∣ + ∣ H d ∣ for every d ∈ D d\in D d ∈ D . Again, all relevant cardinalities can be computed in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time.
Therefore, for each assignment W W W , we can determine whether it witnesses justified envy by replacement or justified envy by replacement and withdrawal in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time. Since at most ∣ W f ∣ |\mathcal{W}_f| ∣ W f ∣ assignments are examined, the total running time is O ( ∣ X ∣ ⋅ ∣ W f ∣ ) O(|\mathcal{X}|\cdot|\mathcal{W}_f|) O ( ∣ X ∣ ⋅ ∣ W f ∣ ) . Hence, both problems can be checked in polynomial time.
Theorem 5. Deciding whether there exists an individually rational matching that is both non-wasteful and fair by replacement is NP-complete. The same result holds for fairness by replacement and withdrawal. Consequently, computing a matching satisfying either pair of properties, while correctly reporting when none exists, is NP-hard.
Proof. We use the same reduction as in Theorem 10. We show that, on every instance produced by that reduction, fairness by replacement (FR), fairness by replacement and withdrawal (FRW), and fairness by replacement and master list (FRM) are equivalent.
We first show that justified envy by replacement and justified envy by replacement and master list coincide on the constructed instances. By construction, the priority ordering of every daycare is consistent with the master list, except that an initially enrolled child is ranked above all non-incumbent children. Hence, a non-incumbent child cannot replace an initially enrolled child.
Consider any justified envy by replacement of a family f f f through an assignment W W W . Every contract rejected as a result of this deviation therefore belongs to a non-incumbent child. For any rejected contract belonging to a family f ′ f' f ′ , the replacing child of f f f has higher daycare priority than the rejected child of f ′ f' f ′ . Since both children are non-incumbents, master-list consistency implies f ≻ f ′ f\succ f' f ≻ f ′ . Thus, the master-list condition in Definition 11 is automatically satisfied. Consequently, justified envy by replacement is equivalent to justified envy by replacement and master list on the constructed instances.
We next show that justified envy by replacement and withdrawal is equivalent to justified envy by replacement. By construction, every multi-child family applies only to assignments in which all of its children attend the same daycare, and any two distinct acceptable assignments of such a family involve different daycares. All remaining families are singletons. Therefore, whenever a family changes from its current assignment Y f Y_f Y f to a distinct assignment W W W , no contract in Y f ∖ W Y_f \setminus W Y f ∖ W is at the same daycare as a newly proposed contract in W ∖ Y f W \setminus Y_f W ∖ Y f . Hence, a withdrawn contract can never be used to satisfy Condition (3) of Definition 9. On these instances, justified envy by replacement and withdrawal therefore reduces to justified envy by replacement.
It follows that, on every instance produced by the reduction, the three fairness requirements are equivalent:
F R W ⟺ F R ⟺ F R M . \mathrm{FRW} \Longleftrightarrow\mathrm{FR} \Longleftrightarrow\mathrm{FRM}. FRW ⟺ FR ⟺ FRM .
Therefore, the NP-hardness established in Theorem 10 applies directly to deciding the existence of an individually rational matching satisfying non-wastefulness together with FR or FRW.
It remains to establish membership in NP. A matching serves as a polynomial-size certificate. Feasibility and individual rationality can be checked in polynomial time, and whether a family can claim unused seats can be checked by enumerating its explicitly represented assignments and applying the daycare choice functions. Hence, non-wastefulness can be verified in polynomial time. By Theorem 4, justified envy by replacement and justified envy by replacement and withdrawal can also be detected in polynomial time. Thus, both existence problems belong to NP and are therefore NP-complete.
We finally consider the problem of computing a matching satisfying non-wastefulness together with FR or FRW. Since a polynomial-time algorithm for computing such a matching (or reporting that none exists) would also solve the corresponding NP-complete existence problem, the computation problems are NP-hard.
Master List
In matching problems with distributional constraints, a common approach to mitigating the incompatibility between fairness and non-wastefulness is to introduce a master list that restricts which instances of envy are considered justified. Motivated by the incompatibility between fairness by replacement and non-wastefulness established in Theorem 3, we consider a weaker fairness notion that incorporates a strict master list ▹ \triangleright ▹ over families.
Intuitively, a family should be allowed to claim priority over another family only if it is ranked higher in the master list. Accordingly, justified envy by replacement is recognized only when the envying family is ranked above every family whose contract is rejected as a result of the deviation.
Definition 11 (Fairness by Replacement and Master List (FRM)). Given an individually rational matching Y Y Y , a new assignment W W W , and a strict master list ▹ \triangleright ▹ over families F F F , a family f f f is said to have justified envy by replacement and master list if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊆ C h D ( Y ∖ Y f ∪ W ) W \subseteq Ch_D(Y \setminus Y_f \cup W) W ⊆ C h D ( Y ∖ Y f ∪ W ) .
(2) at least one rejection:
∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ . \lvert Y \setminus Y_f \cup W\rvert> \lvert Ch_D(Y \setminus Y_f \cup W)\rvert. ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W )∣ . (3) replacement only: For each ( c , d ) ∈ W ∖ Y f (c,d) \in W \setminus Y_f ( c , d ) ∈ W ∖ Y f , there exists a distinct contract ( c ′ , d ) (c',d) ( c ′ , d ) such that
( c ′ , d ) ∈ Y ∖ Y f and ( c ′ , d ) ∉ C h D ( Y ∖ Y f ∪ W ) . (c',d) \in Y \setminus Y_f \quad\text{and}\quad(c',d) \notin Ch_D(Y \setminus Y_f \cup W). ( c ′ , d ) ∈ Y ∖ Y f and ( c ′ , d ) ∈ / C h D ( Y ∖ Y f ∪ W ) . (4) respect for the master list: For every f ′ ∈ F ( Re ) f' \in F(\operatorname{Re}) f ′ ∈ F ( Re ) , we have f ▹ f ′ f \triangleright f' f ▹ f ′ , where
Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) \operatorname{Re} = (Y \setminus Y_f \cup W) \setminus Ch_D(Y \setminus Y_f \cup W) Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) is the set of rejected contracts.
An individually rational matching is said to be fair by replacement and master list if no family has justified envy by replacement and master list.
Compared with fairness by replacement in Definition 10, Condition (4) imposes an additional requirement for justified envy: every family whose contract is rejected must be ranked below the envying family in the master list. Therefore, justified envy by replacement and master list is a more restrictive notion of justified envy, which leads to a weaker fairness requirement.
Proposition 4. Fairness by replacement implies fairness by replacement and master list.
Proof. Any justified envy by replacement and master list satisfies all the conditions for justified envy by replacement, with the additional master-list requirement in Condition (4) of Definition 11. Hence, if a matching admits no justified envy by replacement, it admits no justified envy by replacement and master list.
Figure 5. The four relevant matchings in the proof of Theorem 6. Red indicates a violation of fairness by replacement and master list (FRM), while blue indicates a violation of non-wastefulness (NW).
Master-list consistency. We next consider settings in which daycare priorities are aligned with the master list. Daycare priorities are master-list consistent up to initial enrollments if, at every daycare d d d , all children initially enrolled at d d d are ranked above all children who are not initially enrolled at d d d , while the remaining children are ordered according to their families’ positions in ▹ \triangleright ▹ . The relative priority of children belonging to the same family may be determined arbitrarily. This condition strengthens Definition 1, which requires priority for initially enrolled children.
As the following theorem shows, even under this strong alignment between daycare priorities and the master list, initial enrollments can make non-wastefulness and fairness by replacement and master list incompatible.
Theorem 6. In the presence of initial enrollments, a matching satisfying both non-wastefulness and fairness by replacement and master list may fail to exist, even when daycare priorities are master-list consistent up to initial enrollments.
Proof. Consider two daycares D = { d 1 , d 2 } D = \{d_1,d_2\} D = { d 1 , d 2 } and four families: f 1 f_1 f 1 with C f 1 = ( c 1 ) C_{f_1} = (c_1) C f 1 = ( c 1 ) , f 2 f_2 f 2 with C f 2 = ( c 2 , c 3 ) C_{f_2} = (c_2,c_3) C f 2 = ( c 2 , c 3 ) , f 3 f_3 f 3 with C f 3 = ( c 4 ) C_{f_3} = (c_4) C f 3 = ( c 4 ) , and f 4 f_4 f 4 with C f 4 = ( c 5 ) C_{f_4} = (c_5) C f 4 = ( c 5 ) . Daycare d 1 d_1 d 1 has capacity one, with child c 4 c_4 c 4 initially enrolled there, whereas d 2 d_2 d 2 has capacity two and is initially empty. The family preferences, daycare priorities, and master list are given by
≻ f 1 : ( c 1 , d 1 ) ≻ f 1 ( c 1 , d 2 ) , ≻ f 2 : { ( c 2 , d 2 ) , ( c 3 , d 2 ) } , ≻ f 3 : ( c 4 , d 2 ) ≻ f 3 ( c 4 , d 1 ) , ≻ f 4 : ( c 5 , d 2 ) . \begin{aligned}
\succ_{f_1}:&\ (c_1,d_1) \succ_{f_1} (c_1,d_2),\\
\succ_{f_2}:&\ \{(c_2,d_2),(c_3,d_2)\},\\
\succ_{f_3}:&\ (c_4,d_2) \succ_{f_3} (c_4,d_1),\\
\succ_{f_4}:&\ (c_5,d_2).
\end{aligned} ≻ f 1 : ≻ f 2 : ≻ f 3 : ≻ f 4 : ( c 1 , d 1 ) ≻ f 1 ( c 1 , d 2 ) , {( c 2 , d 2 ) , ( c 3 , d 2 )} , ( c 4 , d 2 ) ≻ f 3 ( c 4 , d 1 ) , ( c 5 , d 2 ) .
≻ d 1 : c 4 ≻ d 1 c 1 , ≻ d 2 : c 1 ≻ d 2 c 2 ≻ d 2 c 3 ≻ d 2 c 4 ≻ d 2 c 5 , ▹ : f 1 ▹ f 2 ▹ f 3 ▹ f 4 . \begin{aligned}
\succ_{d_1}:&\ c_4 \succ_{d_1} c_1,\\
\succ_{d_2}:&\ c_1 \succ_{d_2} c_2 \succ_{d_2} c_3 \succ_{d_2} c_4 \succ_{d_2} c_5,\\
\triangleright:&\ f_1 \triangleright f_2 \triangleright f_3 \triangleright f_4.
\end{aligned} ≻ d 1 : ≻ d 2 : ▹ : c 4 ≻ d 1 c 1 , c 1 ≻ d 2 c 2 ≻ d 2 c 3 ≻ d 2 c 4 ≻ d 2 c 5 , f 1 ▹ f 2 ▹ f 3 ▹ f 4 .
The daycare priorities are master-list consistent up to initial enrollments. At d 1 d_1 d 1 , the initially enrolled child c 4 c_4 c 4 has the highest priority, while the priorities of all non-incumbent children follow the master list. The priority ordering at d 2 d_2 d 2 also follows the master list.
Individual rationality requires c 4 c_4 c 4 to receive an assignment weakly preferred by f 3 f_3 f 3 to its initial assignment at d 1 d_1 d 1 . Hence, c 4 c_4 c 4 must be assigned either to d 1 d_1 d 1 or to d 2 d_2 d 2 . We consider these two cases.
First, suppose that c 4 c_4 c 4 remains at d 1 d_1 d 1 . Non-wastefulness leaves only the following two possibilities:
X 1 = { ( c 4 , d 1 ) , ( c 1 , d 2 ) , ( c 5 , d 2 ) } and X 2 = { ( c 4 , d 1 ) , ( c 2 , d 2 ) , ( c 3 , d 2 ) } . X_1 = \{(c_4,d_1),(c_1,d_2),(c_5,d_2)\} \qquad\text{and} \qquad X_2 = \{(c_4,d_1),(c_2,d_2),(c_3,d_2)\}. X 1 = {( c 4 , d 1 ) , ( c 1 , d 2 ) , ( c 5 , d 2 )} and X 2 = {( c 4 , d 1 ) , ( c 2 , d 2 ) , ( c 3 , d 2 )} .
At X 1 X_1 X 1 , family f 3 f_3 f 3 has justified envy by replacement and master list through W = { ( c 4 , d 2 ) } W = \{(c_4,d_2)\} W = {( c 4 , d 2 )} . Child c 4 c_4 c 4 can replace c 5 c_5 c 5 at d 2 d_2 d 2 , and f 3 ▹ f 4 f_3 \triangleright f_4 f 3 ▹ f 4 . Hence, X 1 X_1 X 1 is not fair by replacement and master list.
At X 2 X_2 X 2 , family f 1 f_1 f 1 has justified envy by replacement and master list through W = { ( c 1 , d 2 ) } W = \{(c_1,d_2)\} W = {( c 1 , d 2 )} . Child c 1 c_1 c 1 has higher priority at d 2 d_2 d 2 than both children of f 2 f_2 f 2 , and f 1 ▹ f 2 f_1 \triangleright f_2 f 1 ▹ f 2 . Hence, X 2 X_2 X 2 is not fair by replacement and master list.
Next, suppose that c 4 c_4 c 4 is assigned to d 2 d_2 d 2 . It suffices to consider the following two possibilities:
X 3 = { ( c 1 , d 2 ) , ( c 4 , d 2 ) } and X 4 = { ( c 1 , d 1 ) , ( c 4 , d 2 ) , ( c 5 , d 2 ) } . X_3 = \{(c_1,d_2),(c_4,d_2)\} \qquad\text{and} \qquad X_4 = \{(c_1,d_1),(c_4,d_2),(c_5,d_2)\}. X 3 = {( c 1 , d 2 ) , ( c 4 , d 2 )} and X 4 = {( c 1 , d 1 ) , ( c 4 , d 2 ) , ( c 5 , d 2 )} .
Matching X 3 X_3 X 3 is wasteful, since family f 1 f_1 f 1 can move c 1 c_1 c 1 from d 2 d_2 d 2 to its more preferred daycare d 1 d_1 d 1 , which has a vacant seat.
At X 4 X_4 X 4 , family f 2 f_2 f 2 has justified envy by replacement and master list through
W = { ( c 2 , d 2 ) , ( c 3 , d 2 ) } . W = \{(c_2,d_2),(c_3,d_2)\}. W = {( c 2 , d 2 ) , ( c 3 , d 2 )} .
Both children of f 2 f_2 f 2 have higher priority at d 2 d_2 d 2 than c 4 c_4 c 4 and c 5 c_5 c 5 , and f 2 ▹ f 3 f_2 \triangleright f_3 f 2 ▹ f 3 and f 2 ▹ f 4 f_2 \triangleright f_4 f 2 ▹ f 4 . Hence, X 4 X_4 X 4 is not fair by replacement and master list.
Therefore, every individually rational matching is either wasteful or violates fairness by replacement and master list. Hence, a matching satisfying both properties need not exist.
Serial Selection (SS) Algorithm
A natural approach based on a master list is serial dictatorship, in which families are considered according to ▹ \triangleright ▹ and choose their most preferred assignments that can be obtained without changing the assignments of other families. Without initial enrollments, a single pass through the families is sufficient to obtain a non-wasteful outcome even in the presence of siblings.
Theorem 7. In the absence of initial enrollments, the serial dictatorship algorithm terminates after a single round and satisfies both non-wastefulness and fairness by replacement and master list.
Proof. Since there are no initial enrollments, the algorithm starts from the empty matching. Consider a family f f f when it is processed in the first round. All families preceding f f f in the master list have already selected their assignments, whereas no family following f f f has yet been assigned.
Once f f f has selected its most preferred feasible assignment, no family processed later can change the assignment of f f f , since the serial dictatorship algorithm allows an update only if
Y ∖ Y f ′ ∪ W = C h D ( Y ∖ Y f ′ ∪ W ) . Y \setminus Y_{f'} \cup W = Ch_D(Y \setminus Y_{f'} \cup W). Y ∖ Y f ′ ∪ W = C h D ( Y ∖ Y f ′ ∪ W ) .
and hence no contract of another family can be rejected. Moreover, because the matching is initially empty, a family processed later cannot release a seat that was unavailable when f f f was processed. Thus, no new opportunity for f f f can arise later in the round. It follows that no family can improve its assignment in a second round. Hence, the algorithm terminates after a single round. By the termination condition of the algorithm, the resulting matching is non-wasteful.
It remains to show fairness by replacement and master list. Suppose, toward a contradiction, that in the resulting matching Y Y Y , some family f f f has justified envy by replacement and master list through an assignment W W W . Let
Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) \operatorname{Re} = (Y \setminus Y_f \cup W) \setminus Ch_D(Y \setminus Y_f \cup W) Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W )
be the set of contracts rejected by this deviation. By Condition (4) of Definition 11, every family f ′ ∈ F ( Re ) f' \in F(\operatorname{Re}) f ′ ∈ F ( Re ) is ranked below f f f in the master list.
Consider the moment when f f f was processed in the first round. None of the families in F ( Re ) F(\operatorname{Re}) F ( Re ) had yet been processed, and hence none of their contracts in Re \operatorname{Re} Re was present in the matching. By Condition (3) of Definition 11, every newly proposed contract in W ∖ Y f W \setminus Y_f W ∖ Y f replaces a distinct contract in Re \operatorname{Re} Re . Therefore, after removing these lower-ranked contracts, Algorithm 1: Serial Selection (SS) Algorithm
Input: An instance I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) I=(C,F,D,Q,\mathcal{X},\omega,\succ_F,\succ_D) I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) and a master list ▹ \triangleright ▹ over families
Output: A matching Y ⊆ X Y\subseteq\mathcal{X} Y ⊆ X
Initialize Y ← ω Y\leftarrow\omega Y ← ω ;
repeat
c h a n g e d ← f a l s e changed\leftarrow false c han g e d ← f a l se ;
foreach f ∈ F f\in F f ∈ F according to ▹ \triangleright ▹ do
Find f f f ’s most preferred assignment W ≻ f Y f W\succ_f Y_f W ≻ f Y f such that
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) . Y\setminus Y_f\cup W=Ch_D(Y\setminus Y_f\cup W). Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) .
if such an assignment W W W exists then
Y ← Y ∖ Y f ∪ W Y\leftarrow Y\setminus Y_f\cup W Y ← Y ∖ Y f ∪ W ;
c h a n g e d ← t r u e changed\leftarrow true c han g e d ← t r u e ;
end
end
until c h a n g e d changed c han g e d is false;
return Y Y Y ;
W W W could have been accommodated without changing the assignments of any family preceding f f f in the master list. Thus, W W W was available to f f f when f f f was processed.
Since the serial dictatorship algorithm assigns f f f its most preferred available assignment, f f f must receive an assignment weakly preferred to W W W . This contradicts Condition (1), which requires W ≻ f Y f W\succ_f Y_f W ≻ f Y f . Hence, no family has justified envy by replacement and master list, and the resulting matching is fair by replacement and master list.
With initial enrollments, however, a family that changes its assignment may release seats at its initially assigned daycares, creating new opportunities for families considered earlier in the master list. Thus, a single pass of the serial dictatorship algorithm is no longer sufficient to guarantee non-wastefulness.
This motivates the repeated Serial Selection (SS) procedure described in Algorithm 1. The algorithm proceeds in rounds. In each round, families are considered sequentially according to the fixed master list ▹ \triangleright ▹ . Whenever a family can obtain a strictly preferred assignment without changing the assignments of other families, its assignment is immediately updated and its previous contracts are withdrawn. If at least one family changes its assignment during a round, the algorithm starts a new round from the first family in ▹ \triangleright ▹ . The procedure terminates when an entire round is completed without any family changing its assignment.
Although repeated selection addresses the new opportunities created by released seats and guarantees non-wastefulness, it does not restore fairness by replacement and master list. Initial enrollments may create a discrepancy between daycare priorities and the family-level master list: an initially enrolled child has priority over non-incumbent children at its initial daycare even when its family is ranked lower in the master list. As a result, the outcome of the SS algorithm may still violate fairness by replacement and master list.
Theorem 8. The Serial Selection (SS) algorithm terminates after at most ∑ f ∈ F ∣ W f ∣ \sum_{f\in F}|\mathcal{W}_f| ∑ f ∈ F ∣ W f ∣ assignment updates and satisfies non-wastefulness, but does not necessarily satisfy fairness by replacement and master list.
Proof. We first show termination. Each time a family f f f changes its assignment, it moves to an assignment that it strictly prefers to its current assignment. Moreover, an update by f f f does not change the assignment of any other family, because the no-rejection condition
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) Y\setminus Y_f\cup W=Ch_D(Y\setminus Y_f\cup W) Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W )
requires every existing contract of the other families to remain selected. Thus, once a family improves its assignment, it can never subsequently be moved to a less-preferred assignment by another family’s update.
Since family f f f has at most ∣ W f ∣ |\mathcal{W}_f| ∣ W f ∣ possible assignments and each update strictly improves its assignment, f f f can change its assignment at most ∣ W f ∣ − 1 |\mathcal{W}_f|-1 ∣ W f ∣ − 1 times. Hence, the total number of assignment updates is at most
∑ f ∈ F ( ∣ W f ∣ − 1 ) , \sum_{f\in F}(|\mathcal{W}_f|-1), f ∈ F ∑ ( ∣ W f ∣ − 1 ) ,
and the algorithm terminates. We next show non-wastefulness. The algorithm terminates only when an entire round is completed without any family changing its assignment. At termination, therefore, there exists no family f f f and assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f such that
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) . Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W). Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) .
Thus, no family can strictly improve its assignment without changing the assignments of other families. Hence, the resulting matching is non-wasteful.
It remains to show that fairness by replacement and master list is not guaranteed. Consider the instance constructed in the proof of Theorem 6. By that theorem, there exists no matching satisfying both non-wastefulness and fairness by replacement and master list. Since the SS algorithm always returns a non-wasteful matching, its outcome on this instance cannot be fair by replacement and master list. Hence, the SS algorithm does not necessarily satisfy fairness by replacement and master list.
Computational Complexity of Problems Related to FRM
We next examine the computational complexity associated with fairness by replacement and master list. While verifying whether a given matching satisfies this fairness notion can be done in polynomial time, deciding whether there exists a non-wasteful matching satisfying it is NP-complete, and computing such a matching is NP-hard.
Theorem 9. Given an individually rational matching Y Y Y and a strict master list ▹ \triangleright ▹ , whether Y Y Y satisfies fairness by replacement and master list can be verified in O ( ∣ X ∣ ∑ f ∈ F ∣ W f ∣ ) O\left(|\mathcal{X}|\sum_{f\in F}|W_f|\right) O ( ∣ X ∣ ∑ f ∈ F ∣ W f ∣ ) time.
Proof. The proof follows the same argument as Theorem 4. We examine every assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f in the explicitly represented preference ordering of family f f f . For each such W W W , let
Z = ( Y ∖ Y f ) ∪ W Z = (Y \setminus Y_f) \cup W Z = ( Y ∖ Y f ) ∪ W and compute
C h D ( Z ) and Re = Z ∖ C h D ( Z ) . Ch_D(Z) \quad\text{and} \quad\operatorname{Re} = Z \setminus Ch_D(Z). C h D ( Z ) and Re = Z ∖ C h D ( Z ) . As shown in Theorem 4, Conditions (1)–(3) of Definition 11 can be checked in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time.
It remains to check the master-list condition. Store the position of each family in the strict master list ▹ \triangleright ▹ . Then, for every family f ′ ∈ F ( Re ) f' \in F(\operatorname{Re}) f ′ ∈ F ( Re ) , we verify whether f ▹ f ′ f \triangleright f' f ▹ f ′ . Since F ( Re ) F(\operatorname{Re}) F ( Re ) can be obtained while computing the rejected contracts and contains at most ∣ C ∣ |C| ∣ C ∣ families, this additional check takes O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time.
Thus, for each assignment W W W , all conditions for justified envy by replacement and master list can be checked in O ( ∣ X ∣ ) O(|\mathcal{X}|) O ( ∣ X ∣ ) time. Since at most ∣ W f ∣ |W_f| ∣ W f ∣ assignments need to be examined, whether f f f has justified envy by replacement and master list can be determined in O ( ∣ X ∣ ⋅ ∣ W f ∣ ) O(|\mathcal{X}|\cdot|W_f|) O ( ∣ X ∣ ⋅ ∣ W f ∣ ) time.
Finally, to verify whether Y Y Y satisfies fairness by replacement and master list, we perform this check for every family f ∈ F f \in F f ∈ F . Hence, the verification problem can be solved in polynomial time.
Theorem 10. Deciding whether there exists an individually rational matching that is both non-wasteful and fair by replacement and master list is NP-complete, even if
each family has at most two children,
every acceptable assignment places all siblings in the same daycare,
each daycare has capacity at most two, and
daycare priorities are master-list consistent up to initial enrollments.
Consequently, computing such a matching, while correctly reporting when none exists, is NP-hard.
Proof. Inclusion in NP follows from the fact that verifying if a matching is individually rational, non-wasteful, and fair by replacement and master list can be done in polynomial time by Theorems 1 and 9.
We reduce from the problem of deciding whether a complete weakly stable matching exists in the Stable Marriage with Ties and Incomplete Lists (COM-SMTI) problem, which is NP-hard [23 ] . An instance of COM-SMTI consists of two sets
M = { m 1 , … , m n } and W = { w 1 , … , w n } M = \{m_1,\ldots,m_n\} \quad\text{and} \quad W = \{w_1,\ldots,w_n\} M = { m 1 , … , m n } and W = { w 1 , … , w n }
of men and women, respectively. Men have strict preferences over their acceptable women. Women’s preferences are derived from a master list with ties of the form
( m 1 , m 2 ) , ( m 3 , m 4 ) , … , ( m n − 1 , m n ) , (m_1,m_2),(m_3,m_4),\ldots,(m_{n-1},m_n), ( m 1 , m 2 ) , ( m 3 , m 4 ) , … , ( m n − 1 , m n ) ,
Figure 6. Illustration of the reduction from COM-SMTI. Panel (a) shows the gadget G i G_i G i associated with man m i m_i m i ; panel (b) shows the daycare representing a woman with a strict preference list; and panel (c) shows the two-daycare gadget representing a woman whose preference list consists of a tie.
where parentheses indicate ties. Each woman either has a single tie of length two as her preference list or has a strict preference list containing at most one acceptable man from each pair in the master list. The NP-hardness of this restricted version follows from Theorem 3.2 [23 ] , with the roles of men and women interchanged.
Construction. For each man m i ∈ M m_i \in M m i ∈ M , we construct a gadget G i G_i G i based on the “no-instance” in Theorem 6. The gadget contains two daycares, d i , 1 d_{i,1} d i , 1 of capacity one and d i , 2 d_{i,2} d i , 2 of capacity two, and four families
f i , 1 , f i , 2 , f i , 3 , f i , 4 . f_{i,1}, f_{i,2}, f_{i,3}, f_{i,4}. f i , 1 , f i , 2 , f i , 3 , f i , 4 .
Family f i , 2 f_{i,2} f i , 2 represents man m i m_i m i and consists of two children, whereas each of the other three families is a singleton. The child of f i , 3 f_{i,3} f i , 3 is initially enrolled in d i , 1 d_{i,1} d i , 1 .
The preferences within G i G_i G i follow the counterexample in Theorem 6: f i , 1 f_{i,1} f i , 1 prefers d i , 1 d_{i,1} d i , 1 to d i , 2 d_{i,2} d i , 2 , f i , 3 f_{i,3} f i , 3 prefers d i , 2 d_{i,2} d i , 2 to its initial assignment d i , 1 d_{i,1} d i , 1 , and f i , 4 f_{i,4} f i , 4 finds d i , 2 d_{i,2} d i , 2 acceptable. Family f i , 2 f_{i,2} f i , 2 inherits the preference list of m i m_i m i , with each acceptable woman replaced by the corresponding daycare constructed below, followed by d i , 2 d_{i,2} d i , 2 as its least-preferred acceptable assignment. Family f i , 2 f_{i,2} f i , 2 always applies with both children to the same daycare.
For each woman w ∈ W w \in W w ∈ W with a strict preference list, we create a daycare d w d_w d w of capacity two. Its priority ordering is inherited from w w w ’s preference list, with each acceptable man m i m_i m i replaced by the corresponding family f i , 2 f_{i,2} f i , 2 .
For each woman w w w whose preference list consists of a tie ( m i , m i + 1 ) (m_i,m_{i+1}) ( m i , m i + 1 ) , we create two daycares d w d_w d w and d w ′ d'_w d w ′ , each of capacity two. We also introduce two singleton dummy families e w e_w e w and e w ′ e'_w e w ′ . Family e w e_w e w is initially enrolled in d w d_w d w and prefers d w ′ d'_w d w ′ to d w d_w d w , whereas e w ′ e'_w e w ′ is initially enrolled in d w ′ d'_w d w ′ and prefers d w d_w d w to d w ′ d'_w d w ′ . The priority orders are
d w : e w ≻ f i , 2 ≻ e w ′ d_w:\quad e_w \succ f_{i,2} \succ e'_w d w : e w ≻ f i , 2 ≻ e w ′
and
d w ′ : e w ′ ≻ f i + 1 , 2 ≻ e w . d'_w:\ e'_w \succ f_{i+1,2} \succ e_w. d w ′ : e w ′ ≻ f i + 1 , 2 ≻ e w .
In the preference list of f i , 2 f_{i,2} f i , 2 , woman w w w is represented by d w d_w d w , whereas in that of f i + 1 , 2 f_{i+1,2} f i + 1 , 2 she is represented by d w ′ d'_w d w ′ .
Finally, we construct a strict master list ▹ \triangleright ▹ over all families. Break each tie in the COM-SMTI master list arbitrarily to obtain the strict order
m 1 , m 2 , … , m n . m_1,m_2,\ldots,m_n. m 1 , m 2 , … , m n .
For each m i m_i m i , insert the four families of G i G_i G i consecutively as
f i , 1 ▹ f i , 2 ▹ f i , 3 ▹ f i , 4 . f_{i,1} \triangleright f_{i,2} \triangleright f_{i,3} \triangleright f_{i,4}. f i , 1 ▹ f i , 2 ▹ f i , 3 ▹ f i , 4 .
After all gadget families, append the dummy families e w , e w ′ e_w,e'_w e w , e w ′ in an arbitrary order. By construction, every daycare priority list follows ▹ \triangleright ▹ , except that a child initially enrolled at a daycare is moved above all non-incumbent children at that daycare. Hence, all daycare priorities are master-list consistent up to initial enrollments.
The construction is clearly polynomial, every family has size at most two, every daycare has capacity at most two, and every multi-child family applies only to same-daycare assignments.
Completeness. Suppose that the COM-SMTI instance admits a complete weakly stable matching μ \mu μ . We construct a matching X X X in our instance.
Since μ \mu μ is complete, every man m i m_i m i is matched to some woman w w w . We assign the corresponding family f i , 2 f_{i,2} f i , 2 to the daycare representing w w w . If w w w has a strict preference list, both children of f i , 2 f_{i,2} f i , 2 are assigned to d w d_w d w .
Now suppose that w w w has the tied preference list ( m i , m i + 1 ) (m_i,m_{i+1}) ( m i , m i + 1 ) . If μ ( m i ) = w \mu(m_i)=w μ ( m i ) = w , assign f i , 2 f_{i,2} f i , 2 to d w d_w d w and assign both dummy families e w e_w e w and e w ′ e'_w e w ′ to d w ′ d'_w d w ′ . If instead μ ( m i + 1 ) = w \mu(m_{i+1})=w μ ( m i + 1 ) = w , assign f i + 1 , 2 f_{i+1,2} f i + 1 , 2 to d w ′ d'_w d w ′ and both dummy families to d w d_w d w .
For every i i i , family f i , 2 f_{i,2} f i , 2 is now assigned outside G i G_i G i to an assignment it prefers to d i , 2 d_{i,2} d i , 2 . We complete the matching inside G i G_i G i by assigning f i , 1 f_{i,1} f i , 1 to d i , 1 d_{i,1} d i , 1 and assigning both f i , 3 f_{i,3} f i , 3 and f i , 4 f_{i,4} f i , 4 to d i , 2 d_{i,2} d i , 2 .
We show that X X X is non-wasteful and fair by replacement and master list. Within every gadget G i G_i G i , all families other than f i , 2 f_{i,2} f i , 2 receive their most-preferred assignments, while f i , 2 f_{i,2} f i , 2 receives an assignment that it prefers to every assignment inside G i G_i G i . Thus, no relevant deviation arises entirely within G i G_i G i .
Consider next a woman w w w with a tied preference list. One of d w d_w d w and d w ′ d'_w d w ′ is occupied by the two children of the family corresponding to μ ( w ) \mu(w) μ ( w ) , while the other contains the two dummy families. The family corresponding to the other man in the tie cannot replace the two dummy families: it requires both seats, but one of the dummy children is initially enrolled at that daycare and therefore has higher priority than any non-incumbent child. The dummy family that is not at its preferred daycare cannot generate justified envy by replacement and master list either, since the family occupying its preferred daycare precedes it in the master list.
Finally, consider a woman w w w with a strict preference list. The corresponding daycare d w d_w d w is occupied by the family f k , 2 f_{k,2} f k , 2 representing μ ( w ) = m k \mu(w)=m_k μ ( w ) = m k . If another family f i , 2 f_{i,2} f i , 2 could obtain justified envy by replacement and master list at d w d_w d w , then m i m_i m i would prefer w w w to μ ( m i ) \mu(m_i) μ ( m i ) and w w w would prefer m i m_i m i to m k m_k m k . Thus, ( m i , w ) (m_i,w) ( m i , w ) would be a blocking pair of μ \mu μ , contradicting its weak stability.
No family can claim unused seats in the constructed matching by the same case analysis: all improvements available within the gadgets have already been exhausted, and the capacities associated with women are filled as described above. Hence, X X X is both non-wasteful and fair by replacement and master list.
Soundness. Conversely, suppose that the constructed instance admits an individually rational matching X X X satisfying both non-wastefulness and fairness by replacement and master list.
We first establish that every family must be assigned to a daycare representing a woman. Fix i i i and suppose, for contradiction, that f i , 2 f_{i,2} f i , 2 is not assigned to any such daycare. Since f i , 2 f_{i,2} f i , 2 always applies with both children to the same daycare, its only remaining acceptable assignment outside the woman daycares is d i , 2 d_{i,2} d i , 2 ; it may also be unmatched.
Consider the restriction of X X X to the two internal daycares d i , 1 d_{i,1} d i , 1 and d i , 2 d_{i,2} d i , 2 . The only families other than f i , 2 f_{i,2} f i , 2 that find these daycares acceptable are f i , 1 , f i , 3 f_{i,1}, f_{i,3} f i , 1 , f i , 3 , and f i , 4 f_{i,4} f i , 4 . Moreover, none of these three families has an acceptable assignment outside G i G_i G i . Hence, their possible improvements and the priority relations at d i , 1 d_{i,1} d i , 1 and d i , 2 d_{i,2} d i , 2 are exactly the same as in the no-instance of Theorem 6.
If f i , 2 f_{i,2} f i , 2 is not assigned to a daycare representing a woman, then it is either assigned to d i , 2 d_{i,2} d i , 2 or unmatched. In either case, the restriction of X X X to G i G_i G i reproduces the relevant structure of the no-instance in Theorem 6: either f i , 2 f_{i,2} f i , 2 can improve by taking its internal assignment at d i , 2 d_{i,2} d i , 2 , or there exists an unused-seat improvement or justified envy by replacement and master list entirely within G i G_i G i . Such a deviation remains valid in the full matching X X X , contradicting non-wastefulness or fairness by replacement and master list. Therefore, every f i , 2 f_{i,2} f i , 2 must be assigned to a daycare representing a woman.
We next show that these assignments induce a one-to-one matching between the families f i , 2 f_{i,2} f i , 2 and the women. Each family f i , 2 f_{i,2} f i , 2 consists of two children and therefore occupies both seats of any daycare representing a woman to which it is assigned. A woman with a strict preference list corresponds to a single daycare d w d_w d w of capacity two, and hence can accommodate exactly one family of type f i , 2 f_{i,2} f i , 2 .
Now consider a woman w w w with a tied preference list. The two associated daycares d w d_w d w and d w ′ d'_{w} d w ′ have total capacity four. The dummy families e w e_w e w and e w ′ e'_w e w ′ are initially assigned to d w d_w d w and d w ′ d'_w d w ′ , respectively, and each finds only these two daycares acceptable. Individual rationality therefore requires both dummy families to remain assigned to one of these two daycares. Together they occupy two seats, leaving at most two seats for families of type f i , 2 f_{i,2} f i , 2 . Since each such family requires two seats at the same daycare, at most one family f i , 2 f_{i,2} f i , 2 can be assigned to the daycares associated with w w w .
There are n n n families f i , 2 f_{i,2} f i , 2 , and we have shown that every one of them must be assigned to a daycare representing a woman. There are also exactly n n n women, and each woman can accommodate at most one such family. Consequently, every woman must accommodate exactly one family f i , 2 f_{i,2} f i , 2 . We can therefore define a complete matching μ \mu μ in the original COM-SMTI instance by setting
μ ( m i ) = w \mu(m_i)=w μ ( m i ) = w
whenever f i , 2 f_{i,2} f i , 2 is assigned to a daycare associated with w w w .
It remains to show that μ \mu μ is weakly stable. Suppose, for contradiction, that ( m i , w ) (m_i,w) ( m i , w ) is a blocking pair of μ \mu μ . Since a blocking pair under weak stability requires both agents to strictly prefer each other to their current partners, w w w cannot have a preference list consisting of a single tie. Hence, w w w has a strict preference list.
Let μ ( w ) = m k \mu(w)=m_k μ ( w ) = m k . Since ( m i , w ) (m_i,w) ( m i , w ) blocks μ \mu μ , we have
w ≻ m i μ ( m i ) and m i ≻ w m k . w \succ_{m_i} \mu(m_i) \qquad\text{and}\qquad m_i \succ_w m_k. w ≻ m i μ ( m i ) and m i ≻ w m k .
By construction, the first relation implies that f i , 2 f_{i,2} f i , 2 strictly prefers the assignment at d w d_w d w to its current assignment. The second relation implies that both children of f i , 2 f_{i,2} f i , 2 have higher priority at d w d_w d w than the two children of f k , 2 f_{k,2} f k , 2 . Since d w d_w d w has capacity two, assigning f i , 2 f_{i,2} f i , 2 to d w d_w d w therefore rejects both contracts of f k , 2 f_{k,2} f k , 2 .
Moreover, the priority ordering at d w d_w d w follows the family master list. Hence,
m i ≻ w m k ⟹ f i , 2 ▹ f k , 2 . m_i \succ_w m_k \quad\Longrightarrow\quad f_{i,2} \triangleright f_{k,2}. m i ≻ w m k ⟹ f i , 2 ▹ f k , 2 .
Thus, the proposed assignment of f i , 2 f_{i,2} f i , 2 to d w d_w d w satisfies the blocking-coalition, rejection, replacement-only, and master-list conditions of justified envy by replacement and master list. Therefore, f i , 2 f_{i,2} f i , 2 has justified envy by replacement and master list toward f k , 2 f_{k,2} f k , 2 , contradicting the assumption that X X X satisfies FRM.
Hence, μ \mu μ contains no blocking pair and is weakly stable. Since μ \mu μ is also complete, the original COM-SMTI instance admits a complete weakly stable matching.
We conclude that the COM-SMTI instance admits a complete weakly stable matching if and only if the constructed instance admits a matching satisfying both non-wastefulness and fairness by replacement and master list. Hence, the decision problem is NP-hard. □
Resettlement
The impossibility result in Theorem 6 shows that incorporating a master list alone is insufficient to reconcile fairness by replacement with non-wastefulness in the presence of initial enrollments. A key difficulty is that a deviation may displace families from their current assignments, potentially causing them to lose the protection afforded by their initial enrollments.
To address this issue, we introduce the idea of resettlement , which protects the initial entitlements of families displaced by a justified deviation. The key idea is to allow a higher-ranked family to displace lower-ranked families only when the displaced families can be returned to their initial assignments while preserving feasibility. Thus, displacement does not force the affected families to give up the protection provided by their initial enrollments. This leads to a fairness notion that combines a master-list restriction with feasible resettlement.
Definition 12 (Fairness by Master List and Resettlement ). Given an individually rational matching Y Y Y , a new assignment W W W for a family f f f , and a strict master list ▹ \triangleright ▹ over families F F F , family f f f is said to have justified envy by master list and resettlement if the following conditions hold:
(1) blocking coalition: W ≻ f Y f W \succ_f Y_f W ≻ f Y f and W ⊆ C h D ( Y ∖ Y f ∪ W ) W \subseteq Ch_D(Y \setminus Y_f \cup W) W ⊆ C h D ( Y ∖ Y f ∪ W ) .
(2) at least one rejection:
∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣ . |Y \setminus Y_f \cup W| > |Ch_D(Y \setminus Y_f \cup W)|. ∣ Y ∖ Y f ∪ W ∣ > ∣ C h D ( Y ∖ Y f ∪ W ) ∣.
(3) respect for the master list: For every f ′ ∈ F ( R e ) f' \in F(\mathrm{Re}) f ′ ∈ F ( Re ) , we have f ▹ f ′ f \triangleright f' f ▹ f ′ , where
R e = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W ) \mathrm{Re} = (Y \setminus Y_f \cup W) \setminus Ch_D(Y \setminus Y_f \cup W) Re = ( Y ∖ Y f ∪ W ) ∖ C h D ( Y ∖ Y f ∪ W )
is the set of rejected contracts. (4) feasible resettlement: Let F ′ = F ( R e ) F' = F(\mathrm{Re}) F ′ = F ( Re ) . The matching Y ∖ ( Y f ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) Y \setminus(Y_f \cup Y_{F'}) \cup(W \cup\omega_{F'}) Y ∖ ( Y f ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) is feasible.
An individually rational matching is said to be fair by master list and resettlement if no family has justified envy by master list and resettlement.
Compared with fairness in Definition 7, fairness by master list and resettlement imposes two additional requirements on justified envy. Condition (3) requires the envying family f f f to be ranked above every family whose contract is rejected as a result of the deviation. Condition (4) protects these rejected families through resettlement. Letting F ′ = F ( R e ) F' = F(\mathrm{Re}) F ′ = F ( Re ) , we remove the current assignments of f f f and the rejected families F ′ F' F ′ , assign f f f to W W W , and return every family in F ′ F' F ′ to its initial assignment. The resulting matching Y ∖ ( Y f ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) Y \setminus(Y_f \cup Y_{F'}) \cup(W \cup\omega_{F'}) Y ∖ ( Y f ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) is required to be feasible.
Greedy Improvement (GI) Algorithm
We next introduce the Greedy Improvement (GI) algorithm, which repeatedly allows families to improve their assignments either without displacing other families or through justified envy by master list and resettlement. Let
f 1 ▹ f 2 ▹ ⋯ ▹ f m f_1 \triangleright f_2 \triangleright\cdots\triangleright f_m f 1 ▹ f 2 ▹ ⋯ ▹ f m
be a strict master list over families. The algorithm starts from the initial matching Y = ω Y = \omega Y = ω and examines families according to the master list. For each family f i f_i f i , it searches for a strictly preferred assignment W W W that can be obtained in one of two ways. First, f i f_i f i may improve without displacing any other family. Second, f i f_i f i may exercise justified envy by master list and resettlement; in this case, f i f_i f i is assigned to W W W , while all rejected families F ′ = F ( R e ) F' = F(\mathrm{Re}) F ′ = F ( Re ) are returned to their initial assignments ω F ′ \omega_{F'} ω F ′ .
Whenever either type of improvement is implemented, the algorithm immediately restarts the scan from the highest-ranked family f 1 f_1 f 1 . If no such improvement is available to f i f_i f i , the algorithm proceeds to f i + 1 f_{i+1} f i + 1 . The procedure terminates after a complete scan of the master list in which no family can improve.
The GI algorithm follows a repeated-improvement structure similar to the SS algorithm, but differs from it in two important respects. First, SS allows a family to improve only without changing the assignments of other families, whereas GI additionally permits improvements through justified envy by master list and resettlement. Such an improvement may displace lower-ranked families, which are then returned to their initial assignments. Second, after each improvement, GI immediately restarts the scan from the highest-ranked family. This restart is necessary because resettlement may change the assignments of multiple families and thereby create new improvement opportunities for families examined earlier in the master list.
The following theorem establishes that the GI algorithm restores compatibility between non-wastefulness and fairness by master list and resettlement.
Theorem 11. Given any strict master list ▹ \triangleright ▹ , the Greedy Improvement (GI) algorithm terminates and returns an individually rational matching that satisfies both non-wastefulness and fairness by master list and resettlement.
Proof. We first show that feasibility and individual rationality are preserved throughout the algorithm.
Initially, Y = ω Y = \omega Y = ω , which is feasible and individually rational. Suppose first that f i f_i f i improves through an assignment W W W without displacing another family. By the update condition,
Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) , Y \setminus Y_{f_i} \cup W = Ch_D(Y \setminus Y_{f_i} \cup W), Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) ,
so the updated matching is feasible. Family f i f_i f i strictly improves, while the assignments of all other families remain unchanged. Hence, individual rationality is preserved.
Suppose instead that f i f_i f i has justified envy by master list and resettlement through W W W , and let F ′ = F ( R e ) F' = F(\mathrm{Re}) F ′ = F ( Re ) . By Condition (4) of Definition 12, the updated matching
Y ∖ ( Y f i ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) Y \setminus(Y_{f_i} \cup Y_{F'}) \cup(W \cup\omega_{F'}) Y ∖ ( Y f i ∪ Y F ′ ) ∪ ( W ∪ ω F ′ )
is feasible. Family f i f_i f i strictly improves, every family in F ′ F' F ′ returns to its initial assignment, and the assignments of all other families remain unchanged. Since the matching before the update is individually rational, and an initial assignment is individually rational for its family, individual rationality is again preserved.
Algorithm 2: Greedy Improvement (GI) Algorithm
Input: An instance I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) I = (C, F, D, Q, \mathcal{X}, \omega, \succ_F, \succ_D) I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) and a strict master list f 1 ▹ f 2 ▹ ⋯ ▹ f m f_1 \triangleright f_2 \triangleright\cdots\triangleright f_m f 1 ▹ f 2 ▹ ⋯ ▹ f m
Output: A matching Y Y Y
Initialize Y ← ω Y \leftarrow\omega Y ← ω and i ← 1 i \leftarrow1 i ← 1 ;
while i ≤ m i \le m i ≤ m do
Let f i f_i f i be the family currently examined;
Find the most preferred assignment W ≻ f i Y f i W \succ_{f_i} Y_{f_i} W ≻ f i Y f i such that either
Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) , Y \setminus Y_{f_i} \cup W = Ch_D(Y \setminus Y_{f_i} \cup W), Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) ,
or f i f_i f i has justified envy by master list and resettlement through W W W ;
if such an assignment W W W exists then
if Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) Y \setminus Y_{f_i} \cup W = Ch_D(Y \setminus Y_{f_i} \cup W) Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) then
Y ← Y ∖ Y f i ∪ W Y \leftarrow Y \setminus Y_{f_i} \cup W Y ← Y ∖ Y f i ∪ W ;
else
Let
Re = ( Y ∖ Y f i ∪ W ) ∖ C h D ( Y ∖ Y f i ∪ W ) \operatorname{Re} = (Y \setminus Y_{f_i} \cup W) \setminus Ch_D(Y \setminus Y_{f_i} \cup W) Re = ( Y ∖ Y f i ∪ W ) ∖ C h D ( Y ∖ Y f i ∪ W )
and F ′ = F ( Re ) F' = F(\operatorname{Re}) F ′ = F ( Re ) ;
Y ← Y ∖ ( Y f i ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) Y \leftarrow Y \setminus(Y_{f_i} \cup Y_{F'}) \cup(W \cup\omega_{F'}) Y ← Y ∖ ( Y f i ∪ Y F ′ ) ∪ ( W ∪ ω F ′ ) ;
end
i ← 1 i \leftarrow1 i ← 1 ;
else
i ← i + 1 i \leftarrow i + 1 i ← i + 1 ;
end
end
return Y Y Y ;
We next show termination. Consider the assignment profile
( Y f 1 , Y f 2 , … , Y f m ) , (Y_{f_1}, Y_{f_2}, \ldots, Y_{f_m}), ( Y f 1 , Y f 2 , … , Y f m ) ,
where f 1 ▹ f 2 ▹ ⋯ ▹ f m f_1 \triangleright f_2 \triangleright\cdots\triangleright f_m f 1 ▹ f 2 ▹ ⋯ ▹ f m , and compare assignment profiles lexicographically according to the families’ preferences and the master list. That is, among two distinct profiles, consider the highest-ranked family whose assignments differ; the profile giving that family its more preferred assignment is ranked higher.
If f i f_i f i improves without displacement, the assignments of f 1 , … , f i − 1 f_1, \ldots, f_{i-1} f 1 , … , f i − 1 remain unchanged, while f i f_i f i strictly improves. Hence, the assignment profile strictly increases in the lexicographic order.
If f i f_i f i improves through justified envy by master list and resettlement, Condition (3) of Definition 12 implies that every family in F ′ = F ( Re ) F' = F(\operatorname{Re}) F ′ = F ( Re ) is ranked below f i f_i f i in the master list. Thus, the assignments of f 1 , … , f i − 1 f_1, \ldots, f_{i-1} f 1 , … , f i − 1 remain unchanged, f i f_i f i strictly improves, and only families ranked below f i f_i f i may be resettled. Hence, the assignment profile again strictly increases in the lexicographic order.
Since every family has finitely many possible assignments, there are only finitely many assignment profiles. Therefore, the GI algorithm must terminate.
It remains to establish non-wastefulness and fairness by master list and resettlement. When the algorithm terminates, it has completed a scan of all families without performing an update.
Suppose, toward a contradiction, that the final matching Y Y Y is wasteful. Then there exist a family f i f_i f i and an assignment W ≻ f i Y f i W \succ_{f_i} Y_{f_i} W ≻ f i Y f i such that
Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) . Y \setminus Y_{f_i} \cup W = Ch_D(Y \setminus Y_{f_i} \cup W). Y ∖ Y f i ∪ W = C h D ( Y ∖ Y f i ∪ W ) .
When f i f_i f i was examined during the final scan, this improvement would have triggered an update, contradicting termination. Hence, Y Y Y is non-wasteful.
Similarly, suppose that Y Y Y is not fair by master list and resettlement. Then some family f i f_i f i has justified envy by master list and resettlement through an assignment W ≻ f i Y f i W \succ_{f_i} Y_{f_i} W ≻ f i Y f i . When f i f_i f i was examined during the final scan, this improvement would also have triggered an update, again contradicting termination. Hence, Y Y Y is fair by master list and resettlement.
Therefore, the GI algorithm terminates at an individually rational matching that satisfies both non-wastefulness and fairness by master list and resettlement.
Algorithm 2 is guaranteed to terminate, but the number of updates need not be polynomially bounded. Although each individual improvement can be identified and implemented in polynomial time, resettlement may return lower-ranked families to their initial assignments, allowing them to improve again later. The lexicographic potential argument therefore guarantees finite termination but not a polynomial running time. This is consistent with the PLS-hardness result for computing a matching satisfying non-wastefulness and fairness by master list and resettlement established below.
Computational Complexity of Problems Related to FMR
Theorem 11 establishes existence by a finite improvement process. We now show that finding such an outcome is PLS-hard, even under a strong alignment between daycare priorities and the family master list. Throughout this subsection, the complete individually rational part of every family preference list is explicitly given in the input: for every family f f f , all assignments W ⪰ f ω f W \succeq_f \omega_f W ⪰ f ω f are listed in strictly decreasing order, and every listed assignment specifies the contract, or non-assignment, of every child in C f C_f C f .
For a feasible and individually rational matching Y Y Y , a family f f f , and an alternative assignment W W W , write
Z ( Y , f , W ) : = Y ∖ Y f ∪ W , Re ( Y , f , W ) : = Z ( Y , f , W ) ∖ Ch D ( Z ( Y , f , W ) ) . Z(Y,f,W) := Y \setminus Y_f \cup W,\qquad\operatorname{Re}(Y,f,W) := Z(Y,f,W) \setminus\operatorname{Ch}_D\bigl(Z(Y,f,W)\bigr). Z ( Y , f , W ) := Y ∖ Y f ∪ W , Re ( Y , f , W ) := Z ( Y , f , W ) ∖ Ch D ( Z ( Y , f , W ) ) .
Thus, if W ≻ f Y f W \succ_f Y_f W ≻ f Y f and Re ( Y , f , W ) = ∅ \operatorname{Re}(Y,f,W)=\varnothing Re ( Y , f , W ) = ∅ , then f f f can improve by utilizing vacant seats. If Re ( Y , f , W ) ≠ ∅ \operatorname{Re}(Y,f,W)\ne\varnothing Re ( Y , f , W ) = ∅ and the remaining conditions of Definition 12 hold, then ( f , W ) (f,W) ( f , W ) is an FMR improvement. Hence a matching is non-wasteful and fair by master list and resettlement exactly when neither type of improvement exists.
Source Problem
We reduce from LOCALLEXMAX-4-SAT, which is PLS-complete [44 ] . An instance consists of an ordered CNF formula
φ = C 1 ∧ ⋯ ∧ C m , 1 ≤ ∣ C i ∣ ≤ 4 , \varphi= C_1 \land\cdots\land C_m,\qquad1\le|C_i|\le4, φ = C 1 ∧ ⋯ ∧ C m , 1 ≤ ∣ C i ∣ ≤ 4 ,
where the clauses are ordered by significance, with C 1 C_1 C 1 being the most significant clause.
For a truth assignment α \alpha α , let
α ( C i ) = { 1 , if C i is satisfied under α , 0 , otherwise, \alpha(C_i)=
\begin{cases}
1, & \text{if } C_i \text{ is satisfied under } \alpha,\\
0, & \text{otherwise,}
\end{cases} α ( C i ) = { 1 , 0 , if C i is satisfied under α , otherwise,
and define its value by the clause-satisfaction vector
val ( α ) = ( α ( C 1 ) , … , α ( C m ) ) . \operatorname{val}(\alpha)=\bigl(\alpha(C_1),\ldots,\alpha(C_m)\bigr). val ( α ) = ( α ( C 1 ) , … , α ( C m ) ) .
These vectors are compared lexicographically. Thus, between two truth assignments, the preferred one is determined by the first clause on which their satisfaction statuses differ: satisfying an earlier clause is more important than the satisfaction statuses of all later clauses.
The neighborhood of a truth assignment consists of the assignments obtained by flipping a single variable. The objective of LOCALLEXMAX-4-SAT is to find a locally optimal truth assignment α \alpha α , i.e., one for which no single-variable flip produces an assignment α ′ \alpha' α ′ satisfying
val ( α ′ ) ≻ l e x val ( α ) . \operatorname{val}(\alpha') \succ_{\mathrm{lex}} \operatorname{val}(\alpha). val ( α ′ ) ≻ lex val ( α ) .
In particular, the problem is not to find an assignment satisfying all clauses; a locally optimal assignment may leave some clauses unsatisfied.
We may assume without loss of generality that no clause is tautological and that no variable occurs more than once in a clause. For x ∈ var ( C i ) x\in\operatorname{var}(C_i) x ∈ var ( C i ) , let ℓ i , x \ell_{i,x} ℓ i , x denote the literal of x x x in C i C_i C i , and let
ℓ i , x ( b ) ∈ { 0 , 1 } \ell_{i,x}(b)\in\{0,1\} ℓ i , x ( b ) ∈ { 0 , 1 }
denote the truth value of this literal when x = b x=b x = b . Define
k i : = ∣ C i ∣ , Δ : = max x occ ( x ) , k_i:=|C_i|,\qquad\Delta:=\max_x\operatorname{occ}(x), k i := ∣ C i ∣ , Δ := x max occ ( x ) ,
where occ ( x ) \operatorname{occ}(x) occ ( x ) is the number of clauses containing either x x x or ¬ x \neg x ¬ x .
An occurrence τ = ( i , x ) \tau=(i,x) τ = ( i , x ) with x ∈ var ( C i ) x\in\operatorname{var}(C_i) x ∈ var ( C i ) is called admissible if no earlier singleton clause contains x x x . Let
A = { ( i , x ) : ( i , x ) is admissible } , \mathcal{A}=\{(i,x):(i,x)\text{ is admissible}\}, A = {( i , x ) : ( i , x ) is admissible } ,
and, for each τ = ( i , x ) ∈ A \tau=(i,x)\in\mathcal{A} τ = ( i , x ) ∈ A , let
b τ ∈ { 0 , 1 } be defined by ℓ i , x ( b τ ) = 0. b_\tau\in\{0,1\}\qquad\text{be defined by}\qquad\ell_{i,x}(b_\tau)=0. b τ ∈ { 0 , 1 } be defined by ℓ i , x ( b τ ) = 0.
Thus, b τ b_{\tau} b τ is the value of x x x for which its literal in C i C_i C i is false. Finally, define
H τ = { h < i : x ∈ var ( C h ) } , J τ = { j > i : x ∈ var ( C j ) } . H_{\tau} = \{h < i : x \in\operatorname{var}(C_h)\}, \qquad J_{\tau} = \{j > i : x \in\operatorname{var}(C_j)\}. H τ = { h < i : x ∈ var ( C h )} , J τ = { j > i : x ∈ var ( C j )} .
Hence, H τ H_{\tau} H τ contains the more significant clauses involving x x x , whereas J τ J_{\tau} J τ contains the less significant ones.
For an admissible occurrence τ = ( i , y ) \tau= (i,y) τ = ( i , y ) , we call y y y the pivot variable . The transition associated with τ \tau τ represents a candidate local move that flips y y y , with C i C_i C i being the first clause whose truth value improves.
Construction
Overview. For every variable x x x , we create a variable family V x V_x V x , whose assignment encodes the truth value of x x x . For every clause C i C_i C i , we create a clause family F i F_i F i , whose assignment represents the status of C i C_i C i and is also used to implement candidate local improvements. The strict master list over families is
F 1 ▹ F 2 ▹ ⋯ ▹ F m ▹ ( V x : x is a variable ) , F_1 \triangleright F_2 \triangleright\cdots\triangleright F_m \triangleright(V_x : x\text{ is a variable}), F 1 ▹ F 2 ▹ ⋯ ▹ F m ▹ ( V x : x is a variable ) ,
where the variable families are placed in an arbitrary strict order.
Figure 7 summarizes the correspondence between logical objects and the families, children, and daycares used in the reduction.
Figure 7. Illustration of the construction. Panel (a) shows the children of a variable family V x V_x V x and the daycares involved in its initial and truth-value assignments. Panel (b) shows the satisfied assignment S i S_i S i and a transition assignment T τ T_\tau T τ of a clause family F i F_i F i .
Daycares. We create the following daycares before defining any family assignment.
(D1) Create one global transition daycare q q q with Q q = 1 Q_q = 1 Q q = 1 , which ensures that at most one transition assignment can be active at a time.
(D2) For every clause C i C_i C i , create a clause daycare d i d_i d i with Q d i = k i Q_{d_i} = k_i Q d i = k i and a marker daycare m i m_i m i with Q m i = 1 Q_{m_i} = 1 Q m i = 1 . The former indicates whether C i C_i C i is satisfied, while the latter controls the assignment of the corresponding clause family F i F_i F i .
(D3) For every admissible τ = ( i , x ) \tau= (i,x) τ = ( i , x ) with k i ≥ 2 k_i \ge2 k i ≥ 2 , create a pivot-test daycare p τ p_{\tau} p τ with Q p τ = k i − 1 Q_{p_{\tau}} = k_i - 1 Q p τ = k i − 1 . It checks whether all literals of C i C_i C i other than the pivot literal ℓ i , x \ell_{i,x} ℓ i , x are false.
(D4) For every admissible τ = ( i , x ) \tau= (i,x) τ = ( i , x ) and every h ∈ H τ h \in H_{\tau} h ∈ H τ , create a preservation-test daycare e τ , h e_{\tau,h} e τ , h with Q e τ , h = k h − 1 Q_{e_{\tau,h}} = k_h - 1 Q e τ , h = k h − 1 . Admissibility guarantees k h ≥ 2 k_h \ge2 k h ≥ 2 . It checks whether the earlier clause C h C_h C h can remain satisfied when x x x is flipped.
(D5) For every variable x x x , create three private state daycares o x o_x o x , z x z_x z x , r x r_x r x , each of capacity one. They encode and control the state of the variable family V x V_x V x .
(D6) Every blocker child introduced below has a private capacity-one parking daycare. These are denoted by d ˉ x , i \bar{d}_{x,i} d ˉ x , i , p ˉ x , τ \bar{p}_{x,\tau} p ˉ x , τ , and e ˉ x , τ , h \bar{e}_{x,\tau,h} e ˉ x , τ , h , according to the corresponding shared daycare from which the child may withdraw.
We refer to d i d_i d i , p τ p_{\tau} p τ , and e τ , h e_{\tau,h} e τ , h as shared daycares , since they may simultaneously contain blocker children from different variable families and contracts belonging to clause families. In contrast, each parking daycare is private to a single blocker child.
The priority list of every daycare follows the family master list ▹ \triangleright ▹ , except that initially enrolled children are moved above all non-incumbent children at that daycare. Therefore, all daycare priorities are master-list consistent up to initial enrollments.
Variable families. For every variable x x x , the family V x V_x V x contains one state child s x s_x s x and several types of blocker children . The state child records the truth-value state of x x x , while the blocker children translate the truth values of literals involving x x x into occupancies of the corresponding shared daycares. All blocker children are initially enrolled at their corresponding shared daycares. Formally, the blocker children of V x V_x V x are defined as follows.
(V1) For every clause C i C_i C i containing x x x , create a clause-blocker child a x , i a_{x,i} a x , i , initially enrolled at d i d_i d i , with private parking daycare d ˉ x , i \bar{d}_{x,i} d ˉ x , i . Its role is to encode the truth value of the literal ℓ i , x \ell_{i,x} ℓ i , x : it occupies d i d_i d i when ℓ i , x \ell_{i,x} ℓ i , x is false and moves to its private parking daycare when ℓ i , x \ell_{i,x} ℓ i , x is true. Consequently, the number of clause blockers occupying d i d_i d i equals the number of false literals in C i C_i C i .
(V2) For every admissible occurrence τ = ( i , y ) \tau= (i,y) τ = ( i , y ) such that x ≠ y x \ne y x = y and x x x appears in C i C_i C i , create a pivot-blocker child p x , τ p_{x,\tau} p x , τ , initially enrolled at p τ p_{\tau} p τ , with private parking daycare p ˉ x , τ \bar{p}_{x,\tau} p ˉ x , τ . Here y y y is the pivot variable to be flipped, while x x x corresponds to one of the other literals of C i C_i C i . The child occupies p τ p_{\tau} p τ exactly when ℓ i , x \ell_{i,x} ℓ i , x is true. Thus, the absence of all pivot blockers from p τ p_{\tau} p τ indicates that all literals of C i C_i C i other than the pivot literal ℓ i , y \ell_{i,y} ℓ i , y are false.
(V3) For every admissible occurrence τ = ( i , y ) \tau= (i,y) τ = ( i , y ) , every earlier clause C h C_h C h with h ∈ H τ h \in H_{\tau} h ∈ H τ , and every variable x ≠ y x \ne y x = y appearing in C h C_h C h , create a preservation-blocker child e x , τ , h e_{x,\tau,h} e x , τ , h , initially enrolled at e τ , h e_{\tau,h} e τ , h , with private parking daycare e ˉ x , τ , h \bar{e}_{x,\tau,h} e ˉ x , τ , h . Its role is to determine whether C h C_h C h has a true literal other than its y y y -literal. The child e x , τ , h e_{x,\tau,h} e x , τ , h occupies e τ , h e_{\tau,h} e τ , h exactly when ℓ h , x \ell_{h,x} ℓ h , x is false. Hence, if at least one preservation blocker is absent from e τ , h e_{\tau,h} e τ , h , then C h C_h C h has another true literal and can remain satisfied when y y y is flipped.
The state child s x s_x s x is initially enrolled at o x o_x o x . Under the two truth-value assignments defined below, it is assigned to z x z_x z x when x = 0 x = 0 x = 0 and to r x r_x r x when x = 1 x = 1 x = 1 . Thus, the initial assignment ω V x \omega_{V_x} ω V x keeps s x s_x s x at o x o_x o x and every blocker child at its initial shared daycare.
For b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } , the assignment A x b A_x^b A x b represents the truth value x = b x = b x = b and simultaneously assigns all children of V x V_x V x as follows:
s x ↦ { z x , b = 0 , r x , b = 1 ; s_x \mapsto
\begin{cases}
z_x, & b = 0,\\
r_x, & b = 1;
\end{cases} s x ↦ { z x , r x , b = 0 , b = 1 ;
a x , i ↦ { d i , ℓ i , x ( b ) = 0 , d ˉ x , i , ℓ i , x ( b ) = 1 ; p x , τ ↦ { p τ , ℓ i , x ( b ) = 1 , τ = ( i , y ) , p ˉ x , τ , ℓ i , x ( b ) = 0 ; e x , τ , h ↦ { e τ , h , ℓ h , x ( b ) = 0 , e ˉ x , τ , h , ℓ h , x ( b ) = 1. \begin{aligned}
a_{x,i} &\mapsto\begin{cases} d_i, & \ell_{i,x}(b)=0, \\ \bar{d}_{x,i}, & \ell_{i,x}(b)=1; \end{cases}\\
p_{x,\tau} &\mapsto\begin{cases} p_\tau, & \ell_{i,x}(b)=1,\ \tau=(i,y), \\ \bar{p}_{x,\tau}, & \ell_{i,x}(b)=0; \end{cases}\\
e_{x,\tau,h} &\mapsto\begin{cases} e_{\tau,h}, & \ell_{h,x}(b)=0, \\ \bar{e}_{x,\tau,h}, & \ell_{h,x}(b)=1. \end{cases}
\end{aligned} a x , i p x , τ e x , τ , h ↦ { d i , d ˉ x , i , ℓ i , x ( b ) = 0 , ℓ i , x ( b ) = 1 ; ↦ { p τ , p ˉ x , τ , ℓ i , x ( b ) = 1 , τ = ( i , y ) , ℓ i , x ( b ) = 0 ; ↦ { e τ , h , e ˉ x , τ , h , ℓ h , x ( b ) = 0 , ℓ h , x ( b ) = 1.
Thus, a single joint assignment A x b A_x^b A x b simultaneously records the truth value of x x x and updates every gadget involving x x x : clause blockers encode false literals, pivot blockers encode true non-pivot literals, and preservation blockers encode false non-pivot literals of earlier clauses. The preference ordering of V x V_x V x is
A x 1 ≻ V x A x 0 ≻ V x ω V x . A_x^1 \succ_{V_x} A_x^0 \succ_{V_x} \omega_{V_x}. A x 1 ≻ V x A x 0 ≻ V x ω V x .
Clause families. For every clause C i C_i C i , the family F i F_i F i has no initial assignment, i.e., ω F i = ∅ \omega_{F_i}=\varnothing ω F i = ∅ . It contains two types of children: two satisfied-assignment children , which are used when C i C_i C i is represented as satisfied, and a separate collection of transition children for each admissible occurrence τ = ( i , x ) \tau=(i,x) τ = ( i , x ) , which are used to represent a candidate local move obtained by flipping the pivot variable x x x .
Satisfied-assignment children. The family F i F_i F i has exactly two satisfied-assignment children, u i d u_i^d u i d and u i m u_i^m u i m . Their joint assignment is
S i : = { ( u i d , d i ) , ( u i m , m i ) } . S_i:=\{(u_i^d,d_i),(u_i^m,m_i)\}. S i := {( u i d , d i ) , ( u i m , m i )} .
The child u i d u_i^d u i d occupies one seat at the clause daycare d i d_i d i , while the child u i m u_i^m u i m occupies the marker daycare m i m_i m i .
Under the truth-value assignments of the variable families, d i d_i d i contains exactly one clause blocker for every false literal of C i C_i C i . Since Q d i = k i Q_{d_i}=k_i Q d i = k i , the contract ( u i d , d i ) (u_i^d,d_i) ( u i d , d i ) can be accommodated exactly when at most k i − 1 k_i-1 k i − 1 literals of C i C_i C i are false. Hence, S i S_i S i is feasible exactly when C i C_i C i is satisfied.
Transition children. Fix an admissible occurrence τ = ( i , x ) \tau=(i,x) τ = ( i , x ) , where x x x is the pivot variable to be flipped. For this τ \tau τ , create a distinct collection of transition children consisting of:
(T1) one global-transition child t τ q t_\tau^q t τ q , assigned to q q q . Its role is to ensure that at most one transition assignment can be active at a time;
(T2) one marker child t τ , j m t_{\tau,j}^m t τ , j m for every j ∈ J τ j\in J_\tau j ∈ J τ , assigned to m j m_j m j . Thus, there are ∣ J τ ∣ |J_\tau| ∣ J τ ∣ such children. Their role is to prevent the less significant clause families F j F_j F j affected by the flip of x x x from simultaneously using their satisfied assignments S j S_j S j ;
(T3) k i − 1 k_i-1 k i − 1 pivot-test children t τ , a p t_{\tau,a}^p t τ , a p , a ∈ [ k i − 1 ] a\in[k_i-1] a ∈ [ k i − 1 ] , all assigned to p τ p_\tau p τ . Their role is to test whether all literals of C i C_i C i other than the pivot literal ℓ i , x \ell_{i,x} ℓ i , x are false. This part is omitted when k i = 1 k_i=1 k i = 1 ;
(T4) one preservation-test child t τ , h e t_{\tau,h}^e t τ , h e for every h ∈ H τ h\in H_\tau h ∈ H τ , assigned to e τ , h e_{\tau,h} e τ , h . Thus, there are ∣ H τ ∣ |H_\tau| ∣ H τ ∣ such children. Their role is to test whether every more significant clause C h C_h C h containing x x x has another true literal and can therefore remain satisfied after x x x is flipped;
(T5) when b τ = 1 b_\tau=1 b τ = 1 , one additional reset child t τ r t_\tau^r t τ r , assigned to r x r_x r x . Its role is to interact with the state child of V x V_x V x so that V x V_x V x can be reset through resettlement. No reset child is created when b τ = 0 b_\tau=0 b τ = 0 .
Thus, for a fixed admissible τ = ( i , x ) \tau=(i,x) τ = ( i , x ) , the transition assignment contains
1 + ∣ J τ ∣ + ( k i − 1 ) + ∣ H τ ∣ + 1 [ b τ = 1 ] 1+|J_\tau|+(k_i-1)+|H_\tau|+\mathbf{1}[b_\tau=1] 1 + ∣ J τ ∣ + ( k i − 1 ) + ∣ H τ ∣ + 1 [ b τ = 1 ]
children, where the term k i − 1 k_i-1 k i − 1 is zero when k i = 1 k_i=1 k i = 1 . These children form the joint assignment
T τ : = { ( t τ q , q ) } ∪ { ( t τ , j m , m j ) : j ∈ J τ } ∪ { ( t τ , a p , p τ ) : a ∈ [ k i − 1 ] } ∪ { ( t τ , h e , e τ , h ) : h ∈ H τ } ∪ { { ( t τ r , r x ) } , b τ = 1 , ∅ , b τ = 0. (1) \begin{aligned}
T_\tau:= {}&\{(t_\tau^q,q)\}\cup\{(t_{\tau,j}^m,m_j):j\in J_\tau\}\\
&\cup\{(t_{\tau,a}^p,p_\tau):a\in[k_i-1]\}\cup\{(t_{\tau,h}^e,e_{\tau,h}):h\in H_\tau\}\\
&\cup\begin{cases}
\{(t_\tau^r,r_x)\}, & b_\tau=1,\\
\varnothing, & b_\tau=0.
\end{cases} \tag*{(1)}
\end{aligned} T τ := {( t τ q , q )} ∪ {( t τ , j m , m j ) : j ∈ J τ } ∪ {( t τ , a p , p τ ) : a ∈ [ k i − 1 ]} ∪ {( t τ , h e , e τ , h ) : h ∈ H τ } ∪ { {( t τ r , r x )} , ∅ , b τ = 1 , b τ = 0. (1)
where the pivot-test part is omitted when k i = 1 k_i=1 k i = 1 .
The assignment T τ T_\tau T τ represents a candidate local improvement in which x x x is flipped and C i C_i C i is the first clause whose truth value improves. Transition children belonging to transition assignments other than the assignment currently chosen by F i F_i F i are unmatched.
The preference ordering of F i F_i F i is
S i ≻ F i ( T τ : τ = ( i , x ) ∈ A ) ≻ F i ∅ , S_i \succ_{F_i} (T_\tau:\tau=(i,x)\in\mathcal{A}) \succ_{F_i} \varnothing, S i ≻ F i ( T τ : τ = ( i , x ) ∈ A ) ≻ F i ∅ ,
where the transition assignments are placed in an arbitrary strict order.
Correctness
The initial matching is feasible. For every clause C i C_i C i , the clause daycare d i d_i d i initially contains exactly one clause-blocker incumbent for each literal of C i C_i C i , and hence exactly k i k_i k i incumbents, matching its capacity Q d i = k i Q_{d_i}=k_i Q d i = k i . For every admissible τ = ( i , x ) \tau=(i,x) τ = ( i , x ) , the pivot-test daycare p τ p_\tau p τ contains exactly one pivot-blocker incumbent for each non-pivot literal of C i C_i C i , and hence exactly k i − 1 k_i-1 k i − 1 incumbents, matching Q p τ = k i − 1 Q_{p_\tau}=k_i-1 Q p τ = k i − 1 . Similarly, for every h ∈ H τ h\in H_\tau h ∈ H τ , the preservation-test daycare e τ , h e_{\tau,h} e τ , h contains exactly one preservation-blocker incumbent for each literal of C h C_h C h other than the pivot literal, and hence exactly k h − 1 k_h-1 k h − 1 incumbents, matching Q e τ , h = k h − 1 Q_{e_{\tau,h}}=k_h-1 Q e τ , h = k h − 1 . Finally, each state child s x s_x s x is initially enrolled alone at o x o_x o x , whose capacity is one. All other daycares are initially empty. Therefore, the initial matching is feasible.
Call a feasible and individually rational matching terminal if it admits neither a non-wastefulness improvement nor an FMR improvement. We first characterize the structure of terminal matchings. The next lemma shows that every variable family must encode a Boolean value, while a transition assignment cannot persist in a terminal matching.
Lemma 1. In every terminal matching, each variable family V x V_x V x is assigned either A x 0 A_x^0 A x 0 or A x 1 A_x^1 A x 1 , and no clause family is assigned a transition assignment.
Proof. We first show that every variable family in a terminal matching must encode a Boolean value. Suppose that V x V_x V x is assigned ω V x \omega_{V_x} ω V x . Moving from ω V x \omega_{V_x} ω V x to A x 0 A_x^0 A x 0 moves the state child s x s_x s x from o x o_x o x to the private state daycare z x z_x z x and moves some blocker children from their initially enrolled shared daycares to their private parking daycares. No new contract is added to any shared daycare. Hence
Re ( Y , V x , A x 0 ) = ∅ . \operatorname{Re}(Y,V_x,A_x^0)=\varnothing. Re ( Y , V x , A x 0 ) = ∅ .
Since A x 0 ≻ V x ω V x A_x^0\succ_{V_x}\omega_{V_x} A x 0 ≻ V x ω V x , this is a non-wastefulness improvement, contradicting terminality. Therefore,
Y V x ∈ { A x 0 , A x 1 } Y_{V_x}\in\{A_x^0,A_x^1\} Y V x ∈ { A x 0 , A x 1 }
for every variable x x x .
We next show that no clause family can use a transition assignment in a terminal matching. Suppose, for contradiction, that
Y F i = T τ for some τ = ( i , x ) . Y_{F_i}=T_\tau\qquad\text{for some }\tau=(i,x). Y F i = T τ for some τ = ( i , x ) .
We first record several consequences of feasibility. Since T τ T_\tau T τ contains k i − 1 k_i-1 k i − 1 contracts at p τ p_\tau p τ and
Q p τ = k i − 1 , Q_{p_\tau}=k_i-1, Q p τ = k i − 1 ,
no pivot-blocker child can remain at p τ p_\tau p τ . A pivot blocker is present at p τ p_\tau p τ exactly when the corresponding non-pivot literal of C i C_i C i is true. Hence every literal of C i C_i C i other than the pivot literal ℓ i , x \ell_{i,x} ℓ i , x is false.
Similarly, for every h ∈ H τ h\in H_\tau h ∈ H τ , the assignment T τ T_\tau T τ contains one contract at e τ , h e_{\tau,h} e τ , h , whose capacity is
Q e τ , h = k h − 1. Q_{e_{\tau,h}}=k_h-1. Q e τ , h = k h − 1.
Thus, at most k h − 2 k_h-2 k h − 2 preservation blockers can remain there. Since there is one preservation blocker for every literal of C h C_h C h other than its x x x -literal, and such a blocker is present exactly when that literal is false, at least one other literal of C h C_h C h must be true.
Finally, the contract of T τ T_\tau T τ at the unit-capacity daycare q q q precludes every other clause family from using a transition assignment. Moreover, for every j ∈ J τ j\in J_\tau j ∈ J τ , T τ T_\tau T τ occupies m j m_j m j , so F j F_j F j cannot use S j S_j S j . Hence every such F j F_j F j must use its empty initial assignment.
We now distinguish according to b τ b_\tau b τ .
Case 1: b τ = 1 b_\tau=1 b τ = 1 . Then ℓ i , x \ell_{i,x} ℓ i , x is false when x = 1 x=1 x = 1 , and hence
ℓ i , x = ¬ x . \ell_{i,x}=\neg x. ℓ i , x = ¬ x .
The transition assignment T τ T_\tau T τ contains a contract at r x r_x r x . Since Q r x = 1 Q_{r_x}=1 Q r x = 1 and A x 1 A_x^1 A x 1 also assigns the state child s x s_x s x to r x r_x r x , feasibility implies that V x V_x V x cannot use A x 1 A_x^1 A x 1 . By the first part of the proof,
Y V x = A x 0 . Y_{V_x}=A_x^0. Y V x = A x 0 .
Thus x = 0 x=0 x = 0 , so the pivot literal ¬ x \neg x ¬ x is true.
We have already shown that every other literal of C i C_i C i is false. Consequently, d i d_i d i contains exactly k i − 1 k_i-1 k i − 1 clause blockers, one for each non-pivot literal, while the blocker corresponding to ℓ i , x \ell_{i,x} ℓ i , x is absent. Since Q d i = k i Q_{d_i}=k_i Q d i = k i , the contract ( u i d , d i ) (u_i^d,d_i) ( u i d , d i ) of S i S_i S i can be added without rejecting any contract. The marker daycare m i m_i m i is also vacant. Family F i F_i F i currently uses T τ T_\tau T τ rather than S i S_i S i , and the global lock q q q ensures that no other transition assignment is active. Therefore, after replacing T τ T_\tau T τ by S i S_i S i ,
Re ( Y , F i , S i ) = ∅ . \operatorname{Re}(Y,F_i,S_i)=\varnothing. Re ( Y , F i , S i ) = ∅ .
Since
S i ≻ F i T τ , S_i \succ_{F_i} T_\tau, S i ≻ F i T τ ,
this is a non-wastefulness improvement, contradicting terminality.
Case 2: b τ = 0 b_\tau=0 b τ = 0 . In this case the pivot literal is
ℓ i , x = x . \ell_{i,x}=x. ℓ i , x = x .
First suppose that Y V x = A x 1 Y_{V_x}=A_x^1 Y V x = A x 1 . Then the pivot literal is true, whereas every other literal of C i C_i C i is false. Hence d i d_i d i contains exactly k i − 1 k_i-1 k i − 1 clause blockers and has one vacant seat. As in Case 1, m i m_i m i is vacant. Therefore F i F_i F i can replace T τ T_\tau T τ by S i S_i S i without rejecting any contract, again yielding a non-wastefulness improvement.
It remains to consider
Y V x = A x 0 . Y_{V_x}=A_x^0. Y V x = A x 0 .
We show that V x V_x V x can move from A x 0 A_x^0 A x 0 to its preferred assignment A x 1 A_x^1 A x 1 without rejecting any contract.
First, the state child s x s_x s x moves from z x z_x z x to r x r_x r x . Since b τ = 0 b_\tau=0 b τ = 0 , the active transition T τ T_\tau T τ has no contract at r x r_x r x . Moreover, the global lock q q q excludes every other transition assignment. Hence r x r_x r x is vacant.
Next consider the pivot and preservation test daycares used by T τ T_\tau T τ . Since x x x itself is the pivot variable, the pivot daycare p τ p_\tau p τ has blocker children only for variables in
var ( C i ) ∖ { x } , \operatorname{var}(C_i)\setminus\{x\}, var ( C i ) ∖ { x } ,
and each preservation daycare e τ , h e_{\tau,h} e τ , h has blocker children only for variables in
var ( C h ) ∖ { x } . \operatorname{var}(C_h)\setminus\{x\}. var ( C h ) ∖ { x } .
Therefore no blocker child of V x V_x V x is assigned to any test daycare used by the active transition T τ T_\tau T τ . Changing V x V_x V x from A x 0 A_x^0 A x 0 to A x 1 A_x^1 A x 1 thus does not affect the feasibility of these active tests.
Every other pivot or preservation daycare contains no transition contract, because q q q allows only one active transition. Such a daycare contains only its blocker children, whose maximum possible number equals its capacity. Therefore moving blocker children of V x V_x V x between these shared daycares and their private parking daycares preserves feasibility.
It remains to check the clause daycares. Consider first an earlier clause C h C_h C h , h < i h<i h < i , containing x x x . The preservation test e τ , h e_{\tau,h} e τ , h implies that C h C_h C h has some true literal other than its x x x -literal. Since only x x x changes, this other literal remains true after changing x x x from 0 to 1. Thus, after the change, at most k h − 1 k_h-1 k h − 1 false-literal blockers occupy d h d_h d h . If F h F_h F h uses S h S_h S h , these blockers together with ( u h d , d h ) (u_h^d,d_h) ( u h d , d h ) fit within Q d h = k h Q_{d_h}=k_h Q d h = k h ; if F h F_h F h uses its empty initial assignment, feasibility is immediate.
At d i d_i d i , changing x x x from 0 to 1 makes the pivot literal ℓ i , x = x \ell_{i,x}=x ℓ i , x = x true, so the blocker ( a x , i , d i ) (a_{x,i},d_i) ( a x , i , d i ) is removed. Moreover, F i F_i F i has no contract at d i d_i d i while it uses T τ T_\tau T τ .
Finally, consider a later clause C j C_j C j , j > i j>i j > i , containing x x x . Since j ∈ J τ j\in J_\tau j ∈ J τ , the transition assignment T τ T_\tau T τ occupies m j m_j m j . The global lock q q q excludes a transition assignment of F j F_j F j , while the occupation of m j m_j m j excludes S j S_j S j . Hence F j F_j F j uses its empty initial assignment, and d j d_j d j contains only variable blockers, of which there are at most
k j = Q d j . k_j=Q_{d_j}. k j = Q d j .
Clauses not containing x x x are unaffected.
All remaining changes move blocker children only between their shared daycares and their private capacity-one parking daycares, each of which is private to that blocker child. Consequently,
Re ( Y , V x , A x 1 ) = ∅ . \operatorname{Re}(Y,V_x,A_x^1)=\varnothing. Re ( Y , V x , A x 1 ) = ∅ .
Since
A x 1 ≻ V x A x 0 , A_x^1\succ_{V_x} A_x^0, A x 1 ≻ V x A x 0 ,
this is a non-wastefulness improvement, again contradicting terminality.
Thus no transition assignment T τ T_\tau T τ can occur in a terminal matching.
We next show that, in a terminal matching, the assignment of each clause family exactly reflects the truth value of the corresponding clause.
Lemma 2. Let Y Y Y be terminal, and define the truth assignment α Y \alpha_Y α Y by
α Y ( x ) = b ⟺ Y V x = A x b . \alpha_Y(x) = b \quad\Longleftrightarrow\quad Y_{V_x} = A_x^b. α Y ( x ) = b ⟺ Y V x = A x b . Then, for every clause C i C_i C i ,
Y F i = S i ⟺ α Y ( C i ) = 1. Y_{F_i} = S_i \quad\Longleftrightarrow\quad\alpha_Y(C_i) = 1. Y F i = S i ⟺ α Y ( C i ) = 1. Equivalently, Y F i = ∅ Y_{F_i} = \varnothing Y F i = ∅ if and only if α Y ( C i ) = 0 \alpha_Y(C_i) = 0 α Y ( C i ) = 0 .
Proof. By Lemma 1, every variable family uses one of its two truth-value assignments, and no clause family uses a transition assignment. Hence each clause family F i F_i F i can use only S i S_i S i or its empty initial assignment ω F i = ∅ \omega_{F_i} = \varnothing ω F i = ∅ .
Under the truth assignment α Y \alpha_Y α Y , the clause daycare d i d_i d i contains exactly one clause-blocker child for each false literal of C i C_i C i . Thus, if
false α Y ( C i ) \operatorname{false}_{\alpha_Y}(C_i) false α Y ( C i ) denotes the number of false literals in C i C_i C i , then d i d_i d i contains exactly false α Y ( C i ) \operatorname{false}_{\alpha_Y}(C_i) false α Y ( C i ) blockers.
Suppose first that Y F i = S i Y_{F_i} = S_i Y F i = S i . Since S i S_i S i contains the contract ( u i d , d i ) (u_i^d,d_i) ( u i d , d i ) and Q d i = k i Q_{d_i} = k_i Q d i = k i , feasibility requires
false α Y ( C i ) + 1 ≤ k i . \operatorname{false}_{\alpha_Y}(C_i) + 1 \leq k_i. false α Y ( C i ) + 1 ≤ k i . Hence at most k i − 1 k_i - 1 k i − 1 literals of C i C_i C i are false, so at least one literal is true. Therefore,
α Y ( C i ) = 1. \alpha_Y(C_i) = 1. α Y ( C i ) = 1. Conversely, suppose that α Y ( C i ) = 1 \alpha_Y(C_i) = 1 α Y ( C i ) = 1 . Then at most k i − 1 k_i - 1 k i − 1 literals of C i C_i C i are false, so d i d_i d i contains at most k i − 1 k_i - 1 k i − 1 clause blockers and has sufficient capacity for ( u i d , d i ) (u_i^d,d_i) ( u i d , d i ) .
If F i F_i F i were assigned its empty initial assignment, then m i m_i m i would also be vacant. Indeed, F i F_i F i is not using S i S_i S i , and by Lemma 1 no clause family uses a transition assignment, so no transition contract occupies m i m_i m i . Therefore, F i F_i F i could move from ∅ \varnothing ∅ to
S i = { ( u i d , d i ) , ( u i m , m i ) } S_i = \{(u_i^d,d_i),(u_i^m,m_i)\} S i = {( u i d , d i ) , ( u i m , m i )} without rejecting any contract:
Re ( Y , F i , S i ) = ∅ . \operatorname{Re}(Y,F_i,S_i) = \varnothing. Re ( Y , F i , S i ) = ∅ . Since
S i ≻ F i ∅ , S_i \succ_{F_i} \varnothing, S i ≻ F i ∅ , this would be a non-wastefulness improvement, contradicting the terminality of Y Y Y . Hence Y F i = S i Y_{F_i} = S_i Y F i = S i . Therefore,
Y F i = S i ⟺ α Y ( C i ) = 1. Y_{F_i} = S_i \quad\Longleftrightarrow\quad\alpha_Y(C_i) = 1. Y F i = S i ⟺ α Y ( C i ) = 1.
Lemma 3. Let Y Y Y be terminal. Then no variable flip can strictly increase val ( α Y ) \operatorname{val}(\alpha_Y) val ( α Y ) .
Proof. Suppose, for contradiction, that flipping a variable x x x strictly increases val ( α Y ) \operatorname{val}(\alpha_Y) val ( α Y ) . Let C i C_i C i be the first clause, in the significance order, whose truth value changes under this flip. Since the change is lexicographically improving, C i C_i C i changes from false to true.
Because only x x x is flipped, the pivot literal ℓ i , x \ell_{i,x} ℓ i , x is false before the flip and becomes true after the flip. Hence
α Y ( x ) = b τ , τ : = ( i , x ) , \alpha_Y(x) = b_\tau,\qquad\tau:= (i,x), α Y ( x ) = b τ , τ := ( i , x ) , where b τ b_\tau b τ is defined by ℓ i , x ( b τ ) = 0 \ell_{i,x}(b_\tau) = 0 ℓ i , x ( b τ ) = 0 . Moreover, since C i C_i C i is false before the flip, every other literal of C i C_i C i is also false.
Now consider any earlier clause C h C_h C h , h < i h < i h < i , containing x x x . Since C i C_i C i is the first clause whose truth value changes, C h C_h C h must remain unchanged after flipping x x x . Therefore, C h C_h C h must contain some true literal other than its x x x -literal. In particular, no earlier singleton clause contains x x x , and hence τ = ( i , x ) \tau= (i,x) τ = ( i , x ) is admissible.
By Lemma 2, C i C_i C i being false implies
Y F i = ω F i = ∅ . Y_{F_i} = \omega_{F_i} = \varnothing. Y F i = ω F i = ∅ . We show that the transition assignment T τ T_\tau T τ gives an improvement for $F_i.
First consider the pivot-test daycare p τ p_{\tau} p τ . The assignment T τ T_{\tau} T τ contains k i − 1 k_i-1 k i − 1 contracts at p τ p_{\tau} p τ , and
Q p τ = k i − 1. Q_{p_{\tau}}=k_i-1. Q p τ = k i − 1.
A pivot blocker corresponding to a non-pivot literal is present at p τ p_{\tau} p τ exactly when that literal is true. Since every non-pivot literal of C i C_i C i is false, no pivot blocker is present at p τ p_{\tau} p τ . Hence all k i − 1 k_i-1 k i − 1 transition contracts at p τ p_{\tau} p τ are selected.
Next consider a preservation-test daycare e τ , h e_{\tau,h} e τ , h for h ∈ H τ h\in H_{\tau} h ∈ H τ . Its capacity is k h − 1 k_h-1 k h − 1 , and T τ T_{\tau} T τ contains one contract at e τ , h e_{\tau,h} e τ , h . Since C h C_h C h has another true literal, at least one of its k h − 1 k_h-1 k h − 1 preservation blockers is absent. Thus at most k h − 2 k_h-2 k h − 2 preservation blockers are present, leaving a seat for the transition contract. Hence the contract of T τ T_{\tau} T τ at every e τ , h e_{\tau,h} e τ , h is selected.
The contract of T τ T_{\tau} T τ at q q q is also selected, because Lemma 1 implies that the terminal matching Y Y Y contains no transition assignment, and hence q q q is vacant.
Now consider a marker daycare m j m_j m j with j ∈ J τ j\in J_{\tau} j ∈ J τ . By Lemma 1, F j F_j F j uses either S j S_j S j or its empty initial assignment. If F j F_j F j uses S j S_j S j , then its marker contract ( u j m , m j ) (u^m_j,m_j) ( u j m , m j ) competes with ( t τ , j m , m j ) (t^m_{\tau,j},m_j) ( t τ , j m , m j ) . Since i < j i<j i < j , we have
F i ▹ F j , F_i \triangleright F_j, F i ▹ F j ,
so the transition contract of F i F_i F i is selected and the marker contract of F j F_j F j is rejected.
Finally, suppose b τ = 1 b_{\tau}=1 b τ = 1 . Then
α Y ( x ) = 1 , \alpha_Y(x)=1, α Y ( x ) = 1 ,
so Y V x = A x 1 Y_{V_x}=A_x^1 Y V x = A x 1 and the state child s x s_x s x occupies r x r_x r x . The transition assignment T τ T_{\tau} T τ also contains a contract at r x r_x r x . Since F i ▹ V x F_i\triangleright V_x F i ▹ V x and Q r x = 1 Q_{r_x}=1 Q r x = 1 , the transition contract is selected and ( s x , r x ) (s_x,r_x) ( s x , r x ) is rejected. If b τ = 0 b_{\tau}=0 b τ = 0 , T τ T_{\tau} T τ contains no contract at r x r_x r x .
Consequently,
T τ ⊆ C h D ( Z ( Y , F i , T τ ) ) , T_{\tau}\subseteq Ch_D\bigl(Z(Y,F_i,T_{\tau})\bigr), T τ ⊆ C h D ( Z ( Y , F i , T τ ) ) ,
and the only families that can be rejected are
F ( Re ( Y , F i , T τ ) ) ⊆ { F j : j ∈ J τ } ∪ { { V x } , b τ = 1 , ∅ , b τ = 0. F\bigl(\operatorname{Re}(Y,F_i,T_{\tau})\bigr)\subseteq\{F_j:j\in J_{\tau}\}\cup
\begin{cases}
\{V_x\}, & b_{\tau}=1,\\
\varnothing, & b_{\tau}=0.
\end{cases} F ( Re ( Y , F i , T τ ) ) ⊆ { F j : j ∈ J τ } ∪ { { V x } , ∅ , b τ = 1 , b τ = 0.
Every such family is ranked below F i F_i F i in the master list.
It remains to verify that all rejected families can be feasibly resettled to their initial assignments. Every rejected clause family F j F_j F j is returned from S j S_j S j to
ω F j = ∅ . \omega_{F_j}=\varnothing. ω F j = ∅ .
If b τ = 1 b_{\tau}=1 b τ = 1 , the rejected variable family V x V_x V x is returned from A x 1 A_x^1 A x 1 to ω V x \omega_{V_x} ω V x . We verify feasibility after these resettlements.
Consider first the test daycares used by T τ T_{\tau} T τ . Since x x x is the pivot variable, the pivot-test daycare p τ p_{\tau} p τ contains blocker children only for variables in
var ( C i ) ∖ { x } , \operatorname{var}(C_i)\setminus\{x\}, var ( C i ) ∖ { x } ,
and each preservation-test daycare e τ , h e_{\tau,h} e τ , h contains blocker children only for variables in
var ( C h ) ∖ { x } . \operatorname{var}(C_h)\setminus\{x\}. var ( C h ) ∖ { x } .
Thus, V x V_x V x has no blocker child associated with any active test daycare. Resettling V x V_x V x therefore does not alter their occupancies, and all test contracts of T τ T_{\tau} T τ remain feasible.
Any inactive pivot- or preservation-test daycare contains no transition contract. It contains only its blocker children, and its capacity equals the maximum possible number of such blockers. Hence returning blocker children of V x V_x V x to inactive test daycares cannot violate capacity.
Next consider an earlier clause daycare d h d_h d h , where h < i h<i h < i and C h C_h C h contains x x x . Resettling V x V_x V x may return the clause blocker a x , h a_{x,h} a x , h to d h d_h d h . However, as shown above, C h C_h C h has another true literal. Hence at most k h − 1 k_h-1 k h − 1 clause blockers are present after resettlement. If F h F_h F h uses S h S_h S h , its contract ( u h d , d h ) (u^d_h,d_h) ( u h d , d h ) therefore still fits within
Q d h = k h . Q_{d_h}=k_h. Q d h = k h .
At the pivot clause daycare d i d_i d i , F i F_i F i now uses T τ T_{\tau} T τ rather than S i S_i S i , so it has no contract at d i d_i d i . Even if resettling V x V_x V x returns the pivot clause blocker to d i d_i d i , at most all k i k_i k i clause blockers are present, which fits exactly within Q d i = k i Q_{d_i}=k_i Q d i = k i .
Finally, consider a later clause C j C_j C j , j > i j>i j > i , containing x x x . If F j F_j F j is rejected at m j m_j m j , it is resettled to ω F j = ∅ \omega_{F_j}=\emptyset ω F j = ∅ . Thus d j d_j d j contains no clause-family contract and can accommodate all of its at most k j k_j k j clause blockers. Clauses not containing x x x are unaffected.
The marker, global-transition, state, and private parking daycares are also feasible after resettlement. Therefore the resettled matching is feasible.
If
Re ( Y , F i , T τ ) = ∅ , \operatorname{Re}(Y,F_i,T_\tau)=\emptyset, Re ( Y , F i , T τ ) = ∅ ,
then ( F i , T τ ) (F_i,T_\tau) ( F i , T τ ) is a non-wastefulness improvement. Otherwise, all rejected families lie below F i F_i F i in the master list and can be feasibly resettled to their initial assignments, so ( F i , T τ ) (F_i,T_\tau) ( F i , T τ ) is an FMR improvement. Either case contradicts the terminality of Y Y Y .
Therefore no single-variable flip can strictly increase val ( α Y ) \operatorname{val}(\alpha_Y) val ( α Y ) .
Theorem 12. Finding a feasible and individually rational matching that is non-wasteful and fair by master list and resettlement is PLS-complete. The result holds even if
every daycare has capacity at most four; and
daycare priorities are master-list consistent up to initial enrollments.
Proof. We first show membership in PLS. Let
f 1 ▹ f 2 ▹ ⋯ ▹ f ∣ F ∣ f_1 \triangleright f_2 \triangleright\cdots\triangleright f_{|F|} f 1 ▹ f 2 ▹ ⋯ ▹ f ∣ F ∣
be the family master list. Since the complete individually rational preference list of every family is explicitly given, assign to each assignment W W W of family f f f a score s f ( W ) s_f(W) s f ( W ) consistent with ≻ f \succ_f ≻ f , with larger scores representing more preferred assignments. Let
B > max f ∈ F ∣ W f ∣ . B>\max_{f\in F}|W_f|. B > f ∈ F max ∣ W f ∣.
and define the potential of a feasible and individually rational matching Y Y Y by
Φ ( Y ) = ∑ t = 1 ∣ F ∣ s f t ( Y f t ) B ∣ F ∣ − t . \Phi(Y)=\sum_{t=1}^{|F|}s_{f_t}(Y_{f_t})B^{|F|-t}. Φ ( Y ) = t = 1 ∑ ∣ F ∣ s f t ( Y f t ) B ∣ F ∣ − t .
The binary representation of Φ ( Y ) \Phi(Y) Φ ( Y ) has polynomial length.
Consider first a non-wastefulness improvement by a family f t f_t f t . Only the assignment of f t f_t f t changes, and it changes to a strictly preferred assignment. Hence the lexicographic assignment profile, and therefore Φ \Phi Φ , strictly increases.
Now consider an FMR improvement by f t f_t f t . The assignment of f t f_t f t strictly improves, while every family that is displaced and resettled lies below f t f_t f t in the master list. All families above f t f_t f t remain unchanged. Thus the first coordinate of the master-list-ordered assignment profile that changes is that of f t f_t f t , and it changes strictly for the better. Hence Φ \Phi Φ again strictly increases.
Moreover, given a feasible and individually rational matching Y Y Y , we can find an improving neighbor or certify that none exists in polynomial time. For every family f f f and every explicitly listed assignment W ≻ f Y f W\succ_f Y_f W ≻ f Y f , we compute
Z ( Y , f , W ) and Re ( Y , f , W ) . Z(Y,f,W)\qquad\text{and}\qquad\operatorname{Re}(Y,f,W). Z ( Y , f , W ) and Re ( Y , f , W ) .
If Re ( Y , f , W ) = ∅ \operatorname{Re}(Y,f,W)=\emptyset Re ( Y , f , W ) = ∅ , then ( f , W ) (f,W) ( f , W ) is a non-wastefulness improvement. Otherwise, we check the master-list and resettlement conditions of FMR, including feasibility after resettling the rejected families to their initial assignments. All these checks are polynomial in the input size. The initial matching ω \omega ω is also computable in polynomial time and is feasible and individually rational. Therefore, the problem belongs to PLS. Its local optima are exactly the terminal matchings, i.e., the matchings that are both non-wasteful and FMR-fair.
It remains to show PLS-hardness. We use the reduction from \textsc{LocalLexMax-4-SAT} described above. The construction is polynomial, and all family assignments are explicitly represented. Condition (ii) holds by construction. Moreover,
Q d i = k i ≤ 4. Q_{d_i}=k_i\le4. Q d i = k i ≤ 4.
every pivot-test and preservation-test daycare has capacity at most three, and every other daycare has capacity one. Hence Condition (i) also holds.
Given any non-wasteful and FMR-fair matching Y Y Y of the constructed instance, decode the truth assignment α Y \alpha_Y α Y from the assignments of the variable families. If α Y \alpha_Y α Y were not locally optimal for \textsc{LocalLexMax-4-SAT} , then some single-variable flip would strictly increase val ( α Y ) \operatorname{val}(\alpha_Y) val ( α Y ) . By Lemma 3, this would induce either a non-wastefulness improvement or an FMR improvement of Y Y Y , contradicting the assumption that Y Y Y is terminal. Thus every solution of the constructed matching instance can be mapped in polynomial time to a locally optimal solution of the LOCALLEXMAX-4-SAT instance.
Hence the reduction is a PLS reduction from the PLS-complete problem LOCALLEXMAX-4-SAT. The matching problem is therefore PLS-hard, and together with membership in PLS, it is PLS-complete.
Dependence on family size. The reduction also preserves bounded occurrence. A variable family has one state child, at most Δ \Delta Δ clause-blocker children, at most 3 Δ 3\Delta 3Δ pivot-blocker children, and fewer than 3 Δ 2 3\Delta^2 3 Δ 2 preservation-blocker children. Hence
∣ C V x ∣ ≤ 3 Δ 2 + Δ + 1. |C_{V_x}| \le3\Delta^2+\Delta+1. ∣ C V x ∣ ≤ 3 Δ 2 + Δ + 1.
A clause has at most four admissible transition assignments. Using distinct children for all their displayed contracts gives
∣ C F i ∣ ≤ 2 + 4 ( 2 Δ + 3 ) = 8 Δ + 14. |C_{F_i}| \le2+4(2\Delta+3)=8\Delta+14. ∣ C F i ∣ ≤ 2 + 4 ( 2Δ + 3 ) = 8Δ + 14.
Therefore every family has size at most
3 Δ 2 + 8 Δ + 14. 3\Delta^2+8\Delta+14. 3 Δ 2 + 8Δ + 14.
Corollary 1. If LOCALLEXMAX-4-SAT is PLS-hard for formulas in which every variable occurs at most a fixed constant Δ 0 \Delta_0 Δ 0 , then the hardness in Theorem 12 holds with family size at most 3 Δ 0 2 + 8 Δ 0 + 14 3\Delta_0^2+8\Delta_0+14 3 Δ 0 2 + 8 Δ 0 + 14 .
The qualification in Corollary 1 is necessary because the complexity of bounded-occurrence LOCALLEXMAX-4-SAT is currently left open [44 ] .
Dominance-based Displacement
We next strengthen fairness by master list and resettlement by introducing a new fairness notion based on dominance-based displacement . Unlike the previous notion, where the families affected by a deviation are determined by the contracts rejected by the daycare choice functions, the present notion identifies potential displaced families directly through pairwise priority comparisons between the proposed contracts and the currently assigned contracts.
Given a proposed assignment W W W of a family f f f , another family is considered dominated if at least one of its currently assigned children has lower priority, at the same daycare, than some child of f f f assigned there under W W W . Rather than requiring the deviation to act on the particular set of families induced by the daycare choice functions, we allow a nonempty subset of such dominated families to be displaced. Once a family is displaced, its entire current assignment is removed, even if only one of its contracts is dominated.
We first formalize the set of families that may be displaced.
Definition 13 (Dominated Families). Given a matching Y Y Y , a family f f f , and a proposed assignment W W W for f f f , define
L f ( W , Y ) = { g ∈ F ∖ { f } ∣ ∃ ( c , d ) ∈ W , ∃ ( c ′ , d ′ ) ∈ Y g such that c ≻ d c ′ } . L_f(W,Y)=\{g\in F\setminus\{f\}\mid\exists(c,d)\in W,\ \exists(c',d')\in Y_g\text{ such that }c\succ_d c'\}. L f ( W , Y ) = { g ∈ F ∖ { f } ∣ ∃ ( c , d ) ∈ W , ∃ ( c ′ , d ′ ) ∈ Y g such that c ≻ d c ′ } . We refer to L f ( W , Y ) L_f(W,Y) L f ( W , Y ) as the set of families dominated by f f f through W W W at Y Y Y .
Using this dominance relation, we define the following stronger fairness notion.
Definition 14 (Strong Fairness by Master List and Resettlement). Given an individually rational matching Y Y Y and a strict master list ▹ \triangleright ▹ over families, family f f f is said to have weakly justified envy by master list and resettlement if there exist a proposed assignment W W W for f f f and a nonempty set G ⊆ L f ( W , Y ) G\subseteq L_f(W,Y) G ⊆ L f ( W , Y ) such that the following conditions hold:
(1) Profitable deviation: W ≻ f Y f W\succ_f Y_f W ≻ f Y f .
(2) Acceptance after displacement: W ⊆ C h D ( Y ∖ ( Y f ∪ Y G ) ∪ W ) W\subseteq Ch_D(Y\setminus(Y_f\cup Y_G)\cup W) W ⊆ C h D ( Y ∖ ( Y f ∪ Y G ) ∪ W ) , where Y G = ⋃ g ∈ G Y g Y_G=\bigcup_{g\in G}Y_g Y G = ⋃ g ∈ G Y g .
(3) Master-list condition:
f ▹ g for every g ∈ G . f\triangleright g\qquad\text{for every }g\in G. f ▹ g for every g ∈ G . (4) Resettlement feasibility:
Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G ) Y\setminus(Y_f\cup Y_G)\cup(W\cup\omega_G) Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G ) is feasible, where ω G = ⋃ g ∈ G ω g \omega_G=\bigcup_{g\in G}\omega_g ω G = ⋃ g ∈ G ω g .
An individually rational matching is said to be strongly fair by master list and resettlement if no family has weakly justified envy by master list and resettlement.
The key difference between the two fairness notions FMR and SFMR lies in how the displaced families are determined. Under fairness by master list and resettlement, adding W W W to the current matching determines a particular set of rejected contracts through the daycare choice functions, and all families involved in these rejected contracts must satisfy the master-list and resettlement conditions. Under strong fairness by master list and resettlement, by contrast, the deviation may be supported by any nonempty subset G G G of dominated families, provided that removing their entire assignments makes W W W acceptable and satisfies the master-list and resettlement requirements.
This additional flexibility strengthens the fairness requirement. In particular, a deviation may fail to constitute justified envy under fairness by master list and resettlement because some family induced by the rejected contracts is ranked above f f f in the master list or cannot be feasibly resettled. Nevertheless, there may exist another suitable subset of dominated families whose displacement makes W W W acceptable and for which both requirements are satisfied. Such a deviation is captured by strong fairness by master list and resettlement.
Since the dominance-based notion allows a broader set of deviations to constitute justified envy, the corresponding fairness requirement is stronger than fairness by master list and resettlement. The following proposition formalizes the relationship between the two notions.
Proposition 5. Strong fairness by master list and resettlement implies fairness by master list and resettlement.
Proof. We prove the contrapositive. Suppose that a feasible and individually rational matching Y Y Y is not fair by master list and resettlement according to Definition 12. Then there exist a family f f f and an assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f such that, letting Z : = Y ∖ Y f ∪ W Z := Y \setminus Y_f \cup W Z := Y ∖ Y f ∪ W and Re : = Z ∖ C h D ( Z ) \operatorname{Re} := Z \setminus Ch_D(Z) Re := Z ∖ C h D ( Z ) , we have Re ≠ ∅ \operatorname{Re} \ne\varnothing Re = ∅ , and W ⊆ C h D ( Z ) W \subseteq Ch_D(Z) W ⊆ C h D ( Z ) , every family in F ( Re ) F(\operatorname{Re}) F ( Re ) is ranked below f f f in the master list, and Y ∖ ( Y f ∪ Y F ( Re ) ) ∪ ( W ∪ ω F ( Re ) ) Y \setminus(Y_f \cup Y_{F(\operatorname{Re})}) \cup(W \cup\omega_{F(\operatorname{Re})}) Y ∖ ( Y f ∪ Y F ( Re ) ) ∪ ( W ∪ ω F ( Re ) ) is feasible.
Set G : = F ( Re ) G := F(\operatorname{Re}) G := F ( Re ) . We first show that G ⊆ L f ( W , Y ) G \subseteq L_f(W,Y) G ⊆ L f ( W , Y ) . Take any family g ∈ G g \in G g ∈ G . By definition of G G G , there exists a rejected contract ( c ′ , d ) ∈ Y g (c',d) \in Y_g ( c ′ , d ) ∈ Y g such that ( c ′ , d ) ∉ C h d ( Z d ) (c',d) \notin Ch_d(Z_d) ( c ′ , d ) ∈ / C h d ( Z d ) . Since W ⊆ C h D ( Z ) W \subseteq Ch_D(Z) W ⊆ C h D ( Z ) , every rejected contract belongs to Y ∖ Y f Y \setminus Y_f Y ∖ Y f . Because Y Y Y is feasible, ( c ′ , d ) (c',d) ( c ′ , d ) could not become rejected after replacing Y f Y_f Y f by W W W unless some newly introduced contract ( c , d ) ∈ W (c,d) \in W ( c , d ) ∈ W has higher priority at d d d , i.e., c ≻ d c ′ c \succ_d c' c ≻ d c ′ . Indeed, suppose otherwise. Then every contract in Z d Z_d Z d ranked above ( c ′ , d ) (c',d) ( c ′ , d ) would already belong to ( Y ∖ Y f ) d (Y \setminus Y_f)_d ( Y ∖ Y f ) d . Since ( c ′ , d ) (c',d) ( c ′ , d ) is rejected by C h d ( Z d ) Ch_d(Z_d) C h d ( Z d ) , there must be at least Q d Q_d Q d contracts in Z d Z_d Z d ranked above it. These contracts, together with ( c ′ , d ) (c',d) ( c ′ , d ) , would therefore already be allocated to Y d Y_d Y d , implying ∣ Y d ∣ ≥ Q d + 1 |Y_d| \ge Q_d + 1 ∣ Y d ∣ ≥ Q d + 1 , which contradicts the feasibility of Y Y Y . Hence, there exists some ( c , d ) ∈ W (c,d) \in W ( c , d ) ∈ W such that c ≻ d c ′ c \succ_d c' c ≻ d c ′ , and therefore g ∈ L f ( W , Y ) g \in L_f(W,Y) g ∈ L f ( W , Y ) . Since g g g was arbitrary, we conclude that G ⊆ L f ( W , Y ) G \subseteq L_f(W,Y) G ⊆ L f ( W , Y ) .
We now verify the conditions for weakly justified envy by master list and resettlement. Condition (1) holds because W ≻ f Y f W \succ_f Y_f W ≻ f Y f . For Condition (2), we already have W ⊆ C h D ( Z ) W \subseteq Ch_D(Z) W ⊆ C h D ( Z ) . The set Y ∖ ( Y f ∪ Y G ) ∪ W Y \setminus(Y_f \cup Y_G) \cup W Y ∖ ( Y f ∪ Y G ) ∪ W is obtained from Z Z Z only by removing additional contracts that do not belong to W W W . By Definition 2, each daycare chooses the highest-priority contracts up to its quota. Hence, removing competing contracts cannot cause a contract in W W W that was previously selected to become rejected. Therefore, W ⊆ C h D ( Y ∖ ( Y f ∪ Y G ) ∪ W ) W \subseteq Ch_D(Y \setminus(Y_f \cup Y_G) \cup W) W ⊆ C h D ( Y ∖ ( Y f ∪ Y G ) ∪ W ) . Condition (3) follows directly from the master-list condition of Definition 12, because G = F ( Re ) G = F(\operatorname{Re}) G = F ( Re ) . Finally, Condition (4) follows directly from the resettlement-feasibility condition of Definition 12, which requires Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G ) Y \setminus(Y_f \cup Y_G) \cup(W \cup\omega_G) Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G ) to be feasible. Thus, W W W together with G G G witnesses strongly justified envy by master list and resettlement. Hence, Y Y Y is not strongly fair by master list and resettlement.
Therefore, by contraposition, strong fairness by master list and resettlement implies fairness by master list and resettlement, which completes the proof of Proposition 5. □ \square □
Proposition 5 does not extend to ordinary fairness. In fact, fairness and SFMR are incomparable, as shown next.
Proposition 6. Fairness (F) and strong fairness by master list and resettlement (SFMR) do not imply each other.
Proof. (i) Fairness does not imply SFMR. Consider two families f f f and g g g and two capacity-one daycares d 1 , d 2 d_1,d_2 d 1 , d 2 , with no initial enrollment. The instance is given by
C f = ( a 1 , a 2 ) W f = { ( a 1 , d 1 ) , ( a 2 , d 2 ) } ≻ f ∅ C g = ( b 1 , b 2 ) W g = { ( b 1 , d 1 ) , ( b 2 , d 2 ) } ≻ g ∅ a 1 ≻ d 1 b 1 b 2 ≻ d 2 a 2 and f ≻ g . \begin{aligned}
C_f &= (a_1,a_2) & W_f &= \{(a_1,d_1),(a_2,d_2)\} \succ_f \varnothing\\
C_g &= (b_1,b_2) & W_g &= \{(b_1,d_1),(b_2,d_2)\} \succ_g \varnothing\\
a_1 &\succ_{d_1} b_1 & b_2 &\succ_{d_2} a_2 \quad\text{and} \quad f \succ g.
\end{aligned} C f C g a 1 = ( a 1 , a 2 ) = ( b 1 , b 2 ) ≻ d 1 b 1 W f W g b 2 = {( a 1 , d 1 ) , ( a 2 , d 2 )} ≻ f ∅ = {( b 1 , d 1 ) , ( b 2 , d 2 )} ≻ g ∅ ≻ d 2 a 2 and f ≻ g .
These are the only nonempty acceptable assignments of the two families.
Consider
Y = W g = { ( b 1 , d 1 ) , ( b 2 , d 2 ) } . Y = W_g = \{(b_1,d_1),(b_2,d_2)\}. Y = W g = {( b 1 , d 1 ) , ( b 2 , d 2 )} .
Family g g g already receives its most-preferred assignment. The only profitable deviation of f f f is W f W_f W f , but
W f ⊈ C h D ( Y ∪ W f ) , W_f \not\subseteq Ch_D(Y \cup W_f), W f ⊆ C h D ( Y ∪ W f ) ,
Algorithm 3: Greedy Improvement for Non-wasteful and SFMR Matchings
Input: An instance $I = (C, F, D, Q, \mathcal{X}, \omega, \succ_F, \succ_D)$ and a strict master list $f_1 \triangleright f_2 \triangleright \cdots \triangleright f_m$
Output: A feasible and individually rational matching that is non-wasteful and strongly fair by master list and resettlement
$Y \leftarrow \omega$;
$i \leftarrow 1$;
while $i \leq m$ do
updated $\leftarrow$ False;
Let $f \leftarrow f_i$;
foreach assignment $W \succ_f Y_f$, in decreasing order of $\succ_f$ do
if $Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W)$ then
$Y \leftarrow Y \setminus Y_f \cup W$;
updated $\leftarrow$ True;
break;
else if there exists a nonempty $G \subseteq L_f(W,Y)$ satisfying Conditions (2)--(4) of Definition 14 then
$Y \leftarrow Y \setminus (Y_f \cup Y_G) \cup (W \cup \omega_G)$;
updated $\leftarrow$ True;
break;
end
end
if updated then
$i \leftarrow 1$;
else
$i \leftarrow i + 1$;
end
end
return $Y$;
because a 2 a_2 a 2 is rejected at d 2 d_2 d 2 in favor of b 2 b_2 b 2 . Hence, f f f does not form a blocking coalition, and Y Y Y is fair.
However, Y Y Y is not SFMR. Since a 1 ≻ d 1 b 1 a_1 \succ_{d_1} b_1 a 1 ≻ d 1 b 1 , we have g ∈ L f ( W f , Y ) g \in L_f(W_f,Y) g ∈ L f ( W f , Y ) . Taking G = { g } G = \{g\} G = { g } ,
W f ⊆ C h D ( Y ∖ Y G ∪ W f ) , Y ∖ Y G ∪ ( W f ∪ ω G ) = W f , W_f \subseteq Ch_D(Y \setminus Y_G \cup W_f), \qquad Y \setminus Y_G \cup(W_f \cup\omega_G) = W_f, W f ⊆ C h D ( Y ∖ Y G ∪ W f ) , Y ∖ Y G ∪ ( W f ∪ ω G ) = W f ,
where the latter matching is feasible because ω g = ∅ \omega_g = \varnothing ω g = ∅ . Moreover, f ▹ g f \triangleright g f ▹ g . Thus, f f f has weakly justified envy by master list and resettlement, so Y Y Y violates SFMR.
(ii) SFMR does not imply fairness. Consider two singleton families and one capacity-one daycare d d d , again with no initial enrollment:
C f = ( a ) ( a , d ) ≻ f ∅ C_f = (a) \qquad(a,d) \succ_f \varnothing C f = ( a ) ( a , d ) ≻ f ∅
C g = ( b ) ( b , d ) ≻ g ∅ C_g = (b) \qquad(b,d) \succ_g \varnothing C g = ( b ) ( b , d ) ≻ g ∅
a ≻ d b g ▹ f . a \succ_d b \qquad g \triangleright f. a ≻ d b g ▹ f .
Consider
Y = { ( b , d ) } . Y = \{(b,d)\}. Y = {( b , d )} .
Family f f f can profitably deviate to W = { ( a , d ) } W = \{(a,d)\} W = {( a , d )} . Since
W ⊆ C h D ( Y ∪ W ) W \subseteq Ch_D(Y \cup W) W ⊆ C h D ( Y ∪ W )
and ( b , d ) (b,d) ( b , d ) is rejected, f f f has justified envy. Hence, Y Y Y is not fair.
On the other hand,
L f ( W , Y ) = { g } . L_f(W,Y) = \{g\}. L f ( W , Y ) = { g } .
Thus, the only possible nonempty displacement set is G = { g } G = \{g\} G = { g } , but the master-list condition fails because g ▹ f g \triangleright f g ▹ f . Family g g g has no profitable deviation. Hence, Y Y Y satisfies SFMR.
Therefore, fairness and SFMR are incomparable.
Theorem 13. For every instance with a strict master list, there always exists an individually rational matching that is both non-wasteful and strongly fair by master list and resettlement.
Proof. We prove the theorem by showing that Algorithm 3 preserves feasibility and individual rationality, terminates after finitely many updates, and, upon termination, returns a matching satisfying both non-wastefulness and strong fairness by master list and resettlement.
Feasibility and individual rationality. The algorithm starts from the initial matching Y = ω Y = \omega Y = ω , which is feasible and individually rational. We show that both types of updates preserve these properties.
Suppose first that family f f f claims unused seats through an assignment W W W . By Definition 6,
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) . Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W). Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) .
Hence, the updated matching is feasible. Moreover, W ≻ f Y f W \succ_f Y_f W ≻ f Y f , while the assignments of all other families remain unchanged. Since the current matching is individually rational before the update, individual rationality is preserved.
Suppose instead that family f f f has weakly justified envy by master list and resettlement through an assignment W W W and a nonempty set G ⊆ L f ( W , Y ) G \subseteq L_f(W,Y) G ⊆ L f ( W , Y ) . By Condition (4) of Definition 14, the updated matching
Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G ) Y \setminus(Y_f \cup Y_G) \cup(W \cup\omega_G) Y ∖ ( Y f ∪ Y G ) ∪ ( W ∪ ω G )
is feasible. Family f f f strictly improves from Y f Y_f Y f to W W W , every family in G G G is returned to its initial assignment, and every other family retains its current assignment. Thus, individual rationality is again preserved.
Termination. Consider the assignment profile ( Y f 1 , Y f 2 , … , Y f m ) (Y_{f_1},Y_{f_2},\ldots,Y_{f_m}) ( Y f 1 , Y f 2 , … , Y f m ) , where f 1 ▹ f 2 ▹ ⋯ ▹ f m f_1 \triangleright f_2 \triangleright\cdots\triangleright f_m f 1 ▹ f 2 ▹ ⋯ ▹ f m . We compare two assignment profiles lexicographically according to the master list and the families’ preferences: at the highest-ranked family whose assignments differ, the profile assigning that family its more preferred assignment is regarded as larger.
Consider any update performed by family f i f_i f i . If f i f_i f i claims unused seats, then the assignments of all families f 1 , … , f i − 1 f_1,\ldots,f_{i-1} f 1 , … , f i − 1 remain unchanged, while f i f_i f i strictly improves. Therefore, the assignment profile strictly increases in the lexicographic order. If f i f_i f i instead exercises weakly justified envy by master list and resettlement through some nonempty set G G G , Condition (3) of Definition 14 implies that f i ▹ g f_i \triangleright g f i ▹ g for every g ∈ G g \in G g ∈ G . Hence, every family in G G G appears strictly below f i f_i f i in the master list. Consequently, the assignments of f 1 , … , f i − 1 f_1,\ldots,f_{i-1} f 1 , … , f i − 1 remain unchanged, f i f_i f i strictly improves, and only families ranked below f i f_i f i may be returned to their initial assignments. Thus, the first coordinate of the assignment profile that changes is the one corresponding to f i f_i f i , and this coordinate strictly improves. Therefore, the assignment profile again strictly increases lexicographically.
Since every family has a finite preference ordering, there are only finitely many possible assignment profiles. As every update strictly increases the assignment profile in the lexicographic order, no assignment profile can be revisited. Hence, the algorithm must terminate after finitely many updates.
Non-wastefulness and strong fairness. Upon termination, the algorithm has completed a full scan of the master list without performing an update. Suppose, for contradiction, that the final matching Y Y Y is wasteful. Then there exist a family f f f and an assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f through which f f f can claim unused seats. When f f f was examined during the final scan, the first update condition of Algorithm 3 would have been satisfied, and the algorithm would have performed another update. This contradicts termination. Hence, Y Y Y is non-wasteful.
Next, suppose that Y Y Y is not strongly fair by master list and resettlement. By Definition 14, there exist a family f f f , an assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f , and a nonempty set G ⊆ L f ( W , Y ) G \subseteq L_f(W,Y) G ⊆ L f ( W , Y ) satisfying Conditions (2)–(4) of the definition. When f f f was examined during the final scan, the second update condition of Algorithm 3 would therefore have been satisfied, again contradicting termination. Hence, no family has weakly justified envy by master list and resettlement, and Y Y Y is strongly fair by master list and resettlement.
Therefore, Algorithm 3 terminates at a feasible and individually rational matching that is both non-wasteful and strongly fair by master list and resettlement.
Algorithm 3 establishes the existence of a non-wasteful and strongly fair matching, but does not necessarily yield a polynomial-time algorithm. In particular, for a given family f f f and proposed assignment W W W , determining whether there exists a nonempty set G ⊆ L f ( W , Y ) G \subseteq L_f(W,Y) G ⊆ L f ( W , Y ) satisfying Conditions (2)–(4) of Definition 14 may itself be computationally hard, as shown by the hardness result below.
Computational Complexity of Problems Related to SFMR
Unlike the other fairness notions considered above, which can be verified in polynomial time, verifying SFMR is computationally intractable. In particular, we show that detecting a violation of SFMR is NP-complete, and hence verifying whether a given matching satisfies SFMR is coNP-complete.
Figure 8. Illustration of the reduction from (2, 2)-E3-SAT. The variable families encode truth values; the cyclic chain daycares enforce a consistent choice for every variable; the clause daycares encode clause satisfaction through resettlement feasibility; and the special family f ∗ f^{*} f ∗ proposes W = { ( a ∗ , d ∗ ) } W = \{(a^{*}, d^{*})\} W = {( a ∗ , d ∗ )} at the eligibility daycare d ∗ d^{*} d ∗ .
Theorem 14. Given a matching and a family, deciding whether the family has weakly justified envy by master list and resettlement is NP-complete, even when every family has at most three children and daycare priorities are master-list consistent up to initial enrollments. Moreover, the potentially envious family has only one child. Consequently, deciding whether a given matching satisfies Strong Fairness by Master List and Resettlement (SFMR) is coNP-complete.
Proof. We first show that the problem belongs to NP. Given a proposed assignment W W W for a family f ∗ f^{*} f ∗ and a nonempty set of families G G G , we can compute L f ∗ ( W , Y ) L_{f^{*}}(W,Y) L f ∗ ( W , Y ) and verify in polynomial time whether
G ⊆ L f ∗ ( W , Y ) G \subseteq L_{f^{*}}(W,Y) G ⊆ L f ∗ ( W , Y )
and whether Conditions (1)–(4) of Definition 14 are satisfied. Hence, deciding whether a given family has weakly justified envy by master list and resettlement belongs to NP.
We next prove NP-hardness by a polynomial-time reduction from (2, 2)-E3-SAT, which is NP-complete [8 ] . An instance consists of a Boolean formula
B = C 1 ∧ ⋯ ∧ C m B = C_1 \land\cdots\land C_m B = C 1 ∧ ⋯ ∧ C m
over variables
V = { v 1 , … , v n } , V = \{v_1, \ldots, v_n\}, V = { v 1 , … , v n } ,
where every clause contains exactly three literals and each of v i v_i v i and v i ‾ \overline{v_i} v i occurs exactly twice.
Variable families. For every variable v i v_i v i , create two families f i T f_i^T f i T and f i F f_i^F f i F . Intuitively, selecting f i T f_i^T f i T for displacement corresponds to setting v i v_i v i to true, whereas selecting f i F f_i^F f i F corresponds to setting v i v_i v i to false.
Family f i T f_i^T f i T has three children
C ( f i T ) = { a i T , t i 1 , t i 2 } , C(f_i^T) = \{a_i^T, t_i^1, t_i^2\}, C ( f i T ) = { a i T , t i 1 , t i 2 } ,
and family f i F f_i^F f i F has three children
C ( f i F ) = { a i F , s i 1 , s i 2 } . C(f_i^F) = \{a_i^F, s_i^1, s_i^2\}. C ( f i F ) = { a i F , s i 1 , s i 2 } .
We call a i T a_i^T a i T and a i F a_i^F a i F the chain children , and t i 1 , t i 2 , s i 1 , s i 2 t_i^1,t_i^2,s_i^1,s_i^2 t i 1 , t i 2 , s i 1 , s i 2 the clause children .
The children t i 1 , t i 2 t_i^1,t_i^2 t i 1 , t i 2 correspond to the two occurrences of the negative literal v ˉ i \bar{v}_i v ˉ i , while s i 1 , s i 2 s_i^1,s_i^2 s i 1 , s i 2 correspond to the two occurrences of the positive literal v i v_i v i . Thus, when f i T f_i^T f i T is displaced and resettled, its clause children return precisely to the clauses in which setting v i v_i v i to true makes the corresponding negative literal false. Similarly, when f i F f_i^F f i F is displaced and resettled, its clause children return precisely to the clauses in which setting v i v_i v i to false makes the corresponding positive literal false.
Eligibility daycare. Create a daycare d ∗ d^* d ∗ with capacity 4 n 4n 4 n . In the current matching Y Y Y , assign all clause children
t i 1 , t i 2 , s i 1 , s i 2 ( i = 1 , … , n ) t_i^1,t_i^2,s_i^1,s_i^2 \qquad(i=1,\ldots,n) t i 1 , t i 2 , s i 1 , s i 2 ( i = 1 , … , n )
to d ∗ d^* d ∗ . Hence, d ∗ d^* d ∗ is full in Y Y Y .
Variable-chain daycares. For every variable v i v_i v i , create a daycare r i r_i r i of capacity 2. In the current matching Y Y Y , assign
( a i T , r i ) , ( a i F , r i ) . (a_i^T,r_i),\qquad(a_i^F,r_i). ( a i T , r i ) , ( a i F , r i ) .
Thus, every r i r_i r i is full.
For every i = 1 , … , n i=1,\ldots,n i = 1 , … , n , with indices taken modulo n n n , define
( a i T , r i + 1 ) ∈ ω f i T , ( a i F , r i + 1 ) ∈ ω f i F , (a_i^T,r_{i+1})\in\omega_{f_i^T},\qquad(a_i^F,r_{i+1})\in\omega_{f_i^F}, ( a i T , r i + 1 ) ∈ ω f i T , ( a i F , r i + 1 ) ∈ ω f i F ,
where r n + 1 : = r 1 r_{n+1}:=r_1 r n + 1 := r 1 . Thus, under the initial assignment, every daycare r i r_i r i contains exactly the two chain children associated with variable v i − 1 v_{i-1} v i − 1 , whereas in the current matching it contains exactly a i T a_i^T a i T and a i F a_i^F a i F . Both assignments are feasible.
Clause daycares. For every clause C j C_j C j , create a daycare e j e_j e j of capacity 3 and a dummy family h j h_j h j with one child z j z_j z j . In the current matching,
( z j , e j ) ∈ Y , (z_j,e_j)\in Y, ( z j , e j ) ∈ Y ,
and z j z_j z j has no initial enrollment.
For every occurrence of a literal in clause C j C_j C j , assign a corresponding clause child to e j e_j e j in the initial assignment as follows. If the r r r -th occurrence of the positive literal v i v_i v i appears in C j C_j C j , then
( s i r , e j ) ∈ ω f i F . (s_i^r,e_j)\in\omega_{f_i^F}. ( s i r , e j ) ∈ ω f i F .
If the r r r -th occurrence of the negative literal v ˉ i \bar{v}_i v ˉ i appears in C j C_j C j , then
( t i r , e j ) ∈ ω f i T . (t_i^r,e_j)\in\omega_{f_i^T}. ( t i r , e j ) ∈ ω f i T .
Thus, for each literal in C j C_j C j , the family selected when that literal is false has one clause child initially assigned to e j e_j e j . Since C j C_j C j contains exactly three literals, exactly three clause children are initially assigned to e j e_j e j , and hence the initial assignment is feasible at every clause daycare.
Special family. Create a special family f ∗ f^* f ∗ with a single child a ∗ a^* a ∗ , currently unmatched, and let
W = { ( a ∗ , d ∗ ) } . W=\{(a^*,d^*)\}. W = {( a ∗ , d ∗ )} .
At daycare d ∗ d^* d ∗ , child a ∗ a^* a ∗ has strictly higher priority than every clause child currently assigned there. Consequently,
f i T , f i F ∈ L f ∗ ( W , Y ) for every i . f_i^T,f_i^F\in L_{f^*}(W,Y)\qquad\text{for every }i. f i T , f i F ∈ L f ∗ ( W , Y ) for every i .
Preferences, priorities, and master list. Let the strict master list be
f ∗ ▹ f 1 T ▹ f 1 F ▹ f 2 T ▹ f 2 F ▹ ⋯ ▹ f n T ▹ f n F ▹ h 1 ▹ ⋯ ▹ h m . f^*\triangleright f_1^T\triangleright f_1^F\triangleright f_2^T\triangleright f_2^F\triangleright\cdots\triangleright f_n^T\triangleright f_n^F\triangleright h_1\triangleright\cdots\triangleright h_m. f ∗ ▹ f 1 T ▹ f 1 F ▹ f 2 T ▹ f 2 F ▹ ⋯ ▹ f n T ▹ f n F ▹ h 1 ▹ ⋯ ▹ h m .
For every variable family f i T f_i^T f i T and f i F f_i^F f i F , its current assignment is its top choice, thus strictly preferred to its initial assignment, and every assignment below its initial assignment is unacceptable. Each dummy family h j h_j h j prefers its current (and only acceptable) assignment ( z j , e j ) (z_j,e_j) ( z j , e j ) to being unmatched. The special family f ∗ f^* f ∗ has W W W as its unique assignment strictly preferred to its current and initial assignment ∅ \varnothing ∅ .
At every daycare, all initially enrolled children are ranked above all non-incumbent children. Among the remaining children, priorities follow the family master list ▹ \triangleright ▹ , with arbitrary strict tie-breaking between children of the same family. In particular, d ∗ d^* d ∗ has no initially enrolled child, and therefore a ∗ a^* a ∗ is ranked above every clause child assigned there in Y Y Y . At each clause daycare e j e_j e j , its three initially enrolled clause children are ranked above the non-incumbent dummy child z j z_j z j . At each chain daycare r i r_i r i , the two chain children initially enrolled there, namely those associated with variable v i − 1 v_{i-1} v i − 1 , are ranked above all non-incumbents, and the latter are ordered according to ▹ \triangleright ▹ . Hence, all daycare priority lists are master-list consistent up to initial enrollments.
The construction is polynomial in the size of B B B , every family has at most three children, and the potentially envious family f ∗ f^* f ∗ has only one child.
Correctness. We show that B B B is satisfiable if and only if f ∗ f^* f ∗ has weakly justified envy by master list and resettlement.
( ⇒ ) (\Rightarrow) ( ⇒ ) Suppose that B B B admits a satisfying truth assignment. Define
G = { f i T : v i = T r u e } ∪ { f i F : v i = F a l s e } . G=\{f_i^T:v_i=\mathrm{True}\}\cup\{f_i^F:v_i=\mathrm{False}\}. G = { f i T : v i = True } ∪ { f i F : v i = False } .
Thus, for every variable v i v_i v i , exactly one of f i T f_i^T f i T and f i F f_i^F f i F belongs to G G G .
By construction,
W ≻ f ∗ Y f ∗ , W\succ_{f^*}Y_{f^*}, W ≻ f ∗ Y f ∗ ,
so Condition (1) holds.
At d ∗ d^* d ∗ , child a ∗ a^* a ∗ has higher priority than every currently assigned clause child. Moreover, removing the assignments of the families in G G G removes clause children from d ∗ d^* d ∗ . Hence a ∗ a^* a ∗ is accepted, and
W ⊆ C h D ( Y ∖ ( Y f ∗ ∪ Y G ) ∪ W ) . W\subseteq Ch_D\left(Y\setminus(Y_{f^*}\cup Y_G)\cup W\right). W ⊆ C h D ( Y ∖ ( Y f ∗ ∪ Y G ) ∪ W ) .
Thus, Condition (2) holds.
Every family in G G G belongs to L f ∗ ( W , Y ) L_{f^*}(W,Y) L f ∗ ( W , Y ) because it has clause children assigned to d ∗ d^* d ∗ that have lower priority than a ∗ a^* a ∗ . Moreover,
f ∗ ▹ g for every g ∈ G . f^*\triangleright g\qquad\text{for every }g\in G. f ∗ ▹ g for every g ∈ G .
Hence, Condition (3) holds.
It remains to verify resettlement feasibility. Consider first a chain daycare r i r_i r i . Exactly one of the two families associated with variable v i − 1 v_{i-1} v i − 1 belongs to G G G , so exactly one chain child of v i − 1 v_{i-1} v i − 1 returns to r i r_i r i through resettlement. At the same time, exactly one of a i T a_i^T a i T and a i F a_i^F a i F remains at r i r_i r i in the current matching. Hence, r i r_i r i contains exactly two children after resettlement.
Next consider a clause daycare e j e_j e j . The dummy child z j z_j z j remains assigned there. A clause child returns to e j e_j e j under resettlement precisely when the corresponding literal of C j C_j C j is false under the chosen truth assignment. Since the truth assignment satisfies C j C_j C j , at most two of its three literals are false. Therefore, at most two clause children return to e j e_j e j . Together with z j z_j z j , daycare e j e_j e j contains at most three children, which respects its capacity.
Finally, at d ∗ d^* d ∗ , every family in G G G removes two clause children, whereas only a ∗ a^* a ∗ is added. Since G G G is nonempty, capacity is respected.
Therefore,
Y ∖ ( Y f ∗ ∪ Y G ) ∪ ( W ∪ ω G ) Y\setminus(Y_{f^*}\cup Y_G)\cup(W\cup\omega_G) Y ∖ ( Y f ∗ ∪ Y G ) ∪ ( W ∪ ω G )
is feasible, and Condition (4) holds. Hence, f ∗ f^* f ∗ has weakly justified envy by master list and resettlement.
( ⇐ ) (\Leftarrow) ( ⇐ ) Conversely, suppose that f ∗ f^* f ∗ has weakly justified envy by master list and resettlement through W W W and some nonempty set G G G .
By construction, the only families in L f ∗ ( W , Y ) L_{f^*}(W,Y) L f ∗ ( W , Y ) are the variable families f i T f_i^T f i T and f i F f_i^F f i F . Hence, G G G contains only variable families.
For every variable v i v_i v i , define
x i = ∣ G ∩ { f i T , f i F } ∣ . x_i=\left|G\cap\{f_i^T,f_i^F\}\right|. x i = G ∩ { f i T , f i F } .
Thus,
x i ∈ { 0 , 1 , 2 } . x_i\in\{0,1,2\}. x i ∈ { 0 , 1 , 2 } .
Since G G G is nonempty, there exists some j j j with x j ≥ 1 x_j\ge1 x j ≥ 1 .
For every i i i , with indices taken modulo n n n , consider daycare r i + 1 r_{i+1} r i + 1 . In the resettled matching, x i x_i x i chain children associated with variable v i v_i v i return to r i + 1 r_{i+1} r i + 1 , while 2 − x i + 1 2-x_{i+1} 2 − x i + 1 of the two currently assigned chain children a i + 1 T , a i + 1 F a_{i+1}^T,a_{i+1}^F a i + 1 T , a i + 1 F remain there. Hence, feasibility gives
x i + ( 2 − x i + 1 ) ≤ 2 , x_i+(2-x_{i+1})\le2, x i + ( 2 − x i + 1 ) ≤ 2 ,
and therefore
x i + 1 ≥ x i . x_{i+1}\ge x_i. x i + 1 ≥ x i .
Applying these inequalities cyclically yields
x 1 = x 2 = ⋯ = x n . x_1=x_2=\cdots=x_n. x 1 = x 2 = ⋯ = x n .
Since G ≠ ∅ G\ne\varnothing G = ∅ , their common value is either 1 or 2. The common value cannot be 2. Indeed, in that case every variable family belongs to G G G . Consequently, at every clause daycare e j e_j e j , all three clause children corresponding to the three literals of C j C_j C j return through resettlement. Together with the dummy child z j z_j z j , this would give four children at the capacity-three daycare e j e_j e j , contradicting Condition (4). Hence,
x i = 1 for every i = 1 , … , n . x_i = 1 \qquad\text{for every } i=1,\ldots,n. x i = 1 for every i = 1 , … , n .
Therefore, exactly one of f i T f_i^T f i T and f i F f_i^F f i F belongs to G G G for every variable. Define a truth assignment by
v i = T r u e ⟺ f i T ∈ G . v_i = \mathrm{True} \quad\Longleftrightarrow\quad f_i^T \in G. v i = True ⟺ f i T ∈ G .
Consider any clause C j C_j C j . The dummy child z j z_j z j remains assigned to e j e_j e j . For every literal of C j C_j C j that is false under the induced truth assignment, the corresponding selected variable family belongs to G G G , and hence its clause child returns to e j e_j e j through resettlement.
If all three literals in C j C_j C j were false, then all three corresponding clause children would return to e j e_j e j . Together with z j z_j z j , daycare e j e_j e j would contain four children despite having capacity 3, contradicting Condition (4). Hence, every clause contains at least one true literal. Therefore, the induced truth assignment satisfies B B B .
We conclude that B B B is satisfiable if and only if f ∗ f^* f ∗ has weakly justified envy by master list and resettlement. Since the reduction is polynomial, the problem is NP-hard. Together with membership in NP, the problem is NP-complete.
Theorem 15. Finding a feasible and individually rational matching that is both non-wasteful and strongly fair by master list and resettlement is PLS-hard. The result holds even if
every daycare has capacity at most four; and
daycare priorities are master-list consistent up to initial enrollments.
Proof. We reduce from the PLS-hard computation problem for non-wasteful and FMR-fair matchings established in Theorem 12 . Consider any instance used in the PLS-hardness reduction of that theorem, and use exactly the same daycare-matching instance and family master list.
By Theorem 13, the constructed instance admits a feasible and individually rational matching that is both non-wasteful and strongly fair by master list and resettlement. Let Y Y Y be any such matching. By Proposition 5, strong fairness by master list and resettlement implies fairness by master list and resettlement. Hence, Y Y Y is also a feasible and individually rational matching that is both non-wasteful and FMR-fair. Therefore, Y Y Y is a valid solution to the source search problem of Theorem 12 .
Thus, both the instance map and the solution map are the identity and are computable in polynomial time. The reduction also preserves all structural restrictions of Theorem 12 . Consequently, finding a non-wasteful and SFMR-fair matching is PLS-hard even when every daycare has capacity at most four and daycare priorities are master-list consistent up to initial enrollments.
:::
Weakening Non-wastefulness
In this section, we preserve fairness and explore which weaker variants of non-wastefulness can be reconciled with it. We begin by extending the cutoff algorithm [25 , 6 ] , originally proposed to achieve fairness in matching problems with complex distributional constraints, to our setting with joint family preferences. We show, however, that the extended algorithm fails to satisfy fairness (Definition 7), even in the absence of initial enrollments. Nevertheless, it satisfies the weaker notion of fairness by replacement (Definition 10).
To resolve this limitation, we introduce a new relaxation of non-wastefulness, termed fairness-preserving non-wastefulness , which is compatible with fairness. Furthermore, this concept is formulated in a general manner and can be adapted to accommodate other notions of fairness.
Cutoff Scores
Before introducing the Generalized Cutoff Algorithm, we first define the cutoff scores used in the procedure. For each daycare d d d , assign each contract ( c , d ) ∈ X d (c,d) \in\mathcal{X}_d ( c , d ) ∈ X d a priority score s d ( c ) s_d(c) s d ( c ) consistent with the priority ordering ≻ d \succ_d ≻ d , where a higher score represents a higher priority. We normalize the scores so that
s d ( c ) ∈ { 1 , … , ∣ C ∣ } , s_d(c) \in\{1,\ldots,|C|\}, s d ( c ) ∈ { 1 , … , ∣ C ∣ } ,
with higher-priority children receiving higher scores, and use ∣ C ∣ + 1 |C|+1 ∣ C ∣ + 1 as an artificial cutoff above the score of every child.
Algorithm 4: Generalized Cutoff (GC) Algorithm
Input: An instance I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) I = (C, F, D, Q, \mathcal{X}, \omega, \succ_F, \succ_D) I = ( C , F , D , Q , X , ω , ≻ F , ≻ D )
Output: A feasible and individually rational matching Y Y Y
Initialize C u t ( d ) ← ∣ C ∣ + 1 Cut(d) \leftarrow|C| + 1 C u t ( d ) ← ∣ C ∣ + 1 for every daycare d ∈ D d \in D d ∈ D ;
Induced matching: Given C u t Cut C u t , each family f f f selects its most preferred assignment W ≻ f ω f W \succ_f \omega_f W ≻ f ω f such that every newly obtained contract ( c , d ) ∈ W ∖ ω f (c,d) \in W \setminus\omega_f ( c , d ) ∈ W ∖ ω f satisfies s d ( c ) ≥ C u t ( d ) s_d(c) \ge Cut(d) s d ( c ) ≥ C u t ( d ) . Let Y Y Y be the union of these assignments over all families;
while there exists a daycare d ∈ D d \in D d ∈ D such that decreasing C u t ( d ) Cut(d) C u t ( d ) by one results in a feasible induced matching do
C u t ( d ) ← C u t ( d ) − 1 Cut(d) \leftarrow Cut(d) - 1 C u t ( d ) ← C u t ( d ) − 1 ;
Recompute the induced matching Y Y Y ;
end
return Y Y Y ;
For each daycare d d d , let
C u t ( d ) ∈ { 1 , … , ∣ C ∣ + 1 } Cut(d) \in\{1,\ldots,|C|+1\} C u t ( d ) ∈ { 1 , … , ∣ C ∣ + 1 }
denote its cutoff score. A newly obtained contract ( c , d ) (c,d) ( c , d ) is available to child c c c if
s d ( c ) ≥ C u t ( d ) . s_d(c) \ge Cut(d). s d ( c ) ≥ C u t ( d ) .
Thus, lowering C u t ( d ) Cut(d) C u t ( d ) weakly expands the set of contracts available at daycare d d d .
Given a cutoff vector C u t = ( C u t ( d ) ) d ∈ D Cut = (Cut(d))_{d \in D} C u t = ( C u t ( d ) ) d ∈ D , define the set of assignments available to family f f f under C u t Cut C u t as
W f ( C u t ) = { W ∈ W f ∣ W ≻ f ω f and s d ( c ) ≥ C u t ( d ) for every ( c , d ) ∈ W ∖ ω f } . \mathcal{W}_f(Cut) = \{W \in\mathcal{W}_f \mid W \succ_f \omega_f \text{ and } s_d(c) \ge Cut(d) \text{ for every } (c,d) \in W \setminus\omega_f\}. W f ( C u t ) = { W ∈ W f ∣ W ≻ f ω f and s d ( c ) ≥ C u t ( d ) for every ( c , d ) ∈ W ∖ ω f } .
In other words, an assignment is available to a family if it is individually rational and every newly obtained contract meets the corresponding daycare cutoff. Contracts retained from a family’s initial assignment remain available by virtue of the family’s initial entitlement.
Since ω f ∈ W f ( C u t ) \omega_f \in\mathcal{W}_f(Cut) ω f ∈ W f ( C u t ) for every cutoff vector C u t Cut C u t , the set W f ( C u t ) \mathcal{W}_f(Cut) W f ( C u t ) is always nonempty. Let Y f ( C u t ) Y_f(Cut) Y f ( C u t ) denote the most preferred assignment in W f ( C u t ) \mathcal{W}_f(Cut) W f ( C u t ) according to ≻ f \succ_f ≻ f .
We define the matching induced by C u t Cut C u t as
Y ( C u t ) = ⋃ f ∈ F Y f ( C u t ) . Y(Cut) = \bigcup_{f \in F} Y_f(Cut). Y ( C u t ) = f ∈ F ⋃ Y f ( C u t ) .
Since family preferences are strict, Y ( C u t ) Y(Cut) Y ( C u t ) is uniquely determined by C u t Cut C u t . Although Y ( C u t ) Y(Cut) Y ( C u t ) is acceptable for both families and daycares by construction, it need not be feasible, because families choose their assignments independently under the same cutoff vector.
Generalized Cutoff (GC) Algorithm
We next introduce the Generalized Cutoff (GC) Algorithm, inspired by the Cutoff Algorithm [25 , 6 ] and adapted to accommodate joint preferences among siblings.
We now describe Algorithm 4 in detail. The GC Algorithm starts with the cutoff of every daycare set to ∣ C ∣ + 1 |C| + 1 ∣ C ∣ + 1 . At these cutoffs, no newly obtained contract is available, so the induced matching coincides with the initial matching ω \omega ω . The algorithm then searches for a daycare whose cutoff can be decreased by one while keeping the induced matching feasible. If such a daycare exists, its cutoff is decreased by one and the induced matching is recomputed. The process continues until no daycare cutoff can be decreased further without making the induced matching infeasible.
A key distinction between the Generalized Cutoff Algorithm and the original one lies in the construction of the induced matching. In our setting, preferences are defined at the family level rather than independently for individual children. As a result, lowering the cutoff of a single daycare may make an entire joint assignment available to a family and thereby change the assignments of several siblings simultaneously across different daycares. This interaction across daycares is the main challenge in extending the cutoff approach to matching markets with siblings.
Proposition 7. The Generalized Cutoff Algorithm returns a matching that is both individually rational and feasible. Moreover, the algorithm runs in O ( ℓ ⋅ ∣ C ∣ ⋅ ∣ D ∣ ) O(\ell\cdot|C| \cdot|D|) O ( ℓ ⋅ ∣ C ∣ ⋅ ∣ D ∣ ) time, where ℓ \ell ℓ denotes the total length of all families’ preference lists.
Proof. Initially, all daycare cutoffs are set to ∣ C ∣ + 1 |C|+1 ∣ C ∣ + 1 . Since no newly obtained contract is available at these cutoffs, the induced matching coincides with the initial matching ω \omega ω , which is feasible and individually rational.
Throughout the algorithm, each family selects its most preferred assignment among those that are individually rational and available under the current cutoffs. Hence, every induced matching is individually rational. Moreover, a cutoff is decreased only when the resulting induced matching is feasible. Thus, feasibility is preserved throughout the algorithm.
Each daycare cutoff starts at ∣ C ∣ + 1 |C|+1 ∣ C ∣ + 1 and can be decreased to 1, so each cutoff can be reduced at most ∣ C ∣ |C| ∣ C ∣ times. Therefore, the algorithm performs at most ∣ C ∣ ∣ D ∣ |C||D| ∣ C ∣∣ D ∣ cutoff reductions and must terminate. For any fixed cutoff vector, the induced matching can be computed in O ( ℓ ) O(\ell) O ( ℓ ) time by scanning the families’ preference lists, where ℓ \ell ℓ denotes the total length of all families’ preference lists. Hence, the overall running time is O ( ℓ ⋅ ∣ C ∣ ⋅ ∣ D ∣ ) O(\ell\cdot|C| \cdot|D|) O ( ℓ ⋅ ∣ C ∣ ⋅ ∣ D ∣ ) .
Proposition 8. The Generalized Cutoff Algorithm does not necessarily satisfy fairness or fairness by replacement and withdrawal, even when no child is initially enrolled.
Proof. Consider three families: f 1 f_1 f 1 with two children C f 1 = ( c 1 , c 2 ) C_{f_1}=(c_1,c_2) C f 1 = ( c 1 , c 2 ) , f 2 f_2 f 2 with one child C f 2 = ( c 3 ) C_{f_2}=(c_3) C f 2 = ( c 3 ) , and f 3 f_3 f 3 with one child C f 3 = ( c 4 ) C_{f_3}=(c_4) C f 3 = ( c 4 ) . There are two daycares d 1 d_1 d 1 and d 2 d_2 d 2 , each with capacity one, and no child is initially enrolled. The family preferences and daycare priorities are given by
≻ f 1 : { ( c 1 , d 1 ) , ( c 2 , d 2 ) } ≻ f 1 { ( c 1 , d 2 ) } ≻ f 1 ∅ , \succ_{f_1}: \{(c_1,d_1),(c_2,d_2)\} \succ_{f_1} \{(c_1,d_2)\} \succ_{f_1} \varnothing, ≻ f 1 : {( c 1 , d 1 ) , ( c 2 , d 2 )} ≻ f 1 {( c 1 , d 2 )} ≻ f 1 ∅ , ≻ f 2 : ( c 3 , d 1 ) ≻ f 2 ∅ , ≻ d 1 : c 1 ≻ d 1 c 3 , \succ_{f_2}: (c_3,d_1) \succ_{f_2} \varnothing,\qquad\succ_{d_1}: c_1 \succ_{d_1} c_3, ≻ f 2 : ( c 3 , d 1 ) ≻ f 2 ∅ , ≻ d 1 : c 1 ≻ d 1 c 3 , ≻ f 3 : ( c 4 , d 2 ) ≻ f 3 ∅ , ≻ d 2 : c 1 ≻ d 2 c 2 ≻ d 2 c 4 . \succ_{f_3}: (c_4,d_2) \succ_{f_3} \varnothing,\qquad\succ_{d_2}: c_1 \succ_{d_2} c_2 \succ_{d_2} c_4. ≻ f 3 : ( c 4 , d 2 ) ≻ f 3 ∅ , ≻ d 2 : c 1 ≻ d 2 c 2 ≻ d 2 c 4 . Accordingly, assign the priority scores
s d 1 ( c 1 ) = 4 , s d 1 ( c 3 ) = 3 , s_{d_1}(c_1)=4,\qquad s_{d_1}(c_3)=3, s d 1 ( c 1 ) = 4 , s d 1 ( c 3 ) = 3 , and
s d 2 ( c 1 ) = 4 , s d 2 ( c 2 ) = 3 , s d 2 ( c 4 ) = 2. s_{d_2}(c_1)=4,\qquad s_{d_2}(c_2)=3,\qquad s_{d_2}(c_4)=2. s d 2 ( c 1 ) = 4 , s d 2 ( c 2 ) = 3 , s d 2 ( c 4 ) = 2. Initially,
( C u t ( d 1 ) , C u t ( d 2 ) ) = ( 5 , 5 ) , (Cut(d_1),Cut(d_2))=(5,5), ( C u t ( d 1 ) , C u t ( d 2 )) = ( 5 , 5 ) , and the induced matching is empty. Consider an execution in which the cutoff of d 1 d_1 d 1 is lowered first. When C u t ( d 1 ) Cut(d_1) C u t ( d 1 ) reaches 3, child c 3 c_3 c 3 becomes available at d 1 d_1 d 1 , and the induced matching becomes
{ ( c 3 , d 1 ) } . \{(c_3,d_1)\}. {( c 3 , d 1 )} . The cutoff of d 1 d_1 d 1 can be further lowered to 1 without changing the induced matching, because f 1 f_1 f 1 ’s preferred joint assignment is still unavailable at d 2 d_2 d 2 .
Next, lower the cutoff of d 2 d_2 d 2 from 5 to 4. Contract ( c 1 , d 2 ) (c_1,d_2) ( c 1 , d 2 ) then becomes available to f 1 f_1 f 1 , yielding the feasible induced matching
Y = { ( c 3 , d 1 ) , ( c 1 , d 2 ) } . Y=\{(c_3,d_1),(c_1,d_2)\}. Y = {( c 3 , d 1 ) , ( c 1 , d 2 )} . Thus, the cutoff vector is now
( C u t ( d 1 ) , C u t ( d 2 ) ) = ( 1 , 4 ) . (Cut(d_1),Cut(d_2))=(1,4). ( C u t ( d 1 ) , C u t ( d 2 )) = ( 1 , 4 ) . The cutoff of d 1 d_1 d 1 cannot be lowered further. If the cutoff of d 2 d_2 d 2 is lowered from 4 to 3, contract ( c 2 , d 2 ) (c_2,d_2) ( c 2 , d 2 ) becomes available. Since ( c 1 , d 1 ) (c_1,d_1) ( c 1 , d 1 ) is already available under C u t ( d 1 ) = 1 Cut(d_1)=1 C u t ( d 1 ) = 1 , family f 1 f_1 f 1 then chooses its most preferred assignment
W = { ( c 1 , d 1 ) , ( c 2 , d 2 ) } . W=\{(c_1,d_1),(c_2,d_2)\}. W = {( c 1 , d 1 ) , ( c 2 , d 2 )} . At the same time, f 2 f_2 f 2 continues to choose ( c 3 , d 1 ) (c_3,d_1) ( c 3 , d 1 ) . The resulting induced matching therefore assigns both c 1 c_1 c 1 and c 3 c_3 c 3 to d 1 d_1 d 1 and is infeasible. Hence, no cutoff can be decreased further, and the GC Algorithm terminates at Y Y Y .
However, family f 1 f_1 f 1 strictly prefers W W W to its current assignment
Y f 1 = { ( c 1 , d 2 ) } . Y_{f_1}=\{(c_1,d_2)\}. Y f 1 = {( c 1 , d 2 )} . Under the deviation to W W W , contract ( c 1 , d 1 ) (c_1,d_1) ( c 1 , d 1 ) replaces ( c 3 , d 1 ) (c_3,d_1) ( c 3 , d 1 ) , where c 1 ≻ d 1 c 3 c_1 \succ_{d_1} c_3 c 1 ≻ d 1 c 3 , while the withdrawal of ( c 1 , d 2 ) (c_1,d_2) ( c 1 , d 2 ) makes the seat at d 2 d_2 d 2 available for ( c 2 , d 2 ) (c_2,d_2) ( c 2 , d 2 ) . Therefore, f 1 f_1 f 1 has justified envy by replacement and withdrawal through W W W .
Thus, Y Y Y does not satisfy fairness by replacement and withdrawal. By Proposition 3, it does not satisfy fairness either. Hence, the Generalized Cutoff Algorithm does not necessarily satisfy either property.
Proposition 9. Suppose that each daycare prioritizes its initially enrolled children over children who are not initially enrolled there. Then the Generalized Cutoff Algorithm satisfies fairness by replacement.
Proof. Let Y = Y ( C u t ) Y = Y(Cut) Y = Y ( C u t ) be the matching returned by the GC Algorithm. Suppose, toward a contradiction, that some family f f f has justified envy by replacement through an assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f .
By the definition of fairness by replacement, for every newly obtained contract ( c , d ) ∈ W ∖ Y f (c,d) \in W \setminus Y_f ( c , d ) ∈ W ∖ Y f , there exists a distinct rejected contract ( c ′ , d ) ∈ Y ∖ Y f (c',d) \in Y \setminus Y_f ( c ′ , d ) ∈ Y ∖ Y f such that c ≻ d c ′ c \succ_d c' c ≻ d c ′ . We first observe that ( c ′ , d ) (c',d) ( c ′ , d ) cannot be an initial contract of c ′ c' c ′ . Indeed, an initially enrolled child has higher priority at its initial daycare than any child who is not initially enrolled there. Hence, such a contract cannot be replaced by ( c , d ) (c,d) ( c , d ) with c ≻ d c ′ c \succ_d c' c ≻ d c ′ .
Therefore, ( c ′ , d ) (c',d) ( c ′ , d ) is a newly obtained contract in the assignment of its family. Since Y Y Y is induced by the final cutoff vector, ( c ′ , d ) (c',d) ( c ′ , d ) satisfies the cutoff at d d d :
s d ( c ′ ) ≥ C u t ( d ) . s_d(c') \ge Cut(d). s d ( c ′ ) ≥ C u t ( d ) .
Because c ≻ d c ′ c \succ_d c' c ≻ d c ′ , we have
s d ( c ) > s d ( c ′ ) ≥ C u t ( d ) , s_d(c) > s_d(c') \ge Cut(d), s d ( c ) > s d ( c ′ ) ≥ C u t ( d ) ,
and hence ( c , d ) (c,d) ( c , d ) also satisfies the cutoff at d d d .
Thus, every contract in W ∖ Y f W \setminus Y_f W ∖ Y f satisfies the corresponding daycare cutoff. Contracts in W ∩ Y f W \cap Y_f W ∩ Y f are already held by f f f and hence also satisfy the relevant availability requirements. Since W ≻ f Y f ⪰ f ω f W \succ_f Y_f \succeq_f \omega_f W ≻ f Y f ⪰ f ω f , the assignment W W W is individually rational. It follows that
W ∈ W f ( C u t ) . W \in\mathcal{W}_f(Cut). W ∈ W f ( C u t ) .
However, by definition of the induced matching, Y f = Y f ( C u t ) Y_f = Y_f(Cut) Y f = Y f ( C u t ) is the most preferred assignment of f f f in W f ( C u t ) \mathcal{W}_f(Cut) W f ( C u t ) . This contradicts W ≻ f Y f W \succ_f Y_f W ≻ f Y f .
Therefore, no family has justified envy by replacement, and the matching returned by the GC Algorithm satisfies fairness by replacement.
Proposition 10. The Generalized Cutoff Algorithm does not necessarily satisfy non-wastefulness.
Proof. Consider three families: f 1 f_1 f 1 with two children C f 1 = ( c 1 , c 3 ) C_{f_1} = (c_1,c_3) C f 1 = ( c 1 , c 3 ) , f 2 f_2 f 2 with one child C f 2 = ( c 2 ) C_{f_2} = (c_2) C f 2 = ( c 2 ) , and f 3 f_3 f 3 with one child C f 3 = ( c 4 ) C_{f_3} = (c_4) C f 3 = ( c 4 ) . There are two daycares d 1 d_1 d 1 and d 2 d_2 d 2 , each with capacity one, and no child is initially enrolled.
Family f 1 f_1 f 1 has only one acceptable assignment,
{ ( c 1 , d 1 ) , ( c 3 , d 2 ) } , \{(c_1,d_1),(c_3,d_2)\}, {( c 1 , d 1 ) , ( c 3 , d 2 )} ,
while the preferences of f 2 f_2 f 2 and f 3 f_3 f 3 are
( c 2 , d 1 ) ≻ f 2 ( c 2 , d 2 ) ≻ f 2 ∅ (c_2,d_1) \succ_{f_2} (c_2,d_2) \succ_{f_2} \varnothing ( c 2 , d 1 ) ≻ f 2 ( c 2 , d 2 ) ≻ f 2 ∅
and
( c 4 , d 2 ) ≻ f 3 ∅ , (c_4,d_2) \succ_{f_3} \varnothing, ( c 4 , d 2 ) ≻ f 3 ∅ ,
respectively. Both daycares have the same priority ordering
c 1 ≻ c 2 ≻ c 3 ≻ c 4 , c_1 \succ c_2 \succ c_3 \succ c_4, c 1 ≻ c 2 ≻ c 3 ≻ c 4 ,
with priority scores
s d ( c 1 ) = 4 , s d ( c 2 ) = 3 , s d ( c 3 ) = 2 , s d ( c 4 ) = 1 s_d(c_1) = 4,\qquad s_d(c_2) = 3,\qquad s_d(c_3) = 2,\qquad s_d(c_4) = 1 s d ( c 1 ) = 4 , s d ( c 2 ) = 3 , s d ( c 3 ) = 2 , s d ( c 4 ) = 1
for each d ∈ { d 1 , d 2 } d \in\{d_1,d_2\} d ∈ { d 1 , d 2 } . Initially, both cutoffs are equal to 5. Consider an execution in which the cutoff of d 1 d_1 d 1 is lowered first. When C u t ( d 1 ) Cut(d_1) C u t ( d 1 ) reaches 3, ( c 2 , d 1 ) (c_2,d_1) ( c 2 , d 1 ) becomes available to f 2 f_2 f 2 , and the induced matching becomes
Y = { ( c 2 , d 1 ) } . Y = \{(c_2,d_1)\}. Y = {( c 2 , d 1 )} .
The cutoff of d 1 d_1 d 1 can subsequently be lowered to 1 without changing the induced matching.
Next, lower the cutoff of d 2 d_2 d 2 . Its cutoff can be lowered from 5 to 3 while preserving feasibility. However, lowering it from 3 to 2 makes ( c 3 , d 2 ) (c_3,d_2) ( c 3 , d 2 ) available. Since ( c 1 , d 1 ) (c_1,d_1) ( c 1 , d 1 ) is already available under C u t ( d 1 ) = 1 Cut(d_1) = 1 C u t ( d 1 ) = 1 , the joint assignment
{ ( c 1 , d 1 ) , ( c 3 , d 2 ) } \{(c_1,d_1),(c_3,d_2)\} {( c 1 , d 1 ) , ( c 3 , d 2 )}
becomes available to f 1 f_1 f 1 . Family f 1 f_1 f 1 then selects this assignment, while f 2 f_2 f 2 continues to select ( c 2 , d 1 ) (c_2,d_1) ( c 2 , d 1 ) , making the induced matching infeasible at d 1 d_1 d 1 . Hence, the GC Algorithm can terminate with
( C u t ( d 1 ) , C u t ( d 2 ) ) = ( 1 , 3 ) (Cut(d_1),Cut(d_2)) = (1,3) ( C u t ( d 1 ) , C u t ( d 2 )) = ( 1 , 3 )
and
Y = { ( c 2 , d 1 ) } . Y = \{(c_2,d_1)\}. Y = {( c 2 , d 1 )} .
Algorithm 5: Fairness-preserving Non-Wasteful (FN) Algorithm
Input: An instance I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) I = (C, F, D, Q, \mathcal{X}, \omega, \succ_F, \succ_D) I = ( C , F , D , Q , X , ω , ≻ F , ≻ D ) , a fairness property A A A , and a feasible and individually rational matching Y Y Y satisfying A A A
Output: A matching Y ⊆ X Y \subseteq\mathcal{X} Y ⊆ X
while there exists a family f f f and a new assignment W W W s.t.:
family f f f prefers W W W over Y f Y_f Y f , and
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W) Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W )
the new matching Y ∖ Y f ∪ W Y \setminus Y_f \cup W Y ∖ Y f ∪ W satisfies A A A
do
Update Y ← Y ∖ Y f ∪ W Y \leftarrow Y \setminus Y_f \cup W Y ← Y ∖ Y f ∪ W
end
return Y Y Y
The matching Y Y Y is wasteful. Indeed, daycare d 2 d_2 d 2 is vacant, and family f 3 f_3 f 3 strictly prefers
W = { ( c 4 , d 2 ) } W = \{(c_4,d_2)\} W = {( c 4 , d 2 )}
to its current assignment. Moreover,
Y ∪ W = C h D ( Y ∪ W ) , Y \cup W = Ch_D(Y \cup W), Y ∪ W = C h D ( Y ∪ W ) ,
so f 3 f_3 f 3 can improve its assignment without rejecting any existing contract. Therefore, Y Y Y does not satisfy non-wastefulness.
Fairness-preserving Non-wastefulness
We now introduce a relaxation of non-wastefulness to address the inherent tension between fairness and non-wastefulness in matching with siblings and initial enrollments. The idea is to permit waste only when eliminating it would violate fairness. More precisely, whenever a family can improve its assignment without displacing any other family, we require such an improvement if the resulting matching continues to satisfy fairness.
Because eliminating waste corresponds to improving a family’s assignment without harming other families, this notion provides a principled way to identify welfare improvements that are compatible with fairness. The definition is analogous to the cutoff non-wastefulness notion introduced by Aziz et al. [ [6 ] . Importantly, it is not tied to a particular fairness criterion and can be defined with respect to any fairness property A A A .
Definition 15 (Fairness-preserving Non-wastefulness). Let A A A be a fairness property. Given a feasible and individually rational matching Y Y Y and a new assignment W W W , a family f f f is said to conditionally utilize vacant seats with respect to A A A if the following conditions hold:
(1) improvement: W ≻ f Y f W \succ_f Y_f W ≻ f Y f .
(2) no rejection: Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W) Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) .
(3) preservation of fairness: The matching Y ∖ Y f ∪ W Y \setminus Y_f \cup W Y ∖ Y f ∪ W satisfies property A A A .
A feasible and individually rational matching Y Y Y is said to be fairness-preserving non-wasteful with respect to A A A if no family can conditionally utilize vacant seats with respect to A A A .
We next introduce the Fairness-preserving Non-Wasteful (FN) Algorithm. Starting from a feasible and individually rational matching satisfying property A A A , the algorithm repeatedly allows a family to improve its assignment whenever the improvement does not displace any other family and preserves property A A A . The process continues until no such improvement is possible.
Theorem 16. Let A A A be a fairness property, and let Y 0 Y^0 Y 0 be a feasible and individually rational matching satisfying A A A . Then the Fairness-preserving Non-Wasteful Algorithm, initialized at Y 0 Y^0 Y 0 , terminates at a feasible and individually rational matching that satisfies A A A and is fairness-preserving non-wasteful with respect to A A A .
Moreover, if property A A A can be checked in polynomial time, then it runs in polynomial time given such an initial matching Y 0 Y^0 Y 0 . Consequently, if a feasible and individually rational matching satisfying A A A can also be found in polynomial time, then an A A A -fairness-preserving non-wasteful matching can be computed in polynomial time.
Proof. Start from the given feasible and individually rational matching Y 0 Y^0 Y 0 satisfying property A A A , and apply Algorithm 5. Consider an update by a family f f f from its current assignment Y f Y_f Y f to an assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f . By the update condition,
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) , (2) Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W), \tag*{(2)} Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) , (2)
so no contract is rejected and the updated matching is feasible. The assignments of all families other than f f f remain unchanged. Moreover, since W ≻ f Y f W \succ_f Y_f W ≻ f Y f and Y f ⪰ f ω f Y_f \succeq_f \omega_f Y f ⪰ f ω f , the new assignment W W W is individually rational for f f f . Hence individual rationality is preserved. Finally, the algorithm performs the update only if the resulting matching continues to satisfy property A A A . Thus, every update preserves feasibility, individual rationality, and property A A A .
Each update strictly improves the assignment of exactly one family and does not change the assignments of any other family. Therefore, a family f f f can be updated at most ∣ W f ∣ − 1 |W_f|-1 ∣ W f ∣ − 1 times. Hence the total number of updates is at most
∑ f ∈ F ∣ W f ∣ , \sum_{f \in\mathcal{F}} |W_f|, f ∈ F ∑ ∣ W f ∣ ,
and the algorithm terminates.
Upon termination, there is no family f f f and assignment W ≻ f Y f W \succ_f Y_f W ≻ f Y f such that
Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W ) Y \setminus Y_f \cup W = Ch_D(Y \setminus Y_f \cup W) Y ∖ Y f ∪ W = C h D ( Y ∖ Y f ∪ W )
and the resulting matching satisfies A A A . By Definition 15, the final matching is fairness-preserving non-wasteful with respect to A A A . Since every update preserves A A A , the final matching also satisfies property A A A .
Finally, suppose that property A A A can be checked in polynomial time. For each family f f f , the explicitly represented assignments W ≻ f Y f W \succ_f Y_f W ≻ f Y f can be enumerated. For each candidate assignment, the no-rejection condition can be checked by computing the daycare choice functions, and preservation of A A A can be verified in polynomial time. Since the number of updates and the total number of candidate assignments are polynomial in the input size, Algorithm 5 runs in polynomial time given the initial matching Y 0 Y^0 Y 0 .
Corollary 2. There exists a feasible and individually rational matching that is strongly fair by master list and resettlement and fairness-preserving non-wasteful with respect to SFMR.
Proof. By Theorem 13, there exists a feasible and individually rational matching satisfying SFMR. Apply Theorem 16 with A = S F M R A = \mathrm{SFMR} A = SFMR .
Corollary 2 is an existence result. It does not imply a polynomial-time algorithm for the SFMR-based variant of FN, since verifying SFMR is coNP-complete and the existence algorithm for an SFMR matching is not known to run in polynomial time.
Conclusion
In this paper, we studied the tension between fairness and non-wastefulness in matching markets with siblings and initial enrollments. We first developed a unified framework for stability, fairness, and non-wastefulness that accommodates joint family preferences and seat withdrawal. We then explored two complementary approaches to restoring compatibility when stability may fail. On the one hand, we preserved non-wastefulness while progressively weakening fairness through replacement, master-list restrictions, and resettlement. In particular, resettlement restores universal existence when combined with a family master list, and its database extension yields a stronger fairness guarantee. On the other hand, we preserved fairness while relaxing non-wastefulness through generalized cutoffs and fairness-preserving non-wastefulness. The proposed GC, FN, SS, and GI algorithms illustrate four distinct ways of navigating the fairness–non-wastefulness trade-off.
Our results also reveal substantial computational barriers behind these compatibility guarantees. While several fairness notions can be verified in polynomial time, deciding whether they can coexist with non-wastefulness is NP-complete. Resettlement restores existence but does not eliminate computational difficulty: computing a non-wasteful and FMR-fair matching is PLS-complete, while verifying the stronger dominance-based fairness notion is coNP-complete and computing a non-wasteful matching satisfying it remains PLS-hard. These results highlight that axiomatic compatibility and computational tractability need not coincide.
Several directions remain for future research. One natural direction is to identify preference restrictions or structural conditions under which the computational barriers established here disappear, particularly for resettlement-based fairness and bounded family size. Another is to study incentive properties and mechanism-design questions associated with the proposed solution concepts and algorithms. Finally, integer programming formulations and large-scale empirical studies could help evaluate the practical trade-offs among fairness, non-wastefulness, family welfare, and the extent of resettlement in real daycare matching markets.
Acknowledgments
This work was supported by the Japan Science and Technology Agency under ERATO Grant Number JPMJER2301, and by the Japan Society for the Promotion of Science under Grant Number 25K03186 and 25K21277.