Maximum Weight Online Matching with Deadlines

Itai Ashlagi, Maximilien Burq, Chinmoy Dutta, Patrick Jaillet, Amin Saberi, Chris SholleyarXiv 2018

Abstract

In dynamic marketplaces such as ride-sharing, agents arrive sequentially and remain available only for a limited duration. This paper addresses the problem of maximum weight online matching with deadlines. We introduce "Postponed Greedy," a randomized algorithm that achieves a 1/4-competitive ratio against adversarial arrivals by utilizing a virtual bipartite graph and delayed commitment. Additionally, we analyze a batching strategy for random arrival orders, proving a 0.279-competitive ratio. Our work demonstrates that deadlines provide critical "breathing room" that enables constant competitive ratios in weighted general graphs.

Introduction

Modern marketplaces like Uber and Lyft require matching participants (e.g., drivers and passengers) in real-time. Unlike static matching, these environments are dynamic: agents arrive at different times and have a fixed deadline $d$ before they exit the system. The central challenge is the trade-off between immediate matching and waiting for potentially higher-value future opportunities. If an algorithm matches an agent too early, it might miss a better match; if it waits too long, the agent departs, and the opportunity is lost entirely. This paper provides theoretical guarantees for algorithms in this "online matching with deadlines" setting.

The Postponed Greedy Algorithm

For the adversarial arrival model, where the sequence of arrivals is designed to be worst-case, we propose the Postponed Greedy (PG) algorithm. The algorithm operates by maintaining a "virtual bipartite graph" where each arriving vertex is treated as both a potential "buyer" and "seller."

The algorithm tentatively matches agents using a greedy approach but crucially postpones the final commitment until a vertex reaches its deadline (becomes "critical"). At the deadline, a randomized decision (a coin flip) determines the vertex's role. This decision is then propagated through the chain of tentative matches.

Figure 1: A simple path graph illustrating the propagation of matching decisions in the Postponed Greedy algorithm.

By using correlated randomization—where the choice for one vertex influences its neighbors in the tentative matching path—the algorithm avoids the factor-of-2 loss associated with independent random choices. This propagation ensures that matching decisions are made globally across the path of potential matches rather than in isolation.

Random Arrival Orders and Batching

In a more optimistic scenario where agents arrive in a uniformly random order, we analyze a simple Batching Algorithm. The platform waits for $d+1$ time steps, collects all agents in that window, computes a maximum-weight matching for the batch, and then clears the system.

To analyze this, we reduce the competitive ratio calculation to a combinatorial "graph covering" problem. Using computer-aided proofs and linear programming, we establish that this batching strategy is 0.279-competitive. Interestingly, the analysis suggests that if the algorithm has even limited look-ahead capabilities, this ratio improves significantly toward optimality.

Key Results

The theoretical analysis yields several significant bounds:

  • Adversarial Arrivals: The Postponed Greedy algorithm is 1/4-competitive. The authors also prove an upper bound: no randomized algorithm can be better than 1/2-competitive in this setting.
  • Stochastic Departures: If agent departure times are drawn from a distribution with a non-decreasing hazard rate (e.g., exponential), the algorithm remains 1/8-competitive.
  • Random Order Arrivals: The batching algorithm is shown to be 0.279-competitive.

Conclusion

This research highlights that deadlines are a fundamental enabler for effective online matching. While immediate matching ($d=0$) often precludes constant competitive ratios in weighted graphs, even a small deadline allows for sophisticated postponement strategies. Future work may extend these models to include variable waiting costs and leverage historical demand patterns to further optimize marketplace efficiency beyond the "no a priori information" assumption.

Summary updated

BibTeX
@misc{ashlagi2018maximum,
  author = {Itai Ashlagi and Maximilien Burq and Chinmoy Dutta and Patrick Jaillet and Amin Saberi and Chris Sholley},
  title = {{Maximum Weight Online Matching with Deadlines}},
  year = {2018},
  eprint = {1808.03526},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1808.03526},
}
Figure