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

Polylogarithmic Bounds on the Competitiveness of Min-cost (Bipartite) Perfect Matching with Delays

Yossi Azar, Ashish Chiplunkar, Haim Kaplan

Abstract

We investigate the online Min-cost Perfect Matching with Delays (MPMD) problem on an $n$-point metric space. In this setting, an algorithm must pair requests arriving in real-time, balancing the distance between matched pairs (connection cost) against the time requests spend waiting (delay cost). We present a novel algorithm achieving a competitive ratio of $O(\log n)$, significantly improving upon previous bounds that depended on the metric space's aspect ratio ($\Delta$). Our approach utilizes a deterministic algorithm for tree metrics of height $h$ that is $O(h)$-competitive, combined with randomized embeddings into hierarchically separated trees. Furthermore, we establish the first lower bounds for this problem that grow with $n$: $\Omega(\sqrt{\log n})$ for MPMD and $\Omega(\log^{1/3} n)$ for the bipartite variant (MBPMD).

Introduction

Online matching problems are fundamental to modern digital infrastructure. Consider a multiplayer gaming server or a ride-sharing platform: users arrive at different times and locations, and the system must decide when and with whom to pair them. Matching a user immediately might result in a poor pairing (e.g., high latency or long travel distance), whereas waiting for a better match increases user frustration (delay).

This trade-off is formalized as Min-cost Perfect Matching with Delays (MPMD). The goal is to minimize the sum of all connection costs and all waiting times. A critical variant is Min-cost Bipartite Perfect Matching with Delays (MBPMD), where requests have polarities (e.g., riders and drivers) and can only be matched with opposite types. Previous state-of-the-art solutions were $O(\log^2 n + \log \Delta)$-competitive. However, because the aspect ratio $\Delta$ can be arbitrarily large, these bounds were often impractical. This research addresses whether the competitive ratio can be bounded purely as a function of the number of points $n$.

Algorithmic Framework

The authors achieve an $O(\log n)$ competitive ratio through a two-stage process: metric reduction and a deterministic tree-based matching strategy.

1. Reduction to Tree Metrics

Arbitrary metric spaces are complex to navigate online. The authors employ a randomized embedding technique to map the $n$-point metric space into a distribution over weighted hierarchically separated trees (HSTs). By applying a height-reduction step, they ensure the resulting trees have a maximum height of $O(\log n)$ while maintaining a distortion of $O(\log n)$. This reduction allows the problem to be solved on a simplified structure where distances are defined by tree edges.

2. The Deterministic Tree Algorithm

On these tree metrics, the authors introduce a clean, decentralized algorithm:

  • MPMD Logic: The algorithm maintains a "timer" for every node in the tree. If a subtree contains an odd number of unmatched requests, its timer increases at a rate proportional to the number of requests. Once the timer reaches a threshold defined by the weight of the edge connecting the subtree to its parent, the algorithm "buys" that edge. When a path of bought edges connects two requests, they are matched.
  • MBPMD Logic: The bipartite version follows a similar logic but tracks the "surplus" (the net difference between positive and negative requests) within each subtree rather than simple parity.

This approach ensures that the algorithm's cost is at most $O(h)$ times the optimal cost, where $h$ is the tree height.

Lower Bound Construction

A major contribution of this work is proving that the competitive ratio must grow with the size of the metric space. Using Yao’s Minimax Principle, the authors constructed a difficult probability distribution of inputs on a simple 1D line metric consisting of $n$ equally spaced points.

By releasing requests in phases with geometrically decaying time intervals, the adversary forces any deterministic algorithm into a dilemma: either match requests early across large distances (incurring high connection costs) or wait through multiple phases (incurring high delay costs). This construction yielded a lower bound of $\Omega(\sqrt{\log n})$ for MPMD and $\Omega(\log^{1/3} n)$ for MBPMD, proving that the complexity of the problem scales inherently with $n$.

Key Results and Significance

  • Removal of Aspect Ratio: The research proves that the performance of online matching with delays does not depend on how spread out the points are in space, but only on the number of possible locations ($n$).
  • Optimal Tree Performance: The deterministic algorithm is $O(h)$-competitive on trees. For uniform metrics, this results in a constant $O(1)$ competitive ratio.
  • First $n$-dependent Lower Bounds: Prior to this study, it was unknown if the competitive ratio had to increase as $n$ grew. These results confirm a fundamental scaling limit for online matching algorithms.

Conclusion and Future Work

While this work provides the first purely logarithmic upper bound, a gap remains between the $O(\log n)$ upper bound and the $\Omega(\text{polylog } n)$ lower bounds. The authors suggest that further improvements to the upper bound may require moving beyond tree embeddings, as the $O(\log n)$ distortion inherent in such embeddings creates a natural performance floor.

Additionally, the current $O(\log n)$ bound relies on randomized embeddings. Investigating the limits of strictly deterministic algorithms on arbitrary metrics remains an open challenge, with the authors predicting a potential exponential gap in performance. Finally, extending these results to $k$-dimensional matching (e.g., matching groups of four for a game) presents a promising avenue for future research.

Summary updated

BibTeX
@misc{azar2016polylogarithmic,
  author = {Yossi Azar and Ashish Chiplunkar and Haim Kaplan},
  title = {{Polylogarithmic Bounds on the Competitiveness of Min-cost (Bipartite) Perfect Matching with Delays}},
  year = {2016},
  eprint = {1610.05155},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.05155},
}
Figure