Edge-Weighted Online Windowed Matching: Postponed Greedy Is -Competitive for Arbitrary Online GraphsResearch Paper
Motivation
Ride-sharing platforms match passengers who request rides at different times and places. Three features of that problem are hard to separate: two passengers far apart yield a poor match, two requests far apart in time cannot be matched at all, and the platform does not know future demand. Ashlagi, Burq, Dutta, Jaillet, Saberi and Sholley (arXiv:1808.03526v1, published in Mathematics of Operations Research, 2023, as Edge-Weighted Online Windowed Matching) reduce these features to a graph matching problem on an arbitrary, not necessarily bipartite, graph.
The classical online bipartite matching literature takes : a vertex must be matched on arrival. Emek, Kutten and Wattenhofer (STOC 2016) and Huang et al. (STOC 2018) study delayed decisions in other models. The present model fixes a uniform deadline, and the weights are arbitrary.
Setting
A weighted graph has vertices and weights on undirected pairs. Vertices arrive one per period, vertex in period , and the Adversarial Order setting assumes . The weight of a pair is observed only when its later vertex arrives.
For a deadline , the online graph keeps the edge exactly when . Vertex becomes critical at period : the algorithm must match it then or let it depart. The benchmark is the maximum weight of a matching of . A randomized online algorithm is -competitive if its expected total weight is at least .
Postponed Greedy (PG, Algorithm 3) gives each vertex a virtual seller with price and a virtual buyer . On arrival, bids once on the seller of largest margin . If the margin is positive, becomes the tentative match , displacing any earlier buyer, and rises to . The maximal margin is . When becomes critical with , a fair coin decides 's status if it is still undetermined. A seller finalizes and collects , and in either case receives the opposite status.
Formalization targets
Goal: Theorem 3.3
The theorem is stated for every , every , all and every tie-breaking rule for the , as four clauses. Every finalized pair is an edge of , for every outcome of the coins. The finalized pairs are vertex-disjoint, for every . The expected reward satisfies
And the state after periods depends only on the weights among vertices arrived by then and on the coins of vertices already critical.
Milestones
The proof of Theorem 3.3 uses no numbered result, so the milestones are its unnumbered claims, in proof order.
- The virtual run reads no coin.
- The matches form a collection of disjoint paths in .
- Statuses alternate along a path, and is finalized exactly if is a seller.
- A vertex with a final match is a seller with probability exactly .
- .
- .
- when arrives, for with .
- increases over time.
- is feasible for the dual of the offline matching program.
- is at most the value of any feasible dual solution.
Significance
The result. Theorem 3.3 gives a constant competitive ratio for matching on arbitrary graphs with arbitrary non-negative weights and an adversarial arrival order. The paper's Figure 1 shows that no deterministic algorithm achieves a constant ratio, and the paper shows that no algorithm exceeds . The same algorithm underlies the paper's extension to stochastic departures.
The formalization. The theorem is proved in the paper, and at the time of writing no machine-checked proof exists on this platform. The mission produces an executable-style specification of a randomized online algorithm, with the word "online" as a theorem clause, not a comment. It also produces a primal-dual argument for general-graph matching in the shape used by auction-style online algorithms. Weak duality for vertex potentials (milestone 10) is stated for every finite simple graph.
Difficulty
The obvious approach, assigning each vertex a seller or buyer role by an independent coin, loses a factor on each edge and gives only (Corollary 3.2). Postponed Greedy gains the factor by correlating the roles along paths of the virtual -matching.
That correlation is the central difficulty. Whether is a seller is not one coin: it is the coin at the head of 's path, flipped once per step along the path, and which vertices form that path depends on prices set after arrived. The claim "with probability exactly " (milestone 4) needs the path structure to be independent of the coins (milestone 1), and it fails for a vertex with no final match. A vertex with no match is never a seller, which the proof's sentence leaves implicit, so milestone 4 is stated only for matched vertices.
Two further points are easy to get wrong. A buyer displaced from a seller never bids again, so the tentative matching need not be a maximum-weight matching of the virtual graph. The price of a seller rises while the seller is present, and the dual constraint for reads the price at the moment arrives, so the constraint at the final prices needs monotonicity (milestone 8).
Formalization scope
Vertices are Fin n, 0-based: vertex arrives in period and becomes critical in period . Weights are v : Sym2 (Fin n) → ℝ. The run is a fold over the periods , with the arrival processed before the criticality within a period. Both choices are forced: processing criticality first makes the theorem false on , , and stopping at period collects nothing on , . Margins read onlineWeight, which is off the edges of the online graph, so the seller has margin for . Coins are ω : Fin n → Bool, uniform, and the expectation is . The benchmark reuses the published ProphetMatchingEFGT.optWeight, a finite maximum over matchings of a SimpleGraph.
The tie-breaking rule is a free parameter of the theorem, restricted to choose a maximizer and to see the arriving vertex, the seller set and the margins, but no coin. The reward is a sum over the finalized pairs, not the quantity , and the benchmark is on and on no other graph. Each of these excludes a trivializing reading.
A complete development needs invariants of the state machine and no theory beyond Mathlib: finite sums, Finset and Sym2 manipulation, and counting on Fin n → Bool. Milestone 10 is reusable beyond this mission. Contributions to any milestone are welcome, in any order.
Selected references
- I. Ashlagi, M. Burq, C. Dutta, P. Jaillet, A. Saberi, C. Sholley, Maximum Weight Online Matching with Deadlines, arXiv:1808.03526v1, 2018. https://arxiv.org/abs/1808.03526
- J. Feldman, N. Korula, V. Mirrokni, S. Muthukrishnan, M. Pál, Online ad assignment with free disposal, WINE 2009, pp. 374–385. https://doi.org/10.1007/978-3-642-10841-9_34
- Y. Emek, S. Kutten, R. Wattenhofer, Online matching: haste makes waste!, STOC 2016, pp. 333–344. https://doi.org/10.1145/2897518.2897557
- Z. Huang, N. Kang, Z. G. Tang, X. Wu, Y. Zhang, X. Zhu, How to match when all vertices arrive online, STOC 2018, pp. 17–29. https://doi.org/10.1145/3188745.3188858