Online Hypergraph Matching with Delays: Randomized Batching with Depth-k Greedy Is 1/d-Competitive for Online-(k, d)-Max-MatchingResearch Paper
Motivation
Ride-pooling platforms receive trip requests one at a time and must decide, within a short waiting window, which requests to group into a shared vehicle. A request that is not grouped before its window closes is served alone or lost. Online hypergraph matching with delays is the combinatorial core of this decision: requests are vertices that arrive over time, feasible groups of up to riders are weighted hyperedges, and the platform must commit irrevocably to disjoint groups while every member of a group is still waiting. Pavone, Saberi, Schiffer and Tsao (arXiv:2009.12022, 2020; journal version Technical Note — Online Hypergraph Matching with Delays, Operations Research, 2022) determine the optimal competitive ratio of this problem in the utility-maximization setting. For no online algorithm beats ratio , where is the waiting time (their Theorem 1, via the adversarial secretary problem), and their Theorem 3 achieves with a polynomial-time algorithm for every fixed . This mission formalizes the achievability half.
Setting
Requests arrive one per time step; request arrives at time and disappears at time . A hyperedge is a non-empty set of requests, its diameter is , and each hyperedge carries a weight . A shareability hypergraph with parameters is a finite edge set of subsets of with and for all (Definition 1, p. 2). A matching is a set of pairwise disjoint hyperedges, of weight . In Online-(k, d)-Max-Matching (Definition 2, p. 3) a hyperedge may be chosen only after all its vertices have arrived and before any of them disappears, and choices are irrevocable.
Greedy (Algorithm 5, p. 15) scans a finite edge set in non-increasing order of weight, ties broken arbitrarily, and keeps every edge disjoint from those already kept.
Randomized-Batching (Algorithm 1, p. 5) draws a shift uniformly from and cuts time into windows
with batch edges and . At the end of each window it runs an offline subroutine on the batch and commits the result ; the output is .
Depth-k Greedy (Algorithm 2, p. 7) is the subroutine. With and the first and last vertices of the batch, it enumerates the restricted matchings (Definition 18, p. 19), the matchings whose every edge meets both and ; it extends each by Greedy on the edges avoiding the vertices of , and it returns the heaviest extension.
Formalization targets
Goal: Theorem 3, p. 7 (competitive clause)
For every shift , is a matching of whose edges each lie inside one window, and for every matching of
The statement holds for every weight-sorted tie-breaking of Greedy.
Milestones
With and :
- Batch decomposition (proof of Theorem 2, p. 6): the windows partition , the batches are disjoint, and .
- Observation 1 (p. 6): .
- Lemma 4 (p. 14): Greedy returns a matching with for every matching of a rank- hypergraph.
- Observation 3 (p. 19): an edge of a window with meets both and .
- Condition (3) for Depth-k Greedy (p. 19): .
- Reduction (4) (p. 18): any subroutine satisfying (3) on every batch gives .
Significance
Theorem 3 closes the gap left by the general guarantee of Theorem 2 and Lemma 2 (p. 6), under which any -competitive offline subroutine yields ratio . With plain Greedy this gives only (Corollary 1, p. 7), and an exact subroutine gives but is NP-hard for . Together with the upper bound of Theorem 1, Theorem 3 settles the optimal competitive ratio of Online-(k, d)-Max-Matching for and shows that it is attained in polynomial time for each fixed . The batching-plus-restricted-enumeration pattern applies to other online problems in which items have a bounded lifetime.
The result is proved in the paper. To our knowledge none of it is machine-checked: no hypergraph matching model, no Greedy guarantee for weighted -set packing, and no batching argument exists on the platform. Lemma 4, the classical guarantee of Greedy for weighted rank- hypergraph matching, is cited in the paper without proof ([6, 8]); its formalization is reusable on its own.
Difficulty
The natural attempt is to run Greedy inside each batch. It loses the factor on every edge, and the random shift recovers that factor only for edges that survive batching for at least of the shifts, that is, edges of diameter at most . A long edge, with diameter above , lies in for fewer than shifts, so its loss is never compensated and the bound degrades to . Long edges therefore have to be recovered exactly in every batch. The exact optimum is intractable, so a different handle on long edges is needed. The formal work also has to deal with windows truncated at the ends of , with the first partial window, and with arbitrary tie-breaking inside Greedy.
Formalization scope
Vertices are natural numbers and ; hyperedges are Finset ℕ, edge sets are Finset (Finset ℕ), and weights are a function Finset ℕ → ℝ, read only on . The definitions file HyperMatchDelay.Batching.Model fixes these conventions:
- Hyperedges are non-empty, an assumption the paper leaves implicit. and are hypotheses.
- Greedy's arbitrary tie-breaking is an ordering oracle listing each edge set in non-increasing weight order. Every statement about Greedy holds for every such oracle, independently in every call.
- Windows are indexed by and are pairwise disjoint. This replaces the paper's , which misses the first requests, and Algorithm 1's overlapping last batch.
- Definition 18's condition is dropped. It fails for batches with fewer than vertices and no argument uses it.
- The maximizer in Depth-k Greedy is a fixed choice; all maximizers have the same weight.
- The expectation over is the average , and the long/short threshold is compared in .
The running-time clauses of Theorem 3 and Lemma 4 are not formalized, since there is no cost model. The goal does not assume condition (3) as a hypothesis, and its subroutine is Depth-k Greedy as defined, with Greedy inside it. A single batch containing all of , or an exact offline subroutine, would make the statement a different and easier claim, and the formalization rules both out.
Contributions are welcome on every milestone. Lemma 4 and Observation 1 are independent of the rest. Lemma 4 is the most reusable item: a general Greedy guarantee for weighted set packing.
Selected references
- M. Pavone, A. Saberi, M. Schiffer, M. W. Tsao, Online Hypergraph Matching with Delays, arXiv:2009.12022v1, 2020. https://arxiv.org/abs/2009.12022 (page and theorem numbers in this mission refer to this version; page numbers equal PDF page indices).
- M. Pavone, A. Saberi, M. Schiffer, M. W. Tsao, Technical Note — Online Hypergraph Matching with Delays, Operations Research, 2022 (journal version; not consulted for this mission).
- P. Berman, A d/2 approximation for maximum weight independent set in d-claw free graphs, Nordic Journal of Computing 7(3), 178–184, 2000 (reference [6] of the paper, cited for Lemma 4).
- B. Chandra, M. M. Halldórsson, Greedy local improvement and weighted set packing approximation, Journal of Algorithms 39(2), 223–240, 2001 (reference [8] of the paper, cited for Lemma 4).