English

Approximating Cycles in Directed Graphs: Fast Algorithms for Girth and Roundtrip Spanners

Data Structures and Algorithms 2018-08-14 v2

Abstract

The girth of a graph, i.e. the length of its shortest cycle, is a fundamental graph parameter. Unfortunately all known algorithms for computing, even approximately, the girth and girth-related structures in directed weighted mm-edge and nn-node graphs require Ω(min{nω,mn})\Omega(\min\{n^{\omega}, mn\}) time (for 2ω<2.3732\leq\omega<2.373). In this paper, we drastically improve these runtimes as follows: * Multiplicative Approximations in Nearly Linear Time: We give an algorithm that in O~(m)\widetilde{O}(m) time computes an O~(1)\widetilde{O}(1)-multiplicative approximation of the girth as well as an O~(1)\widetilde{O}(1)-multiplicative roundtrip spanner with O~(n)\widetilde{O}(n) edges with high probability (w.h.p). * Nearly Tight Additive Approximations: For unweighted graphs and any α(0,1)\alpha \in (0,1) we give an algorithm that in O~(mn1α)\widetilde{O}(mn^{1 - \alpha}) time computes an O(nα)O(n^\alpha)-additive approximation of the girth w.h.p, and partially derandomize it. We show that the runtime of our algorithm cannot be significantly improved without a breakthrough in combinatorial Boolean matrix multiplication. Our main technical contribution to achieve these results is the first nearly linear time algorithm for computing roundtrip covers, a directed graph decomposition concept key to previous roundtrip spanner constructions. Previously it was not known how to compute these significantly faster than Ω(min{nω,mn})\Omega(\min\{n^\omega, mn\}) time. Given the traditional difficulty in efficiently processing directed graphs, we hope our techniques may find further applications.

Keywords

Cite

@article{arxiv.1611.00721,
  title  = {Approximating Cycles in Directed Graphs: Fast Algorithms for Girth and Roundtrip Spanners},
  author = {Jakub Pachocki and Liam Roditty and Aaron Sidford and Roei Tov and Virginia Vassilevska Williams},
  journal= {arXiv preprint arXiv:1611.00721},
  year   = {2018}
}

Comments

this is a revision of the original submission that fixes an error (the original submission claimed that the additive approximation algorithm also works for roundtrip spanners; this is false)

R2 v1 2026-06-22T16:40:03.474Z