English

Improved girth approximation in weighted undirected graphs

Data Structures and Algorithms 2025-07-21 v1

Abstract

Let G=(V,E,)G = (V,E,\ell) be a nn-node mm-edge weighted undirected graph, where :E(0,)\ell: E \rightarrow (0,\infty) is a real \emph{length} function defined on its edges, and let gg denote the girth of GG, i.e., the length of its shortest cycle. We present an algorithm that, for any input, integer k1k \geq 1, in O(kn1+1/klogn+m(k+logn))O(kn^{1+1/k}\log{n} + m(k+\log{n})) expected time finds a cycle of length at most 4k3g\frac{4k}{3}g. This algorithm nearly matches a O(n1+1/klogn)O(n^{1+1/k}\log{n})-time algorithm of \cite{KadriaRSWZ22} which applied to unweighted graphs of girth 33. For weighted graphs, this result also improves upon the previous state-of-the-art algorithm that in O((n1+1/klogn+m)log(nM))O((n^{1+1/k}\log n+m)\log (nM)) time, where :E[1,M]\ell: E \rightarrow [1, M] is an integral length function, finds a cycle of length at most 2kg2kg~\cite{KadriaRSWZ22}. For k=1k=1 this result improves upon the result of Roditty and Tov~\cite{RodittyT13}.

Keywords

Cite

@article{arxiv.2507.13869,
  title  = {Improved girth approximation in weighted undirected graphs},
  author = {Avi Kadria and Liam Roditty and Aaron Sidford and Virginia Vassilevska Williams and Uri Zwick},
  journal= {arXiv preprint arXiv:2507.13869},
  year   = {2025}
}
R2 v1 2026-07-01T04:07:39.983Z