English

Online Carpooling using Expander Decompositions

Data Structures and Algorithms 2020-10-06 v2 Computer Science and Game Theory

Abstract

We consider the online carpooling problem: given nn vertices, a sequence of edges arrive over time. When an edge et=(ut,vt)e_t = (u_t, v_t) arrives at time step tt, the algorithm must orient the edge either as vtutv_t \rightarrow u_t or utvtu_t \rightarrow v_t, with the objective of minimizing the maximum discrepancy of any vertex, i.e., the absolute difference between its in-degree and out-degree. Edges correspond to pairs of persons wanting to ride together, and orienting denotes designating the driver. The discrepancy objective then corresponds to every person driving close to their fair share of rides they participate in. In this paper, we design efficient algorithms which can maintain polylog(n,T)(n,T) maximum discrepancy (w.h.p) over any sequence of TT arrivals, when the arriving edges are sampled independently and uniformly from any given graph GG. This provides the first polylogarithmic bounds for the online (stochastic) carpooling problem. Prior to this work, the best known bounds were O(nlogn)O(\sqrt{n \log n})-discrepancy for any adversarial sequence of arrivals, or O(log ⁣logn)O(\log\!\log n)-discrepancy bounds for the stochastic arrivals when GG is the complete graph. The technical crux of our paper is in showing that the simple greedy algorithm, which has provably good discrepancy bounds when the arriving edges are drawn uniformly at random from the complete graph, also has polylog discrepancy when GG is an expander graph. We then combine this with known expander-decomposition results to design our overall algorithm.

Keywords

Cite

@article{arxiv.2007.10545,
  title  = {Online Carpooling using Expander Decompositions},
  author = {Anupam Gupta and Ravishankar Krishnaswamy and Amit Kumar and Sahil Singla},
  journal= {arXiv preprint arXiv:2007.10545},
  year   = {2020}
}

Comments

17 pages

R2 v1 2026-06-23T17:16:04.307Z