Conditionally Optimal Approximation Algorithms for the Girth of a Directed Graph

Abstract

It is known that a better than 22-approximation algorithm for the girth in dense directed unweighted graphs needs n3o(1)n^{3-o(1)} time unless one uses fast matrix multiplication. Meanwhile, the best known approximation factor for a combinatorial algorithm running in O(mn1ϵ)O(mn^{1-\epsilon}) time (by Chechik et al.) is 33. Is the true answer 22 or 33? The main result of this paper is a (conditionally) tight approximation algorithm for directed graphs. First, we show that under a popular hardness assumption, any algorithm, even one that exploits fast matrix multiplication, would need to take at least mn1o(1)mn^{1-o(1)} time for some sparsity mm if it achieves a (2ϵ)(2-\epsilon)-approximation for any ϵ>0\epsilon>0. Second we give a 22-approximation algorithm for the girth of unweighted graphs running in O~(mn3/4)\tilde{O}(mn^{3/4}) time, and a (2+ϵ)(2+\epsilon)-approximation algorithm (for any ϵ>0\epsilon>0) that works in weighted graphs and runs in O~(mn)\tilde{O}(m\sqrt n) time. Our algorithms are combinatorial. We also obtain a (4+ϵ)(4+\epsilon)-approximation of the girth running in O~(mn21)\tilde{O}(mn^{\sqrt{2}-1}) time, improving upon the previous best O~(mn)\tilde{O}(m\sqrt n) running time by Chechik et al. Finally, we consider the computation of roundtrip spanners. We obtain a (5+ϵ)(5+\epsilon)-approximate roundtrip spanner on O~(n1.5/ϵ2)\tilde{O}(n^{1.5}/\epsilon^2) edges in O~(mn/ϵ2)\tilde{O}(m\sqrt n/\epsilon^2) time. This improves upon the previous approximation factor (8+ϵ)(8+\epsilon) of Chechik et al. for the same running time.Comment: To appear in ICALP 202

    Similar works