Problemadvanced
Popular matching
Also called Abraham-Irving-Kavitha-Mehlhorn popular matching.
Find a matching that no other matching beats in a majority vote of the agents. For strict lists, a linear time algorithm finds one or shows that none exists.
The popular matching problem is a version of the house allocation problem where the goal is a matching that wins every majority vote. Agents rank the objects (here called posts), and a matching is more popular than if more agents prefer to than prefer to . A matching is popular if no matching is more popular than it. It is the Condorcet winner among the matchings, and like a Condorcet winner it may fail to exist. Abraham, Irving, Kavitha and Mehlhorn (2007) characterized popular matchings for one-sided preferences. Their characterization gives an time algorithm for strict lists, where counts agents and posts and is the total length of the lists, and an time algorithm when the lists have ties.
In plain words
People rank rooms. Suppose we propose an assignment and let everyone vote between it and any other assignment. Each person votes for the assignment that gives them the better room, or abstains if they get the same room in both. The proposal is popular if it never loses such a vote.
Sometimes no proposal survives every vote: three people who all rank the rooms the same way can always vote out the current plan, as in the Condorcet paradox. The surprise is that a fast test can tell whether a popular plan exists, and find one, by looking only at each person's first choice and one second choice.
Definition
Input. A set of agents (applicants) and a set of posts. Each agent has a list of acceptable posts, best first. In the main case the lists are strict; in the variant with ties, a list is a sequence of tie classes. Let and let be the total length of the lists.
Output. A popular matching, or the answer that none exists. For matchings and , let be the number of agents that prefer to ; an agent prefers any acceptable post to being unmatched. is more popular than if , and is popular if no is more popular.
The characterization for strict lists. Add a new last-resort post at the end of the list of each agent ; then every matching can be taken to match every agent, with meaning "unmatched". Let be the first post on the list of , and call a post an f-post if it is for some . Let be the first post on the list of that is not an f-post; it exists because is not an f-post. Abraham et al. proved: a matching that matches every agent is popular if and only if
- every f-post is matched in , and
- every agent is matched to or to .
Variants
- Ties. With ties, becomes the set of first-ranked posts of . The characterization uses a maximum matching of the graph of first-choice edges and its Gallai-Edmonds decomposition, and the algorithm takes time.
- Largest popular matching. Among the popular matchings, find one that matches the most agents to real posts. The same paper shows how to do this within the same time bounds.
- Capacities and weights. Posts with several copies, and agents with weights for the vote, have been studied in the same framework; Manlove (2013, Chapter 7) gives an overview.
- Mixed matchings. A lottery over matchings that no other lottery beats in expectation always exists, and it can be found by linear programming.
- Two-sided preferences. If posts also rank agents, every stable matching is popular (Gardenfors 1975), so popular matchings always exist in the bipartite two-sided case. In the roommates setting, deciding if a popular matching exists is NP-hard (shown independently by Faenza, Kavitha, Powers and Zhang and by Gupta, Misra, Saurabh and Zehavi in 2019).
Examples
No popular matching. Three agents all rank . Write a matching as the posts of agents 1, 2 and 3. The matching loses to , since agents 2 and 3 improve and only agent 1 loses. In the same way loses to and loses to . A brute force check over all 34 matchings, including those that leave agents unmatched, finds no popular one. The characterization explains why: is the only f-post, so for every agent, and three agents cannot all be matched inside .
Two popular matchings of different sizes. Agent 1 ranks , agent 2 ranks , and agent 3 ranks . The f-posts are and . Then , and . Post can only be given to agent 3 (it is ), and post goes to agent 1 or agent 2. So the popular matchings are and , with agent 1 unmatched in the second. A brute force check confirms that these are the only two. Both are popular, so popularity alone does not ask for a large matching.
A comparison. In the second example, the matching is Pareto optimal (it is serial dictatorship with the order 2, 1, 3), but it is not popular: is preferred by agents 1 and 3 and only agent 2 loses.
Known algorithms
For strict lists (Abraham, Irving, Kavitha and Mehlhorn 2007):
- Add the last-resort posts and compute and for every agent. This is one pass over the lists.
- Build the reduced graph with the edges and . Each agent has degree at most 2 in it.
- Find a matching of that matches every agent. Because agents have degree at most 2, repeatedly matching a post of degree 1 to its only agent, and then handling the remaining cycles, does this in linear time. If no such matching exists, no popular matching exists.
- For each f-post that is still unmatched, pick an agent with ; it is matched to , so move it to . The result satisfies both conditions and is popular.
The total time is . For lists with ties, the same plan uses a maximum matching of the first-choice graph, computed by Hopcroft-Karp, which gives .
Bounds
- Strict lists: time to find a popular matching or report that none exists. Every algorithm must read the lists, so this is optimal.
- Ties: , the time of a maximum bipartite matching by Hopcroft-Karp. No faster method that avoids a maximum matching is known.
- Existence is not guaranteed, and the example with three equal lists shows that it can fail already for three agents.
- In the roommates setting the existence problem is NP-hard, so the polynomial bounds depend on the one-sided (or bipartite two-sided) structure.
Reductions
- To bipartite matching: by the characterization, a popular matching is a matching of the reduced graph that matches every agent and every f-post. With strict lists, has agent degree at most 2, which is why linear time suffices.
- Relation to voting: a popular matching is a weak Condorcet winner in the election whose candidates are the matchings and whose voters are the agents. The example without a popular matching is a Condorcet paradox.
- Relation to Pareto optimality: every popular matching is Pareto optimal, since a Pareto improvement would win the vote, but the converse fails, as the comparison example shows.
Applications
Allocation of housing, courses or jobs where the outcome must be defensible against a vote of the participants. Popular matchings also serve as a middle ground between stability and size in two-sided markets, where a popular matching can be larger than every stable matching.
References
- David J. Abraham, Robert W. Irving, Telikepalli Kavitha and Kurt Mehlhorn, Popular matchings, SIAM Journal on Computing 37(4), 1030 to 1045 (2007), the characterization by first and second posts, the linear time algorithm for strict lists and the algorithm for lists with ties
- David F. Manlove, Algorithmics of Matching Under Preferences, World Scientific (2013), Chapter 7, Popular matchings
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag T25YJS Edit this page History Report an error Markdown