English

Fast Approximate Counting of Cycles

Data Structures and Algorithms 2024-10-01 v1

Abstract

We consider the problem of approximate counting of triangles and longer fixed length cycles in directed graphs. For triangles, T\v{e}tek [ICALP'22] gave an algorithm that returns a (1±\eps)(1 \pm \eps)-approximation in O~(nω/tω2)\tilde{O}(n^\omega/t^{\omega-2}) time, where tt is the unknown number of triangles in the given nn node graph and ω<2.372\omega<2.372 is the matrix multiplication exponent. We obtain an improved algorithm whose running time is, within polylogarithmic factors the same as that for multiplying an n×n/tn\times n/t matrix by an n/t×nn/t \times n matrix. We then extend our framework to obtain the first nontrivial (1±\eps)(1 \pm \eps)-approximation algorithms for the number of hh-cycles in a graph, for any constant h3h\geq 3. Our running time is O~(MM(n,n/t1/(h2),n)),the time to multiply n×nt1/(h2) by nt1/(h2)×n matrices.\tilde{O}(\mathsf{MM}(n,n/t^{1/(h-2)},n)), \textrm{the time to multiply } n\times \frac{n}{t^{1/(h-2)}} \textrm{ by } \frac{n}{t^{1/(h-2)}}\times n \textrm{ matrices}. Finally, we show that under popular fine-grained hypotheses, this running time is optimal.

Keywords

Cite

@article{arxiv.2409.19292,
  title  = {Fast Approximate Counting of Cycles},
  author = {Keren Censor-Hillel and Tomer Even and Virginia Vassilevska Williams},
  journal= {arXiv preprint arXiv:2409.19292},
  year   = {2024}
}

Comments

Appeared in proceedings of ICALP 2024

R2 v1 2026-06-28T19:00:26.601Z