NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fully Online Matching II: Beating Ranking and Water-filling

Zhiyi Huang, Zhihao Gavin Tang, Xiaowei Wu, Yuhao Zhang

Introduction

Online matching is a fundamental problem in combinatorial optimization with significant implications for real-world platforms like ride-hailing services and online advertising. In the classic online bipartite matching model introduced by Karp, Vazirani, and Vazirani (1990), one set of vertices is static (the "offline" side), while the other set arrives sequentially. However, modern applications often require a more dynamic approach. This paper explores the fully online matching model, where all vertices—regardless of which side of the graph they belong to—arrive and depart according to specific deadlines.

The long-standing benchmarks for this model have been the Ranking algorithm for integral matching and the Water-filling algorithm for fractional matching. For years, these algorithms were considered the gold standard. This research breaks those barriers, introducing two new algorithms—Balanced Ranking and Eager Water-filling—that achieve strictly better competitive ratios than their predecessors.

The Fully Online Model

In the fully online model, the graph $G = (V, E)$ is not known in advance. Each vertex $v \in V$ has an arrival time $a_v$ and a deadline $d_v$. An edge $(u, v)$ exists only if both vertices are "active" simultaneously—meaning their active intervals $[a_u, d_u]$ and $[a_v, d_v]$ overlap. When a vertex reaches its deadline, the algorithm must decide whether to match it with an available neighbor or leave it unmatched.

This model is more complex than the standard online model because it removes the distinction between "offline" and "online" vertices, reflecting the reality of platforms like Uber or Lyft, where both drivers and passengers arrive and depart dynamically.

Methodology: Randomized Online Primal-Dual Framework

To analyze and optimize these new algorithms, the authors employ a Randomized Online Primal-Dual framework. This approach allows the researchers to bound the competitive ratio—the ratio of the algorithm's performance to that of an optimal offline algorithm that knows the entire graph in advance.

The search for optimal parameters was treated as a factor-revealing Linear Program (LP). By discretizing the continuous differential equations that describe the algorithms' behavior, the authors utilized the Gurobi LP solver to identify the specific configurations that maximize the guaranteed competitive ratio.

Balanced Ranking: Integrating Lookahead Logic

The first major contribution is Balanced Ranking, an integral matching algorithm designed for bipartite graphs. While the classic Ranking algorithm uses a random permutation to break ties, it is essentially "blind" to the future state of the system.

Balanced Ranking bridges the gap between integral and fractional strategies. It incorporates "water levels"—a concept from fractional matching—to track how "matched" a vertex's neighborhood is. The critical innovation is the use of lookahead water levels. Instead of making decisions based solely on the current state, the algorithm evaluates the probability of a neighbor being matched immediately after the current vertex's deadline. This hedging strategy allows the algorithm to achieve a competitive ratio of 0.569, surpassing the previous benchmark of $\approx 0.567$.

Eager Water-filling: The Power of Eagerness

For fractional matching on general graphs, the authors introduce Eager Water-filling. Traditional Water-filling is "lazy"; it waits until a vertex reaches its deadline before attempting a match. The authors argue that this "laziness" ignores valuable information.

Eager Water-filling introduces a mathematical threshold function. If a vertex arrives and finds a neighbor that offers a "good enough" match according to this threshold, it matches immediately. This "eager" behavior captures opportunities that might be lost if the algorithm waited until the deadline. This approach yields a competitive ratio of 0.592, beating the standard Water-filling ratio of $\approx 0.585$. Notably, this result also exceeds the known upper bound for the "General Vertex Arrival" model (0.5914), proving that the fully online model is a distinct and slightly more flexible problem class.

Conclusion and Future Directions

This work demonstrates that the classic Ranking and Water-filling algorithms are not optimal in the fully online setting. By introducing lookahead logic and eager decision-making, the authors have established new state-of-the-art bounds for both integral and fractional matching.

While the numerical improvements are modest, they represent a significant theoretical breakthrough. Future research may focus on extending Balanced Ranking to general (non-bipartite) graphs or developing an "Eager Ranking" algorithm for integral matching. Although a simple version of Eager Ranking exists, current "hard instances" in mathematical modeling prevent it from breaking the 0.567 barrier without further conceptual innovation.

Summary updated

BibTeX
@inproceedings{huang2020fully,
  author = {Zhiyi Huang and Zhihao Gavin Tang and Xiaowei Wu and Yuhao Zhang},
  title = {{Fully Online Matching II: Beating Ranking and Water-filling}},
  booktitle = {FOCS},
  year = {2020},
  url = {https://openreview.net/forum?id=SJ0FyEz-jNz1},
}
Figure