skip to main content
research-article

Faster Approximation Algorithms for Computing Shortest Cycles on Weighted Graphs

Published: 01 January 2021 Publication History

Abstract

Given an $n$-vertex $m$-edge graph $G$ with nonnegative edge-weights, a shortest cycle is one minimizing the sum of the weights on its edges. The girth of $G$ is the weight of a shortest cycle. We obtain several new approximation algorithms for computing the girth of weighted graphs: For any graph $G$ with polynomially bounded integer weights, we present a deterministic algorithm that computes, in $\tilde{\cal O}(n^{5/3}+m)$-time, a cycle of weight at most twice the girth of $G$. This matches the approximation factor of the best known subquadratic-time approximation algorithm for the girth of unweighted graphs. Then, we turn our algorithm into a deterministic $(2+\varepsilon)$-approximation for graphs with arbitrary nonnegative edge-weights, at the price of a slightly worse running time in $\tilde{\cal O}(n^{5/3}\text{polylog}{(1/\varepsilon)}+m)$. For that, we introduce a generic method in order to obtain a polynomial-factor approximation of the girth in subquadratic time, that may be of independent interest. Finally, if we assume that the adjacency lists are sorted then we can get rid off the dependency in the number $m$ of edges. Namely, we can transform our algorithms into an $\tilde{\cal O}(n^{5/3})$-time randomized 4-approximation for graphs with nonnegative edge-weights. This can be derandomized, thereby leading to an $\tilde{\cal O}(n^{5/3})$-time deterministic 4-approximation for graphs with polynomially bounded integer weights, and an $\tilde{\cal O}(n^{5/3}\text{polylog}{(1/\varepsilon)})$-time deterministic $(4+\varepsilon)$-approximation for graphs with nonnegative edge-weights. To the best of our knowledge, these are the first known subquadratic-time approximation algorithms for computing the girth of weighted graphs.

References

[1]
D. Aingworth, C. Chekuri, P. Indyk, and R. Motwani, Fast estimation of diameter and shortest paths (without matrix multiplication), SIAM J. Comput., 28 (1999), pp. 1167--1181.
[2]
S. Baswana and S. Sen, Approximate distance oracles for unweighted graphs in expected $O (n^2)$ time, ACM Trans. Algorithms, 2 (2006), pp. 557--577.
[3]
J. A. Bondy and U. S. R. Murty, Graph theory, Grad. Texts in Math., Springer, New York, 2008.
[4]
W. Brown, On graphs that do not contain a Thomsen graph, Canad. Math. Bull., 9 (1966), pp. 1--2.
[5]
S. Chechik, Approximate distance oracles with constant query time, in 46th Symposium on Theory of Computing (STOC 2014), ACM, New York, 2014, pp. 654--663.
[6]
S. Chechik, D. H. Larkin, L. Roditty, G. Schoenebeck, R. E. Tarjan, and V. Vassilevska Williams, Better approximation algorithms for the graph diameter, in 25th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA 2014), SIAM, Philadelphia, 2014, pp. 1041--1052.
[7]
S. Chechik, Y. Liu, O. Rotem, and A. Sidford, Constant girth approximation for directed graphs in subquadratic time, in 52nd Symposium on Theory of Computing (STOC 2020), ACM, New York, 2020, pp. 1010--1023.
[8]
S. Dahlgaard, M. Knudsen, and M. Stöckel, New Subquadratic Approximation Algorithms for the Girth, preprint, https://arxiv.org/abs/1704.02178 (2017).
[9]
G. Ducoffe, Faster approximation algorithms for computing shortest cycles on weighted graphs, in 46th International Colloquium on Automata, Languages, and Programming (ICALP 2019), LIPIcs Leibniz Int. Proc. Inform. 132, Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik, Wadern, Germany, 2019, 49.
[10]
A. Itai and M. Rodeh, Finding a minimum circuit in a graph, SIAM J. Comput., 7 (1978), pp. 413--423.
[11]
A. Lingas and E. Lundell, Efficient approximation algorithms for shortest cycles in undirected graphs, Inform. Process. Lett., 109 (2009), pp. 493--498.
[12]
J. Pachocki, L. Roditty, A. Sidford, R. Tov, and V. Vassilevska Williams, Approximating cycles in directed graphs: Fast algorithms for girth and roundtrip spanners, in 29th ACM-SIAM Symposium on Discrete Algorithms (SODA 2018), SIAM, Philadelphia, 2018, pp. 1374--1392.
[13]
M. Pǎtraşcu and L. Roditty, Distance oracles beyond the Thorup--Zwick bound, SIAM J. Comput., 43 (2014), pp. 300--311.
[14]
S. Robinson, Toward an optimal algorithm for matrix multiplication, SIAM News, 38 (2005).
[15]
L. Roditty, M. Thorup, and U. Zwick, Deterministic constructions of approximate distance oracles and spanners, in 32nd International Colloquium on Automata, Languages, and Programming (ICALP 2005), Springer, Berlin, 2005, pp. 261--272.
[16]
L. Roditty and R. Tov, Approximating the girth, ACM Trans. Algorithms, 9 (2013), 15.
[17]
L. Roditty and V. Vassilevska Williams, Minimum weight cycles and triangles: Equivalences and algorithms, in 52nd Annual IEEE Symposium on Foundations of Computer Science (FOCS 2011), IEEE, Piscataway, NJ, 2011, pp. 180--189.
[18]
L. Roditty and V. Vassilevska Williams, Subquadratic time approximation algorithms for the girth, in 23rd ACM-SIAM Symposium on Discrete Algorithms (SODA 2012), SIAM, Philadelphia, 2012, pp. 833--845.
[19]
M. Thorup and U. Zwick, Approximate distance oracles, J. ACM (JACM), 52 (2005), pp. 1--24.
[20]
V. Vassilevska Williams and R. Williams, Subcubic equivalences between path, matrix, and triangle problems, J. ACM, 65 (2018), pp. 1--38.
[21]
C. Wulff-Nilsen, Approximate distance oracles with improved preprocessing time, in 23rd ACM-SIAM Symposium on Discrete Algorithms (SODA 2012), SIAM, Philadelphia, 2012, pp. 202--208.
[22]
R. Yuster and U. Zwick, Finding even cycles even faster, SIAM J. Discrete Math., 10 (1997), pp. 209--222.

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image SIAM Journal on Discrete Mathematics
SIAM Journal on Discrete Mathematics  Volume 35, Issue 2
DOI:10.1137/sjdmec.35.2
Issue’s Table of Contents

Publisher

Society for Industrial and Applied Mathematics

United States

Publication History

Published: 01 January 2021

Author Tags

  1. girth
  2. weighted graphs
  3. approximation algorithms

Author Tags

  1. 05C85
  2. 68Q25
  3. 68W25
  4. 68R10

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 01 Jan 2025

Other Metrics

Citations

Cited By

View all

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media