Max-min greedy matching

Alon Eden, Uriel Feige, Michal Feldman

Abstract

This paper addresses a fundamental open problem in online bipartite matching and sequential pricing: given a known demand graph, can we order items to guarantee a matching size strictly greater than 50% of the optimum, regardless of the adversarial order in which buyers arrive? We present a polynomial-time algorithm that achieves a guarantee of at least 0.51, successfully breaking the notorious $1/2$ barrier.

Introduction

The problem of matching buyers to items in a bipartite graph is central to internet advertising, stable matching, and posted-price mechanisms. In many real-world scenarios, buyers arrive sequentially and greedily select their most preferred available item. While greedy matching is simple and robust, it is well-known to only guarantee at least $1/2$ of the optimal matching size in the worst case. This paper investigates whether a designer, with full knowledge of the bipartite graph, can strategically order items to improve this guarantee against an adversarial arrival order.

Problem Formulation

The interaction is modeled as a max-min game on a bipartite graph $G = (U \cup V, E)$, where $U$ represents buyers and $V$ represents items. We assume $G$ admits a perfect matching.

  1. The Designer (Max Player): Selects a priority order (permutation $\pi$) over the items $V$.
  2. The Adversary (Min Player): Observes $\pi$ and selects an arrival order (permutation $\sigma$) for the buyers $U$.
  3. The Greedy Process: Buyers arrive one by one according to $\sigma$. Each buyer $u \in U$ matches with their highest-ranked available neighbor in $V$ according to $\pi$.
Figure 1: Illustration of the max-min greedy matching process on a bipartite graph G, showing the interaction between buyer arrival order σ and item priority order π.

The goal is to find a permutation $\pi$ that maximizes the size of the resulting matching in the worst-case $\sigma$. Since the matching is maximal, a $1/2$ ratio is trivial. The core challenge is proving that a ratio $\rho > 1/2$ is always achievable.

Methodology

To surpass the $1/2$ barrier, the authors move beyond simple random permutations and introduce a deterministic, structure-aware algorithm.

The Spoiling Graph

The algorithm constructs a directed "spoiling graph" $H$ from the original bipartite graph. An edge from item $A$ to item $B$ in $H$ indicates that if a buyer takes item $B$, it may "spoil" the optimal match for the buyer intended for item $A$.

Maximal Path Covers and Strategic Ordering

The algorithm identifies a maximal path cover of $H$—a set of disjoint directed paths covering all vertices. By analyzing the properties of these paths (e.g., path length, start/end vertices), the authors partition the items into specific subsets. These subsets are then strategically placed at the beginning of the permutation $\pi$. This ordering prevents the adversary from triggering a cascade of "spoilage" that would significantly degrade the matching size.

Key Insights

  • The 1/2 Barrier is Not Fundamental: The most significant contribution is the affirmative answer to the long-standing open question. Full information about the graph structure can be leveraged to strictly beat the $1/2$ bound.
  • Necessity of Deterministic Algorithms: Surprisingly, a uniformly random permutation $\pi$ does not guarantee a ratio $> 1/2$ for general graphs. There exist graphs where random permutations yield exactly $1/2 + o(1)$. Thus, the deterministic, path-cover-based approach is essential.
  • Structure Empowers Randomness: While random permutations fail on general graphs, they do strictly beat $1/2$ on highly structured graphs, such as Hamiltonian and regular bipartite graphs.
  • Adversarial Strength: Even in highly connected $d$-regular graphs, the adversary's power to choose arrival order is significant. No item ordering can guarantee more than an $8/9$ fraction of the optimal matching.

Results

The paper provides several key theoretical results:

  • General Graphs: There exists a polynomial-time algorithm to compute an item permutation $\pi$ that guarantees a matching size of at least $\rho \ge 1/2 + 1/86 \approx 0.5116$ of the optimum.
  • Specialized Graphs: For Hamiltonian graphs, a random permutation guarantees an expected matching size $> 0.5012$. For $d$-regular graphs, the guarantee is at least $5/9 - O(1/\sqrt{d})$.
  • Upper Bounds: For any $d$, there exists a $d$-regular graph where no permutation can guarantee more than an $8/9$ fraction.

Conclusion and Future Work

This work establishes that the $1/2$ barrier in max-min greedy matching can be broken using structural graph analysis. However, the current bound of $0.51$ is likely not tight. Determining the exact optimal ratio $\rho$ for general graphs remains a major open problem. Additionally, finding simpler heuristics and tighter bounds for specific graph classes like regular and Hamiltonian graphs are promising directions for future research.

Summary updated

BibTeX
@inproceedings{eden2018max,
  author = {Alon Eden and Uriel Feige and Michal Feldman},
  title = {{Max-min greedy matching}},
  booktitle = {NetEcon@SIGMETRICS},
  year = {2018},
  doi = {10.1145/3338506.3340238},
}
Figure