Skip to content

O(1)O(1)-Competitive Stochastic Online Metric Matching in General Metrics

Jittat Fakcharoenphol, Pasin Manurangsi, Phanu Vajanopath

cs.DS

Abstract

We study stochastic online metric matching, in which nn requests drawn independently from a common distribution must be matched immediately and irrevocably to nn servers in a metric space. Gupta, Guruganesh, Peng, and Wajc [ICALP'19] introduced the Fair-Bias algorithm and proved an O((log⁡log⁡log⁡n)2)O((\log\log\log n)^2) competitive ratio on general metrics. We prove that Fair-Bias is O(1)O(1)-competitive on every finite metric space when the arrival distribution is known, resolving their open question. Their analysis combines a "balls-and-bins" argument when many free servers remain with a tree-embedding argument when few remain. We replace this division into two regimes with a unified clustered transport analysis. We partition the servers into clusters along a minimum spanning tree tour (as in the twice-around-the-tree algorithm for metric TSP) and extend the balls-and-bins argument from individual servers to clusters to bound the intercluster cost. To bound the intracluster cost, we prove a sharp inequality showing that the minimum spanning tree weight is at most ee times the expected offline optimum under arrivals uniform over the nn servers. For unknown arrival distributions, we introduce Empirical-Fair-Bias, a (4ρ+1)(4ρ+1)-competitive algorithm, where ρρ is the competitive ratio of Fair-Bias under uniform arrivals on the same metric space. Consequently, our algorithm is O(1)O(1)-competitive on general metrics. Concurrently and independently, Harada [arXiv'26] gives a different algorithm that also yields O(ρ)O(ρ) competitiveness.

Create a lesson

Metadata

Comments
30 pages