betaFeedback

WorksComputer Science

A Matroid Generalization of Weighted Popular Matching: Characterization and Algorithm

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.

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 G=(V,U;E)G=(V,U;E). Each element v∈Vv\in V is called an applicant or a voter, and each element u∈Uu\in U is called a post. Each applicant v∈Vv\in V has a total order ≻v\succ_v over the posts adjacent to vv, or equivalently, over the edges incident to vv, while the posts themselves have no preferences. Let M,M′⊆EM,M'\subseteq E be matchings in GG. We say that v∈Vv\in V prefers MM to M′M' if M(v)≻vM′(v)M(v)\succ_v M'(v), where M(v)M(v) (resp. M′(v)M'(v)) denotes the edge incident to vv in MM (resp. M′M'), which may be empty. Let Δ(M,M′)\Delta(M,M') denote the difference in preferences between MM and M′M', that is,

Δ(M,M′):=∣{v∈V∣v prefers M to M′}∣−∣{v∈V∣v prefers M′ to M}∣.\Delta(M,M') := |\{v\in V\mid v\text{ prefers }M\text{ to }M'\}|-|\{v\in V\mid v\text{ prefers }M'\text{ to }M\}|.

A matching MM is called popular if Δ(M,M′)≥0\Delta(M,M')\geq0 for all matchings M′M' in GG.

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.

Our Result

The weighted popular common independent set problem has two main features: (1) each voter has a voting power, represented by a weight; and (2) bipartite matching is generalized to matroid intersection. In this problem, we are given two matroids on the same ground set EE; see § 2.1 for the definition of a matroid. One of them is a partition matroid Mpart=(E,Ipart)\mathcal{M}_{\mathrm{part}}=(E,\mathcal{I}_{\mathrm{part}}) defined by partition classes EvE_v indexed by the elements vv of a finite set VV. That is, E=⨄v∈VEvE=\biguplus_{v\in V}E_v and

Ipart:={X⊆E∣∣X∩Ev∣≤1 for all v∈V}.\mathcal{I}_{\mathrm{part}}:=\{X\subseteq E\mid|X\cap E_v|\leq1\text{ for all }v\in V\}.

The other matroid is an arbitrary matroid M=(E,I)\mathcal{M}=(E,\mathcal{I}), which is given by an independence oracle. Each element v∈Vv\in V is called an applicant or a voter. Each applicant v∈Vv\in V is assigned a positive weight w(v)∈R>0w(v) \in\mathbb{R}_{>0}, and has a total order ≻v\succ_v over the elements of EvE_v. Note that this is in contrast to the model of optimal popular matchings, in which weights are assigned to the elements of EE. Intuitively, w(v)w(v) represents the voting power of vv, and ≻v\succ_v represents the preferences of vv over EvE_v. A popular common independent set is a common independent set of Mpart\mathcal{M}_{\mathrm{part}} and M\mathcal{M} 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 II and I′I' of the matroids Mpart\mathcal{M}_{\mathrm{part}} and M\mathcal{M}, we say that v∈Vv \in V prefers II to I′I' if either

  • I∩Ev≠∅I \cap E_v \ne\varnothing and I′∩Ev=∅I' \cap E_v = \varnothing, or

  • I∩Ev={e}I \cap E_v = \{e\} and I′∩Ev={e′}I' \cap E_v = \{e'\} with e≻ve′e \succ_v e'.

For any pair of common independent sets II and I′I', let Δw(I,I′)\Delta_w(I,I') denote the weighted difference in preferences between II and I′I', that is,

Δw(I,I′):=∑v∈V:v prefers I to I′w(v)−∑v∈V:v prefers I′ to Iw(v).\Delta_w(I,I') := \sum_{v \in V: v\text{ prefers }I\text{ to }I'} w(v) - \sum_{v \in V: v\text{ prefers }I'\text{ to }I} w(v).

Definition 1.1. A common independent set II of Mpart\mathcal{M}_{\mathrm{part}} and M\mathcal{M} is popular if Δw(I,I′)≥0\Delta_w(I,I') \ge0 for all common independent sets I′I'.

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.

UnweightedWeighted
popular matching[1, 2][27, 28]
popular capacitated matching[25][33]
popular matching with matroid constraints[13]this paper<br>(partial result in [15])
popular branching[21]this paper<br>(partial result in [29])
popular common independent set[22]this paper

Table 1. Summary of polynomial-time algorithms for popular matchings and their extensions

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.

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 uu is endowed with a matroid Mu\mathcal{M}_u on the edges incident to uu. An edge set MM is a solution if each applicant has at most one adjacent edge in MM, and the set of edges in MM incident to each post uu is independent in Mu\mathcal{M}_u. 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.

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 MM. 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 MM is characterized by a necessary and sufficient condition that explicitly involves the solution MM itself. Such characterizations typically state that a solution MM is popular if and only if it is a maximum-weight solution with respect to edge weights defined from MM. While this type of characterization can be used to determine whether a given solution MM 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.

Organization of the Paper

The remainder of this paper is organized as follows. In § 2, we review basic notation and properties of matroids and modify the instance to simplify the presentation. In § 3, we define the concept of well-formedness and prove that it is a necessary condition for popularity. In § 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 § 5. In § 6, we conclude this paper with several remarks and open problems.

Preliminaries

For a positive integer kk, let [k][k] denote {1,2,…,k}\{1,2,\ldots,k\}. For a set XX and an element ee, we denote X∪{e}X \cup\{e\} and X∖{e}X \setminus\{e\} by X+eX+e and X−eX-e, respectively.

Matroid

A matroid is a pair M=(E,I)\mathcal{M}=(E,\mathcal{I}) of a finite set EE and a nonempty family I⊆2E\mathcal{I} \subseteq2^E of subsets of EE such that

  • if X⊆YX \subseteq Y and Y∈IY \in\mathcal{I}, then X∈IX \in\mathcal{I}; and

  • if X∈IX \in\mathcal{I}, Y∈IY \in\mathcal{I}, and ∣Y∣>∣X∣|Y| > |X|, then there exists e∈Y∖Xe \in Y \setminus X such that X+e∈IX + e \in\mathcal{I}.

The sets in I\mathcal{I} are referred to as independent sets.

For a matroid M=(E,I)\mathcal{M} = (E,\mathcal{I}), we define the rank function rank⁡:2E→Z≥0\operatorname{rank}: 2^{E} \to\mathbb{Z}_{\geq0} and the closure operator cl⁡:2E→2E\operatorname{cl}: 2^{E} \to2^{E} by

rank⁡(X):=max⁡{∣Y∣∣Y⊆X, Y∈I},\operatorname{rank}(X) := \max\{|Y| \mid Y \subseteq X,\ Y \in\mathcal{I}\},
cl⁡(X):={e∈E∣rank⁡(X+e)=rank⁡(X)}\operatorname{cl}(X) := \{e \in E \mid\operatorname{rank}(X + e) = \operatorname{rank}(X)\}

for any X⊆EX \subseteq E. The closure operator is sometimes called the span function in the literature.

An inclusion-wise maximal independent set is called a base of M\mathcal{M}. We denote by B\mathcal{B} the family of bases of M\mathcal{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 B1B_{1} and B2B_{2} of M\mathcal{M} and any element x∈B1∖B2x \in B_{1} \setminus B_{2}, there exists an element y∈B2∖B1y \in B_{2} \setminus B_{1} such that both B1−x+yB_{1} - x + y and B2+x−yB_{2} + x - y are bases of M\mathcal{M}.

The following results on bases are well known and will be used later in this paper.

References

  1. [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. [2]David J. Abraham, Robert W. Irving, Telikepalli Kavitha, and Kurt Mehlhorn. Popular matchings. SIAM Journal on Computing, 37(4):1030–1045, 2007.
  3. [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. [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.DOI
  5. [5]Florian Brandl and Telikepalli Kavitha. Two problems in max-size popular matchings. Algorithmica, 81(7):2738–2764, 2019.DOI
  6. [6]Kim-Sau Chung. On the existence of stable roommate matchings. Games and Economic Behavior, 33(2):206–230, 2000.DOI
  7. [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. [8]Yuri Faenza and Telikepalli Kavitha. Quasi-popular matchings, optimality, and extended formulations. Mathematics of Operations Research, 47(1):427–457, 2022.
  9. [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.arxiv.org/abs/1805.11473
  10. [10]Peter Gärdenfors. Match making: Assignments based on bilateral preferences. Behavioural Science, 20:166–173, 1975.DOI
  11. [11]Klaus Heeger and Ágnes Cseh. Popular matchings with weighted voters. Games and Economic Behavior, 144:300–328, 2024.arxiv.org/abs/2110.05901
  12. [12]Chien-Chung Huang and Telikepalli Kavitha. Popular matchings in the stable marriage problem. Inf. Comput., 222:180–194, 2013.
  13. [13]Naoyuki Kamiyama. The popular matching and condensation problems under matroid constraints. Journal of Combinatorial Optimization, 32(4):1305–1326, 2016.
  14. [14]Naoyuki Kamiyama. Popular matchings with ties and matroid constraints. SIAM Journal on Discrete Mathematics, 31(3):1801–1819, 2017.DOI
  15. [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.DOI
  16. [16]Naoyuki Kamiyama. Popular matchings with two-sided preference lists and matroid constraints. Theoretical Computer Science, 809:265–276, 2020.DOI
  17. [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.arxiv.org/abs/2508.00349
  18. [18]Telikepalli Kavitha. A size-popularity tradeoff in the stable marriage problem. SIAM Journal on Computing, 43(1):52–71, 2014.DOI
  19. [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.DOI
  20. [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.arxiv.org/abs/2110.10984
  21. [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. [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.DOI
  23. [23]Telikepalli Kavitha and Meghana Nasre. Optimal popular matchings. Discrete Applied Mathematics, 157(14):3181–3186, 2009.DOI
  24. [24]David F. Manlove. Algorithmics of Matching Under Preferences, volume 2 of Series on Theoretical Computer Science. World Scientific, 2013.DOI
  25. [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.DOI
  26. [26]Eric McDermid and Robert W. Irving. Popular matchings: structure and algorithms. Journal of Combinatorial Optimization, 22(3):339–358, 2011.
  27. [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. [28]Julián Mestre. Weighted popular matchings. ACM Transactions on Algorithms, 10(1):2:1–2:16, 2014.
  29. [29]Kei Natsui and Kenjiro Takazawa. Finding popular branchings in vertex-weighted directed graphs. Theoretical Computer Science, 953:113799, 2023.DOI
  30. [30]James Oxley. Matroid Theory. Oxford Graduate Texts in Mathematics. Oxford University Press, 2011.
  31. [31]Katarzyna E. Paluch. Popular and clan-popular b-matchings. Theoretical Computer Science, 544:3–13, 2014.
  32. [32]Alexander Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Springer, 2003.
  33. [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.DOI

Paper details

vlnc:W_f4x8udxb
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents