Manuscript Offprint
arXiv:2610.17744A Matroid Generalization of Weighted Popular Matching: Characterization and Algorithm
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study a problem that unifies two major generalizations of popular matchings in the one-sided preference model. In a bipartite graph in which each vertex, or applicant, on one side has preferences over the adjacent vertices, a matching is called popular if it does not lose a head-to-head election against any other matching. Since the seminal work of Abraham, Irving, Kavitha, and Mehlhorn, who gave the first polynomial-time algorithm for finding a popular matching, numerous generalizations of the popular matching problem have been investigated. Two prominent directions are weighted popular matchings, in which each applicant is assigned a voting weight, and popularity problems under matroid constraints. The former admits a polynomial-time algorithm due to Mestre, while the most general form of the latter is the popular common independent set problem, for which a polynomial-time algorithm is given by Kavitha, Makino, Schlotter, and Yokoi.
In this paper, we introduce the weighted popular common independent set problem, which simultaneously generalizes weighted popular matchings and popular common independent sets. Our main result is the first polynomial-time algorithm for this problem. A key ingredient of the algorithm is a solution-independent characterization of weighted popular common independent sets, which we establish in this paper. As consequences of our algorithmic result, we obtain polynomial-time algorithms for several previously unresolved problems, including weighted popular matchings with matroid constraints and weighted popular branchings.
*Kobe University, Japan, iwamasa@math.kobe-u.ac.jp.
Kyoto University, Japan, yusuke@kurims.kyoto-u.ac.jp.
The University of Tokyo, Japan, mahara@mist.i.u-tokyo.ac.jp.
Hosei University, Japan, takazawa@hosei.ac.jp.
1 Introduction
The study of matching problems with preferences [24] lies at the intersection of combinatorial optimization, algorithmic game theory, and market design. A classical solution concept in two-sided matching markets is stability, which rules out local pairwise deviations in the form of blocking pairs. Popularity, introduced by Gärdenfors [10], offers a different solution concept based on voting-theoretic optimality: a matching is popular if it does not lose a head-to-head election against any other matching. Therefore, a popular matching can be viewed as a matching that satisfies a Condorcet-type criterion and achieves a form of global optimality.
A principal model of popular matching is the one-sided preference model. In this model, we are given a bipartite graph . Each element is called an applicant or a voter, and each element is called a post. Each applicant has a total order over the posts adjacent to , or equivalently, over the edges incident to , while the posts themselves have no preferences. Let be matchings in . We say that prefers to if , where (resp. ) denotes the edge incident to in (resp. ), which may be empty. Let denote the difference in preferences between and , that is,
A matching M is called popular if for all matchings in G.
This model captures assignment problems such as the allocation of houses, jobs, or public resources to applicants. In 2005, Abraham, Irving, Kavitha, and Mehlhorn initiated the algorithmic study of popular matchings in this setting [1,2]. They revealed a useful characterization of popular matchings in terms of the first and second edges, which led to the design of polynomial-time algorithms for finding a popular matching.
These results stimulated the study of popular matchings for several generalized models and variants, including popular matchings under preferences with ties [1,2], capacitated popular matchings [25,31], optimal popular matchings [5,8,9,18,19,23,26], and popular branchings [21,29]. The two-sided preference model [12] and the roommate model [3,4,6] have also been studied, along with similar generalizations.
In this paper, we focus on two extensions in the one-sided preferences setting: weighted popular matchings [27,28] and popular common independent sets [7,13,14,16,22]. Our main contribution is to provide the first polynomial-time algorithm for finding a weighted popular common independent set, a model that simultaneously generalizes both of the above extensions.
The other matroid is an arbitrary matroid , which is given by an independence oracle. Each element is called an applicant or a voter. Each applicant is assigned a positive
Table 1: Summary of polynomial-time algorithms for popular matchings and their extensions
| Unweighted | Weighted | |
|---|---|---|
| popular matching | [1, 2] | [27, 28] |
| popular capacitated matching | [25] | [33] |
| popular matching with matroid constraints | [13] | this paper(partial result in [15]) |
| popular branching | [21] | this paper(partial result in [29]) |
| popular common independent set | [22] | this paper |
weight , and has a total order over the elements of . Note that this is in contrast to the model of optimal popular matchings, in which weights are assigned to the elements of .
Intuitively, represents the voting power of , and represents the preferences of over . A popular common independent set is a common independent set of and that does not lose to any other common independent set in a head-to-head election, which is formally defined as follows. For any pair of common independent sets and of the matroids and , we say that prefers to if either
-
and , or
-
and with .
For any pair of common independent sets and , let denote the weighted difference in preferences between and , that is,
Definition 1.1. A common independent set of and is popular if for all common independent sets .
The weighted popular common independent set problem is to find a popular common independent set, or determine that no such set exists. The main contribution of this paper is to present the first polynomial-time algorithm for this problem.
Theorem 1.2. There exists a polynomial-time algorithm for the weighted popular common independent set problem.
Table 1 summarizes known polynomial-time algorithms for popular matchings and their extensions, including the results obtained in this paper.
In particular, our algorithm yields the first polynomial-time algorithms for weighted popular matchings with matroid constraints and for weighted popular branchings, the design of which has been left open in [15] and [29], respectively; we discuss the details in the following subsections.
1.2 Previous Work
The weighted popular common independent set problem includes the following previous models as special cases.
Weighted Popular Matchings. Weighted popular matchings are obtained by assigning weights to applicants, and constitute one of the most fundamental generalizations of popular matchings. Mestre [27, 28] introduced this model in 2006. In the weighted setting, a matching is popular if no other matching receives a larger total weight of votes against it. Mestre [27, 28] gave a characterization of weighted popular matchings and a polynomial-time algorithm for finding such a matching. This work was later extended by Sng and Manlove [33] to the capacitated matching setting.
Popular Matchings and Matroids. Several generalizations of popular matchings to matroid intersection have been investigated. Kamiyama [13] first introduced a model of popular matchings with matroid constraints, which generalizes capacitated popular matchings. In this model, each post u is endowed with a matroid on the edges incident to u. An edge set M is a solution if each applicant has at most one adjacent edge in M, and the set of edges in M incident to each post u is independent in . For this model, Kamiyama [13] extended the characterization and polynomial-time algorithm for popular matchings by [1,2].
Later, the model of popular branchings is introduced by Kavitha, Király, Matuschke, Schlotter, and Schmidt-Kraepelin [21], in which popularity is defined for the branchings in a digraph. They provided a characterization of popular branchings in terms of dual certificates, and a polynomial-time algorithm for finding a popular branching.
A direct connection between popular matchings and popular branchings had not been described explicitly until Kavitha, Makino, Schlotter, and Yokoi [22] presented a model of popular common independent sets. This model discusses popularity of common independent sets in matroid intersection, and amounts to a common generalization of the models of popular matchings with matroid constraints and popular branchings. The authors presented a characterization and a polynomial-time algorithm for popular common independent sets [22].
Weighted Popular Matchings and Matroids. Weighted extensions of the above matroidal generalizations have also been studied. Nevertheless, a comprehensive understanding of such weighted settings is still missing, especially from an algorithmic viewpoint.
Weighted popular matchings with matroid constraints were studied by Kamiyama [15], who provided a characterization, while the design of an efficient algorithm for finding a weighted popular matching in this model was left open. Weighted popular branchings have been studied in [29], in which a polynomial-time algorithm was obtained only for a restricted case.
It is not difficult to see that each of the above models is a special case of that of weighted popular common independent sets. Thus, our algorithm for weighted popular common independent sets is applicable to all of the above models, and in particular resolves the algorithmic questions for weighted popular matchings with matroid constraints and for weighted popular branchings.
1.3 Technical Challenges
We here describe our analysis of why these algorithmic questions had remained open and where the main difficulty lies.
Establishing a solution-independent characterization. The characterizations for the models discussed above can be broadly classified into two categories. In one category, the conditions are formulated without explicitly involving the candidate solution M. Such characterizations can be exploited algorithmically; for instance, the characterization in [1,2] directly yields an efficient algorithm.
In the other category, the popularity of a solution M is characterized by a necessary and sufficient condition that explicitly involves the solution M itself. Such characterizations typically state that a solution M is popular if and only if it is a maximum-weight solution with respect to edge weights defined from M. While this type of characterization can be used to determine whether a given solution M is popular, it does not immediately yield an efficient algorithm. Therefore, establishing a solution-independent characterization is important for designing algorithms. A connection between these two types of characterizations is analyzed in [17].
For weighted popular matchings, the characterization in [27, 28] is solution-independent, while that of weighted popular matchings with matroid constraints [15] is solution-dependent. This appears to be one of the main reasons why the algorithm design for weighted popular matchings with matroid constraints has remained open.
Well-formedness, pruning algorithm, and promotion paths. As mentioned above, no extension of the solution-independent characterization for weighted popular matchings [27,28] to the setting with matroid constraints has been obtained so far. One possible reason is that the solution-independent characterization in [27,28] is substantially more involved than its counterpart for the unweighted setting [1,2].
More specifically, this involvement can be explained as follows. Mestre [27, 28] introduced the notion of well-formed solutions. This notion corresponds to the characterization of popularity for many of the unweighted settings, while it is only a necessary condition for the weighted settings [15, 27, 28, 33]. Mestre's characterization is described by this well-formedness and a pruning algorithm applied to the input graph. After the pruning process, a matching is popular if and only if it is well-formed.
To establish the correctness of this pruning algorithm, Mestre [27, 28] introduced the notion of promotion paths, which are used to characterize improvements of a matching in terms of popularity. Although the concept of promotion paths has been extended in subsequent work [15, 33], the pruning algorithm itself has proved difficult to generalize to settings with matroid constraints.
The technical difficulty of the pruning algorithm may be one reason why, despite weighted popular matchings constituting a natural and fundamental generalization of popular matchings, subsequent research on the subject has remained relatively limited.
The above analysis highlights the importance and difficulty of a characterization that does not depend on a given solution. One of our main contributions, alongside the algorithmic results, is precisely such a characterization for weighted popular common independent sets. This characterization is derived from several new technical ingredients, which we now outline.
Generalization of the well-formedness. We first extend the notion of well-formed solutions. For the weighted popular common independent set problem, we prove that our well-formedness indeed offers a necessary condition for popularity, extending the corresponding results in [15, 27, 28, 33]. We remark that establishing this fact for weighted popular common independent sets is no longer a straightforward extension of the previous arguments and requires a more involved analysis.
A standard approach for proving the necessity of the well-formedness is to show that any solution violating well-formedness can be improved, in the sense of head-to-head elections, by exchanging several elements. Both the existing literature and the present work adopt this approach. In matching problems and their extensions with matroid constraints, the exchanges that preserve feasibility can be identified relatively easily. In contrast, in our setting, determining which exchanges maintain feasibility is more delicate. To overcome this difficulty, we develop a nontrivial matroid-theoretic analysis that characterizes feasible exchanges and plays a central role in our proofs.
Refinement of the promotion paths. As mentioned above, the well-formedness is only a necessary condition for popularity. In order to obtain a necessary and sufficient condition, we generalize the notion of promotion paths to the setting of weighted popular common independent sets. Using these generalized promotion paths, we obtain a necessary and sufficient condition for popularity. However, this characterization is not well suited for algorithm design, because it is solution-dependent.
To obtain a solution-independent characterization, a natural approach would be to generalize Mestre's pruning algorithm for weighted popular matchings [27, 28]. In the setting of weighted popular common independent sets, however, there is no underlying input graph on which such a pruning procedure can be performed, making it difficult to generalize the pruning-based approach.
To overcome this difficulty, we propose a completely different approach that does not rely on a pruning algorithm. More specifically, we introduce the notion of essential promotion paths, a constrained variant of promotion paths. The development and analysis of this notion constitute the most technically intricate part of our work. A key feature of essential promotion paths is that their existence is independent of the choice of solution under a mild assumption, whereas the existence of promotion paths generally depends on the choice of solution. By exploiting essential promotion paths, we derive a solution-independent characterization of weighted popular common independent sets, which forms the foundation of our polynomial-time algorithm.
1.4 Organization of the Paper
The remainder of this paper is organized as follows. In Section 2, we review basic notation and properties of matroids and modify the instance to simplify the presentation. In Section 3, we define the concept of well-formedness and prove that it is a necessary condition for popularity. In Section 4, we present a solution-independent characterization of popular common independent sets and develop an algorithm for finding a popular common independent set, if one exists, thereby proving Theorem 1.2. Some proofs are deferred to Section 5. In Section 6, we conclude this paper with several remarks and open problems.
2 Preliminaries
For a positive integer , let denote . For a set and an element , we denote and by and , respectively.
2.1 Matroid
A matroid is a pair of a finite set and a nonempty family of subsets of such that
• if and , then ; and
• if , , and , then there exists such that .
The sets in I are referred to as independent sets.
For a matroid , we define the rank function rank: and the closure operator by
for any . The closure operator is sometimes called the span function in the literature.
An inclusion-wise maximal independent set is called a base of M. We denote by B the family of bases of M. It is well known that the family of bases satisfies the simultaneous exchange property; see e.g. [32, Theorem 39.12]:
for any two bases and of and any element , there exists an element such that both and are bases of .
The following results on bases are well known and will be used later in this paper.
Lemma 2.1 (see [32, Theorem 39.13]). Let be a base of a matroid , let , and let . If the bipartite graph defined by contains a unique perfect matching, then is also a base of .
An inclusion-wise minimal non-independent set is called a circuit of . For a base of and an element , the set contains a unique circuit, denoted by , which is called the fundamental circuit of and . Note that belongs to if and only if . The following lemma is a straightforward property of fundamental circuits, but we state it explicitly because it will be used multiple times later.
Lemma 2.2. Let be a base of a matroid , , and . Then, if and only if .
Proof. For the “only if” part, suppose that , that is, . Since is the unique minimal non-independent set in , we obtain . Therefore, holds.
For the “if” part, suppose that . This together with shows that , and hence . Therefore, holds.
For more details on matroids, we refer the reader to [30,32].
2.2 Instance with Last Resort
To simplify the description, we modify the instance of the weighted popular common independent set problem so that every popular common independent set is a common base of the matroids. This is achieved by adding a new element to for each , where is the least preferred element of (called the last resort), and extending and to and as follows:
It is not difficult to see that both and are matroids. Moreover, this modification does not affect the problem, since a solution for and corresponds to a solution for and , and vice versa, by adding or removing the last resorts.
In what follows, the objects in the modified instance are simply denoted by , , and , etc., and we suppose that each contains the last resort . The following lemma follows immediately from the definition of .
Lemma 2.3. Assume that each contains the last resort .
(1) Every popular common independent set of and M is a common base of and M.
(2) A common base B of and M is popular if and only if for any common base of and M.
Proof. For a common independent set , let .
(1) Assume to the contrary that there exists a popular common independent set that is not a common base, i.e., . Then, the set is nonempty. In this case, for the common base , we have , which contradicts the popularity of .
(2) The only-if part is clear. For the if part, suppose that holds for any common base and take an arbitrary common independent set . It suffices to see .
As in the above argument, we construct the common base . Then, we obtain
which completes the proof.
With this lemma, we mainly focus on a common base of and . For any common base of and , and any , the set contains exactly one element, which we denote by . That is, is the element assigned to in .
Without loss of generality, we may assume that for every , i.e., has no loops, since otherwise we can remove without affecting the problem.
Throughout the paper, if no confusion may arise, a common base (resp. common independent set) of and is simply called a common base (resp. common independent set). We use , , , and to denote the rank, the closure, the fundamental circuit, and the family of bases with respect to the matroid , respectively.
3 Well-formed Common Base
The objective of this section is to introduce the concept of well-formedness and to show that it is a necessary condition for a common base to be popular; see Proposition 3.4 below.
Let be the distinct weights assigned to applicants of , i.e.,
For each , denote
We also denote and for each .
For each , we inductively define its first element in in the following way. Let . For each and each , assuming that has been defined, we define the first element to be the most preferred element with respect to in . We then set
Note that the first element is well defined for every , since for each and each , where is the last resort of .
Next, for each and each , we define the second element to be the most preferred element with respect to in . If , then has no second element, and we denote . Let be the set of second elements, i.e.,
Definition 3.1. A common base B is well-formed if the following conditions hold:
• , i.e., for all ; and
• for all .
Remark 3.2. For each , the condition is equivalent to . It is also equivalent to ; see Lemma A.1.
The second condition of well-formedness can be interpreted as follows: first, B is an independent set of M that contains as many elements as possible from ; next, subject to this condition, it contains as many elements as possible from ; then, subject to these two conditions, it contains as many elements as possible from ; and so on.
Example 3.3. Figure 1 gives an example illustrating the notions of well-formedness and popularity. There are four applicants , and the partition classes are , , , and . The matroid is obtained from the graphic matroid of the graph shown in Figure 1a by adding the last-resort elements. The weights of the applicants are , , and .
The preferences of the applicants are given in the following table:

(a) The graph defining a graphic matroid.

(b) Thick red edges and blue dashed edges represent the first and second elements, respectively.

(c) A well-formed common base that is not popular.

(d) A popular common base.
Figure 1: An example illustrating well-formedness and popularity.
Then, the first elements are , , , and , which are shown as thick red edges in Figure 1b. The second elements are , , , and , which are shown as blue dashed edges in Figure 1b.
First, consider a common base , which is represented by the thick black edges in Figure 1c. This set is well-formed. However, is not popular. Indeed, let . Then is also a common base, and comparing with gives
Thus, is not popular. On the other hand, is a popular common base in this instance, and it is represented by the thick black edges in Figure 1d.
In what follows in this section, we prove the following proposition.
Proposition 3.4. Every popular common base is well-formed.
3.1 Basic Lemmas
Before proving Proposition 3.4, we prove the following two lemmas.
Lemma 3.5. Let and . Then the following statements hold for any common base .
(1) If and , then .
(2) If and , then (implying that ).
Proof. First note that follows from the fact that is a base of and .
(1) Suppose that and . Since , we have , and hence . It then follows from that
Then follows from the definition of and the assumption .
(2) Suppose that and . It follows from that , in particular , and hence . From , we obtain that
Then follows from the definition of and the assumption .
Lemma 3.6. Suppose that is a popular common base, and that . Let with . Then, each applicant with satisfies (or equivalently, with ) and .
Proof. We note that is well defined in the statement. Indeed, since and are distinct elements in , we have .
We first prove that implies . Suppose to the contrary that . Since both and belong to , the set forms a common base. By the assumption that , we have , which contradicts that is popular.
We next prove that for any with . We see that is an independent set of , because and belong to . Furthermore, implies that is an independent set of , and hence, so is . Therefore, is a common independent set. By the assumption that , we have . Since is popular, this value is non-negative, implying that .
3.2 Proof of Proposition 3.4
To prove Proposition 3.4, we show that every popular common base satisfies the two conditions in Definition 3.1.
Lemma 3.7. If B is a popular common base, then for all .
Proof. Let be a popular common base. We prove the claim by induction on . For the base case , since , the claim obviously holds. For the induction step, let and suppose that holds for all . As mentioned in Remark 3.2, this is equivalent to
We prove that the claim holds for i.
Suppose, for contradiction, that , i.e., . Our aim in the following is to construct a common independent set satisfying ; this contradicts the popularity of and completes the proof.
Let be the nonempty subset of V defined as
where the second equality follows from and (by the induction hypothesis). Note that this equality implies . Let . Since implies , i.e., , we have that
by (3.1) and Lemma 3.5 (1).
By Lemma 2.2 with and , we obtain from that . Since , there exists an applicant such that
Then, we obtain and from (3.2), (3.3), and Lemma 3.6. Moreover, since , particularly, , we obtain . Thus,
holds by (3.1) and Lemma 3.5 (1).
We now divide the analysis into two cases, depending on whether
holds.
Case 1. Suppose that (3.5) holds. Since and is assumed to have no loops, is a well-defined nonempty subset of . Take an applicant such that
where is chosen to be maximized. By Lemma 2.2 with and , we obtain from (3.5) that , and hence , i.e., .
We now claim that ; otherwise, we obtain by the maximality of , implying that ; this contradicts the definition of . Furthermore, we obtain and from (3.4), (3.6), and Lemma 3.6. Therefore, holds, that is, . Since and , we obtain . Thus, , and are distinct.
Let . We claim that is a common independent set. Indeed, it is clear that . In addition, since
• by (3.3),
• by (3.6), and
• by (3.4) and the popularity of ,
the set is a base of by Lemma 2.1. Thus, is an independent set of .
By (3.2), (3.4), and , we have that
which contradicts the popularity of B.
Case 2. Suppose that (3.5) does not hold. In this case, implies that by (3.1), and hence . This together with shows that .
Since (3.5) does not hold, by applying Lemma 2.2 with and , we have that . Let be an applicant such that
Then, we obtain and from (3.4), (3.7), and Lemma 3.6. Moreover, since , particularly, , we obtain .
If , then is a common base. Indeed, it is clear that is a base of . In addition, since
• by (3.3),
• by (3.7) and , and
• by (3.4) and the popularity of ,
is a base of by Lemma 2.1. Since by (3.2) and (3.4), this contradicts the popularity of .
Therefore, holds, and hence, , , and are distinct applicants. Then we derive a contradiction by considering the following two cases separately.
-
Suppose that . In this case, since , we can derive a contradiction by applying the same argument as Case 1, in which and are replaced by and , respectively.
-
Suppose that . In this case, by (3.1), and hence . This together with shows that . Let , which is a common independent set, as shown in the same way as in Case 1. By (3.2), (3.4), and , we have
which contradicts the popularity of B.
This completes the proof.
As shown below, the first condition in Definition 3.1 can also be proved by an argument similar to that used in Lemma 3.7.
Lemma 3.8. If B is a popular common base, then for all .
Proof. Let be a popular common base. Fix any . Suppose, for contradiction, that for some . It suffices to show that there is a common independent set satisfying , which contradicts the popularity of .
By Lemma 3.7 and Remark 3.2, holds for all . Thus, by Lemma 3.5 (2), we have
If , then , which contradicts the choice of . Thus, holds, i.e., there exists such that
By (3.8), (3.9), and Lemma 3.6, we obtain and . Moreover, since , particularly, , we obtain . Thus, we obtain
by Lemma 3.5 (1). Since , we have by Lemma 2.2. Furthermore, ; otherwise , which contradicts the choice of . Thus, there exists such that
Note that this implies , because . It follows from and that . We also obtain from . Therefore, , and are distinct applicants.
Let . It is clear that . Since
• by (3.9),
• by (3.11) and , and
• by (3.10) and the popularity of ,
the set is a base of by Lemma 2.1. Thus, is an independent set of , implying that is a common independent set. By (3.8), (3.10), and , we obtain
which contradicts the popularity of B.
Proposition 3.4 follows from Lemmas 3.7 and 3.8.
4 Algorithm
We have already shown in Proposition 3.4 that every popular common base is well-formed. In this section, we present a solution-independent characterization of when a well-formed common base is popular. Using this characterization, we develop an algorithm for finding a popular common base, if one exists, and thereby prove Theorem 1.2. Some proofs are deferred to Section 5.
For a subset , we say that a common base is -including (resp. -excluding) if (resp. ). If , we simply write -including and -excluding instead of -including and -excluding, respectively.
4.1 Technical Preliminaries
Let be a common base. For , we define as
Define an auxiliary bipartite digraph on the vertex set with bipartition as follows: for and , the digraph contains an arc if , i.e., and belong to the same partition class, and it contains an arc if , i.e., . For a dicycle in , its weight is defined as , where denotes the set of vertices (elements) in .
Lemma 4.1. A common base B is popular if and only if contains no dicycle of positive weight with respect to .
Proof. For a common base , we see that
Therefore, is popular if and only if is a maximum weight common base with respect to by Lemma 2.3 (2). Furthermore, it is well known that is a common base of maximum weight if and only if contains no dicycle of positive weight; see e.g., [32, Theorem 41.5]. This completes the proof.
A well-formed common base B has intriguing properties as follows, which will be used several times later.
Lemma 4.2. Let and let be the minimum index such that . For any -excluding well-formed common base , we have and .
Proof. We have and by the minimality of . Recall that and as shown in Remark 3.2.
Since , we obtain by Lemma 2.2, that is, the first property holds. Furthermore, since , we obtain by Lemma 2.2. This together with shows that .
As special cases of this lemma, we obtain the following corollary.
Corollary 4.3. For any and , we have the following.
(1) If , then and for any -excluding well-formed common base .
(2) If , then and for any well-formed common base .
(3) If , then, for any -excluding well-formed common base , we have and .
Proof. If , then by the definition of . Therefore, the assertion (1) follows from Lemma 4.2.
If , then by the definition of . Furthermore, since , any well-formed common base is -excluding. Therefore, the assertion (2) follows from Lemma 4.2.
If , then we have and . Therefore, the assertion (3) follows from Lemma 4.2.
4.2 (Essential) Promotion Path
As shown in Lemma 4.1, the popularity of a well-formed common base B can be characterized by using a dicycle in . In this subsection, we characterize the popularity by using a dipath in with some conditions.
Let B be a well-formed common base. We first define a promotion path in as follows.
Definition 4.4. A dipath in is called a promotion path (with respect to ) if and for , where denotes the applicant with for .
Note that and for , because is bipartite between and and . In particular, we refer to a promotion path that starts at as a promotion -path.
The following is an easy consequence of Corollary 4.3.
Corollary 4.5. Let be a promotion path with respect to with , in which denotes the applicant with for . Then, we have and . In addition, if , and if .
Proof. Suppose that for each . Note that since is well-formed. Since , by Corollary 4.3 (1) and (2), we have if , and if . Thus, we obtain . Moreover, (or equivalently, ) if , and (or equivalently, ) if . By repeatedly applying the same argument to , we obtain and .
We introduce and as follows. For , we define
It is obvious that . Note also that if , i.e., if contains some element , then , because by Lemma 4.2. Similarly, for , we define
We note that for any , since there exists such that by Lemma 4.2. Here, we use the fact that , which follows from our assumption that has no loops.
For a promotion path with respect to a well-formed common base , the value is well defined for , because . Furthermore, is well defined for , since implies by Corollary 4.3 (1) and (2). We define the profit of as
The following observation shows that the profit of a promotion path P can be viewed as the length of P, adjusted by the “potentials” and .
Observation 4.6. For a promotion path with respect to a well-formed common base , its profit profit coincides with the length of in which the length of the arc ( ) is set to and that of the arc ( ) is set to .
An arc of with and is said to be essential if . From the perspective of Observation 4.6, the arc is essential if and only if its length, adjusted by and , is positive. We are now ready to define an essential promotion path.
Definition 4.7. A promotion path with respect to is said to be essential if is essential for every .
We now claim that a well-formed common base B is popular if and only if has no essential promotion path with positive profit. For ease of later use, we state this claim in terms of the initial element of a path.
We say that x is positive with respect to B if there is an essential promotion x-path with respect to B having positive profit. The (non)existence of a positive element can characterize the popularity in the following sense. The proof is given in Section 5.1.
Proposition 4.8. A well-formed common base B is popular if and only if there are no positive elements with respect to B.
4.3 Characterization and Algorithm
The following proposition shows that whether a vertex x is positive does not depend on the choice of B, provided that B contains x. The proof is given in Section 5.2.
Proposition 4.9. Let . For any -including well-formed common bases and , the element is positive with respect to if and only if it is positive with respect to .
We say that is positive if it is positive with respect to some -including well-formed common base. By Proposition 4.9, this is equivalent to being positive with respect to every -including well-formed common base, provided that at least one such well-formed common base exists. Let denote the set of all positive elements. Then, Propositions 4.8 and 4.9 immediately imply the following corollary.
Corollary 4.10. A well-formed common base is popular if and only if it is -excluding.
This, together with Lemma 2.3 and Proposition 3.4, yields the following characterization.
Corollary 4.11. A common independent set is popular if and only if it is an -excluding well-formed common base.
It is worth noting that this is a solution-independent characterization of a popular common independent set, since does not depend on the choice of a common base. By this characterization, we obtain the following algorithm for finding a popular common independent set if one exists.
Algorithm 1 POPULARCOMMONBASE
Input: An instance with last resorts; see Section 2.2.
Output: A popular common independent set, if one exists.
1: Compute the sets F and S.
2: Compute the set of all positive elements.
3: if there exists an -excluding well-formed common base then
4: return it.
5: else
6: conclude that no popular common independent set exists.
7: end if
To show that this algorithm runs in polynomial time, we use the following propositions, whose proofs are given in Sections 5.3 and 5.4, respectively.
Proposition 4.12. For any disjoint , we can find an -including and -excluding well-formed common base in polynomial time if one exists.
Proposition 4.13. We can compute the set of all positive elements in polynomial time.
By the above argument, we can prove Theorem 1.2.
Proof of Theorem 1.2. As shown in Section 2.2, we may assume that each contains the last resort. We prove that POPULARCOMMONBASE correctly finds a popular common base in polynomial time, if one exists. The correctness of this algorithm follows from Corollary 4.11.
In the first line of the algorithm, we can easily compute F and S in polynomial time in a straightforward way. In the second line, we can compute in polynomial time by Proposition 4.13. In the third line, we can compute an -excluding well-formed common base in polynomial time by Proposition 4.12 if one exists. Therefore, the algorithm runs in polynomial time.
5 Proofs of the Key Propositions
5.1 Proof of Proposition 4.8
For a promotion x-path P, let . The following lemma says that and represent the weighted differences in preferences with B and some common independent sets, and that the existence of a promotion path with positive profit implies that of an essential one.
Lemma 5.1. (1) For any promotion path P with respect to B, there are common independent sets I and such that and .
(2) If there is a promotion path with respect to B having positive profit, then there is an essential promotion path with respect to B having positive profit.
Proof. (1) Let be an arbitrary promotion path. We first show that there is a common independent set satisfying . Let satisfying , , and ; such always exists by the definition of . We now claim that no arcs of the form with exist in . Indeed, suppose, to the contrary, that with exists in . Since belongs to by and Corollary 4.3 (1) and (2), we have by and Corollary 4.5. Thus, we obtain by Corollary 4.3 (2), which contradicts by Corollary 4.5. Note that, since contains the arc , the element is distinct from by this claim. Therefore, in the bipartite graph defined by , , and , there exists a unique perfect matching , which implies by Lemma 2.1.
Define . Then, by the above argument, and it is obvious that , i.e., is a common independent set. Furthermore, since for each , we have
where the second equality follows from .
We then show that there is a common independent set satisfying . If , or equivalently, , then we obtain . Thus, is a desired common independent set. Suppose that . We pick satisfying and (such exists by the definition of ). Then we have , since and is well-formed. Note that is distinct from , since for by Corollary 4.3 (2), while . In this case, we define . By the same argument as that for , we can see that is a common independent set satisfying
in which we use and .
(2) Suppose that there is a promotion path with respect to having positive profit. Among such paths, choose so that is minimized. We show that each arc is essential for , i.e., is essential.
Assume to the contrary that there exists an index such that . Let and , which are promotion paths with respect to . Then, by Observation 4.6, we obtain
which implies that profit_B(P') > 0 or profit_B(P'') > 0. This contradicts the minimality of .
We are now ready to prove Proposition 4.8. The only-if part immediately follows from Lemma 5.1 (1). Indeed, if there is an (essential) promotion path with positive profit, then there is a common independent set satisfying by Lemma 5.1 (1), which implies that is not popular.
In the following, we show the if part. Suppose that B is not popular. By Lemma 5.1 (2), it suffices to show the existence of a (not necessarily essential) promotion path with respect to B having positive profit.
By Lemma 4.1, the auxiliary digraph contains a dicycle of positive weight with respect to . We now claim that contains at least one element with negative weight. Indeed, if otherwise, i.e., all elements in with have nonnegative weight, then holds for each . Note that implies for some . Thus, we have for all by Corollary 4.3 (1) and (2), which implies by Corollary 4.3 (2). This contradicts .
Thus, contains at least one element with negative weight. Using the elements having negative weight, the dicycle can be decomposed into a collection of vertex-disjoint dipaths such that, for each dipath , the last element has negative weight, while all other elements have nonnegative weight. This implies that the initial and last elements of each dipath are in and in , respectively. For , let denote the set of vertices (elements) in . Since
there exists such that . Let be such a dipath, where for and . Let denote the applicant with for . Since implies for , the subpath is a promotion path. Moreover, since Corollary 4.3 (1) and (2) imply , we have by the definition of . Thus, we obtain
which implies that P is a promotion path with positive profit. This completes the proof of Proposition 4.8.
5.2 Proof of Proposition 4.9
For any and -excluding well-formed common base , we define
which is the set of the heads of essential arcs of the form with respect to . The following lemma says that , , and are independent of the choice of an -including/-excluding well-formed common base .
Lemma 5.2. (1) Let . For any -including well-formed bases and , we have .
(2) Let . For any -excluding well-formed bases and , we have and .
Proof. (1) It suffices to show that, for any -including well-formed base , the value coincides with
which is determined independently of -including well-formed bases. Note that only if .
We first prove that . If , then the inequality is obvious. Suppose that holds and let be the index such that , , and . Note that and imply . By Remark 3.2, we obtain
which implies that contains an independent set of that is larger than . Therefore, there exists such that . By the augmentation property of matroids, we can add elements of to to obtain an independent set of size . However, since
we cannot add elements from . Therefore, we need to add all the elements in , that is,
is an independent set (and hence also a base) of . Since , there exists such that and . Therefore, holds.
We next prove that . If , then the inequality is obvious. Suppose that holds and let be an applicant such that , , and . Let be the index with . Since it holds that
by Remark 3.2, all the inequalities are tight. In particular, and hold, and hence and . Therefore, holds.
(2) Take any -excluding well-formed common bases and . By the definition (4.3) and Lemma 4.2, we have , where denotes the minimum index such that . This implies the former assertion of (2).
We then show that ; the reverse inclusion follows from symmetry, which implies the latter assertion of (2).
Take any , i.e., and ; our aim is to prove that . By Lemma 4.2, we have . By the simultaneous exchange property of matroid bases for and with respect to , there exists such that
Note that belongs to by (5.1), implying that by Lemma 4.2.
We now claim that ; otherwise, letting denote the applicant such that , we obtain
a contradiction. Here, the first inequality follows from (5.2), , and (implying ) and the definition (4.2) of , the second (strict) inequality follows from , the equality follows from the former assertion of (2), and the last inequality follows from (5.1) with and the definition (4.3) of . Since , we obtain by (5.1), that is, . Therefore, follows from , where the first and last equalities follow from the assertion (1) and the former assertion of (2), respectively.
We are now ready to show Proposition 4.9. Let and take any -including well-formed common bases and . It suffices to prove that
-
the set of all essential promotion x-paths with respect to B is the same as that with respect to ; and
-
for any essential promotion x-path P with respect to B (or equivalently, with respect to ), we have .
Take an arbitrary essential promotion -path with respect to , where denotes the applicant with for . Since and , we have . Thus, the arc exists also in . In addition, since is an essential arc in , we obtain , where the equality follows from Lemma 5.2 (2). This implies that the arc exists also in and is essential. In particular, . By repeating this argument, we can conclude that is an essential promotion -path with respect to . Therefore, the set of all essential promotion -paths with respect to is included in that with respect to . By symmetry, the reverse inclusion also holds. Thus, we obtain the first bullet.
For any essential promotion x-path P with respect to B (or equivalently, with respect to ), we have
in which the second equality follows from Lemma 5.2. Thus, we obtain the second bullet.
This completes the proof of Proposition 4.9.
5.3 Proof of Proposition 4.12
Our goal is to compute a common base B such that
Indeed, by Definition 3.1 and Remark 3.2, a common base is well-formed if and only if and satisfies the condition (5.4).
We define by
We claim that a common base B satisfies the conditions (5.3) and (5.4) if and only if
Indeed, by a direct computation, for any common base B, we have that
Here, the first inequality is tight if and only if (5.3) holds, and the last inequality is tight if and only if (5.4) holds.
Consequently, if there exists a well-formed common base satisfying (5.3) and (5.4), then any common base maximizing must satisfy these conditions. Thus, it suffices to compute a maximum-weight common base with respect to . This can be done in polynomial time using a weighted matroid intersection algorithm; see e.g., [32, Theorem 41.8], which completes the proof of Proposition 4.12.
5.4 Proof of Proposition 4.13
Fix an arbitrary . It suffices to show that we can determine if is positive in polynomial time.
First, we check if there is an -including well-formed common base and compute it if one exists; this can be done in polynomial time by Proposition 4.12. If there is no -including one, then we conclude that is not positive.
Suppose that we obtain an -including well-formed common base . Then, we construct the bipartite digraph with arc lengths as follows. The vertex set is , with bipartition , and the arc set consists of
-
the arcs of length for and such that for some ; and
-
the arcs of length for and such that and .
Note that the arcs in the second bullet are exactly the essential arcs. Hence, (without arc length) is the subgraph of consisting of the arcs that can appear in some essential promotion path with respect to B.
It is clear from the construction of that any dipath in from to is an essential promotion path with respect to , and that the length of coincides with ; see Observation 4.6. Thus, by Proposition 4.9, is positive if and only if there is a dipath of positive length in that starts at and ends with some .
Furthermore, we can see that forms a directed acyclic graph (DAG). Indeed, suppose to the contrary that contains a directed cycle , where for . Since and for all , we have by Corollary 4.3 (1) and (2). Since , we obtain by Corollary 4.3 (2), a contradiction.
Clearly, we can construct in polynomial time. Since is a DAG, we can solve the longest path problem for in polynomial time. Thus, we can check if is positive in polynomial time, which completes the proof of Proposition 4.13.
6 Concluding Remarks
In this paper, we presented the first polynomial-time algorithm for the weighted popular common independent set problem. As special cases, our result yields the first polynomial-time algorithms for the weighted popular matching problem with matroid constraints and the weighted popular branching problem. The main technical contribution of this work is the introduction of the notion of an essential promotion path and the proof that its existence is independent of the choice of the common base B. This solution-independent characterization serves as the foundation of our algorithmic framework.
We remark that, given costs for each , a popular common base minimizing can also be computed in polynomial time using the above characterization. Indeed, by a slight modification of Proposition 4.12, we can compute, in polynomial time, an -including and -excluding well-formed common base that minimizes ; this can be achieved by computing a common base maximizing , where and are as defined in the proof of Proposition 4.12, and is a sufficiently large number. Therefore, we can compute an -excluding well-formed common base that minimizes , which is the desired popular common base.
This paper considers only strict preference orders. A natural direction for future research is to extend the model to more general preference structures, such as preferences with ties or arbitrary partial orders. Such extensions have been studied extensively in previous work. For example, Mestre [27,28] gave a polynomial-time algorithm for the weighted popular matching problem in the presence of ties, and Kavitha, Makino, Schlotter, and Yokoi [22] gave a polynomial-time algorithm for the (unweighted) popular common independent set problem under arbitrary partial-order preferences. The question of whether these results can be extended to the weighted popular common independent set problem remains an interesting open problem. Investigating weighted generalizations of popular assignments [20] and popular common bases [22], and a matroidal generalization of weighted popular matchings with two-sided preferences [11] is also of interest.
Acknowledgments
This work was partially supported by the joint project of Kyoto University and Toyota Motor Corporation, titled “Advanced Mathematical Science for Mobility Society”, by JST ERATO Grant Number JPMJER2301, and by JSPS KAKENHI Grant Numbers JP22K17854, JP24K02901, JP24K14828, JP24K21315, JP26K21777, JP26K21171, Japan.
References
[1] David J. Abraham, Robert W. Irving, Telikepalli Kavitha, and Kurt Mehlhorn. Popular matchings. In Proceedings of the Sixteenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2005), pages 424–432. SIAM, 2005.
[2] David J. Abraham, Robert W. Irving, Telikepalli Kavitha, and Kurt Mehlhorn. Popular matchings. SIAM Journal on Computing, 37(4):1030–1045, 2007.
[3] Erika R. Bérczi-Kovács and Kata Kosztolányi. Testing popularity in linear time via maximum matching. Discrete Applied Mathematics, 366:152–160, 2025.
[4] Péter Biró, Robert W. Irving, and David F. Manlove. Popular matchings in the marriage and roommates problems. In Tiziana Calamoneri and Josep Díaz, editors, Proceedings of the 7th international conference on Algorithms and Complexity (CIAC 2010), volume 6078 of Lecture Notes in Computer Science, pages 97–108. Springer, 2010.
[5] Florian Brandl and Telikepalli Kavitha. Two problems in max-size popular matchings. Algorithmica, 81(7):2738–2764, 2019.
[6] Kim-Sau Chung. On the existence of stable roommate matchings. Games and Economic Behavior, 33(2):206–230, 2000.
[7] Gergely Csáji, Tamás Király, Kenjiro Takazawa, and Yu Yokoi. Popular maximum-utility matchings with matroid constraints. Mathematics of Operations Research. Articles in Advance.
[8] Yuri Faenza and Telikepalli Kavitha. Quasi-popular matchings, optimality, and extended formulations. Mathematics of Operations Research, 47(1):427–457, 2022.
[9] Yuri Faenza, Telikepalli Kavitha, Vladlena Powers, and Xingyu Zhang. Popular matchings and limits to tractability. In Timothy M. Chan, editor, Proceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2019), pages 2790–2809. SIAM, 2019.
[10] Peter Gärdenfors. Match making: Assignments based on bilateral preferences. Behavioural Science, 20:166–173, 1975.
[11] Klaus Heeger and Ágnes Cseh. Popular matchings with weighted voters. Games and Economic Behavior, 144:300–328, 2024.
[12] Chien-Chung Huang and Telikepalli Kavitha. Popular matchings in the stable marriage problem. Inf. Comput., 222:180–194, 2013.
[13] Naoyuki Kamiyama. The popular matching and condensation problems under matroid constraints. Journal of Combinatorial Optimization, 32(4):1305–1326, 2016.
[14] Naoyuki Kamiyama. Popular matchings with ties and matroid constraints. SIAM Journal on Discrete Mathematics, 31(3):1801–1819, 2017.
[15] Naoyuki Kamiyama. A characterization of weighted popular matchings under matroid constraints. Journal of the Operations Research Society of Japan, 61(1):2–17, 2018.
[16] Naoyuki Kamiyama. Popular matchings with two-sided preference lists and matroid constraints. Theoretical Computer Science, 809:265–276, 2020.
[17] Yuga Kanaya and Kenjiro Takazawa. On the equivalence of the graph-structural and optimization-based characterizations of popular matchings. CoRR, abs/2508.00349, 2025.
[18] Telikepalli Kavitha. A size-popularity tradeoff in the stable marriage problem. SIAM Journal on Computing, 43(1):52–71, 2014.
[19] Telikepalli Kavitha. Min-cost popular matchings. In Nitin Saxena and Sunil Simon, editors, Proceedings of the 40th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2020), volume 182 of LIPIcs, pages 25:1–25:17. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2020.
[20] Telikepalli Kavitha, Tamás Király, Jannik Matuschke, Ildikó Schlotter, and Ulrike Schmidt-Kraepelin. The popular assignment problem: When cardinality is more important than popularity. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 103–123. SIAM, 2022.
[21] Telikepalli Kavitha, Tamás Király, Jannik Matuschke, Ildikó Schlotter, and Ulrike Schmidt-Kraepelin. Popular branchings and their dual certificates. Mathematical Programming, 192(1–2):567–595, 2022.
[22] Telikepalli Kavitha, Kazuhisa Makino, Ildikó Schlotter, and Yu Yokoi. Popular arborescences and their matroid generalization. ACM Transactions on Algorithms, 21(2):22:1–22:35, 2025.
[23] Telikepalli Kavitha and Meghana Nasre. Optimal popular matchings. Discrete Applied Mathematics, 157(14):3181–3186, 2009.
[24] David F. Manlove. Algorithms of Matching Under Preferences, volume 2 of Series on Theoretical Computer Science. World Scientific, 2013.
[25] David F. Manlove and Colin T. S. Sng. Popular matchings in the capacitated house allocation problem. In Proceedings of the 14th Annual European Symposium on Algorithms (ESA 2006), volume 4168 of Lecture Notes in Computer Science, pages 492–503. Springer, 2006.
[26] Eric McDermid and Robert W. Irving. Popular matchings: structure and algorithms. Journal of Combinatorial Optimization, 22(3):339–358, 2011.
[27] Julián Mestre. Weighted popular matchings. In Michele Bugliesi, Bart Preneel, Vladimiro Sassone, and Ingo Wegener, editors, Proceedings of the 33rd International Colloquium on Automata, Languages and Programming, (ICALP 2006), volume 4051 of Lecture Notes in Computer Science, pages 715–726. Springer, 2006.
[28] Julián Mestre. Weighted popular matchings. ACM Transactions on Algorithms, 10(1):2:1–2:16, 2014.
[29] Kei Natsui and Kenjiro Takazawa. Finding popular branchings in vertex-weighted directed graphs. Theoretical Computer Science, 953:113799, 2023.
[30] James Oxley. Matroid Theory. Oxford Graduate Texts in Mathematics. Oxford University Press, 2011.
[31] Katarzyna E. Paluch. Popular and clan-popular b-matchings. Theoretical Computer Science, 544:3–13, 2014.
[32] Alexander Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Springer, 2003.
[33] Colin T. S. Sng and David F. Manlove. Popular matchings in the weighted capacitated house allocation problem. Journal of Discrete Algorithms, 8(2):102–116, 2010.
A Basic Lemma for Matroids
Lemma A.1. Let and let . Then the following are equivalent:
(i) ,
(ii) ,
(iii) .
Proof. If , then
and hence . Therefore, (i) implies (ii). Next, suppose that . Since taking closure does not change rank, we have
Since is independent, . Hence (ii) implies (iii). Finally, suppose that . Since is an independent set contained in , condition (iii) is equivalent to that is an inclusionwise maximal independent set contained in . This is equivalent to the condition (i).
Therefore, all the three conditions are equivalent.