arXiv:2608.23350cs.DSAug 2026

Manuscript Offprint

arXiv:2608.23350

Asymptotically Tight Fractional Online Matching Under Edge Arrivals

David Wajc

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

In this brief note, we close the asymptotic gap between known upper and lower bounds for fractional online matching under edge arrivals. We prove that the optimal competitive ratio for this problem is 1/2+Θ(1/n)1/2 + \Theta(1/n). The algorithm was suggested and analyzed by OpenAI's ChatGPT Sol based on a single prompt. The presentation was streamlined over a few hours, based on a back and forth discussion with the author, who assumes responsibility for any errors.

1 Introduction

Online matching is an intensely studied problem (see surveys [Meh13, HTW24]). In the most basic setting, edges of an n-node graph arrive online sequentially, and one must decide immediately and irrevocably whether to match each arriving edge. A trivial greedy algorithm achieves a competitive ratio of 1/2: it outputs a matching of size at least OPT/2, where OPT denotes the size of a hindsight-optimal matching. Competitive ratios of 1/2+Ω(1)1/2 + \Omega(1) are achievable if nodes are revealed sequentially [KVV90, GKM +^{+}19, HKT +^{+}18]. In contrast, in the stricter edge-arrival model, the optimal competitive ratio is 1/2+o(1)1/2 + o(1): [BST19, LS20] achieve a ratio of 1/2+exp⁡−Θ(n)1/2 + \exp^{-\Theta(n)}, while [GKM +^{+}19] show that no ratio above 1/2+O(1/n)1/2 + O(1/n) is attainable, even by fractional algorithms.

Fractional algorithms assign each edge ee a value xex_e on arrival so that x\mathbf{x} is a fractional matching: xe≥0x_e \geq 0 for each edge ee and ∑f∋vxf≤1\sum_{f \ni v} x_f \leq 1 for each node vv. Such an algorithm has value ALG≜∑exeALG \triangleq \sum_e x_e, and it is cc-competitive if ALG≥c⋅OPTALG \geq c \cdot OPT.

In this note we close this asymptotic gap, giving a 1/2+Ω(1/n)1/2 + \Omega(1/n)-competitive fractional algorithm. Together with the result of [GKM+19][GKM^{+}19], this shows that the optimal competitive ratio is 1/2+Θ(1/n)1/2 + \Theta(1/n).