Fast Approximate Counting of Cycles

Abstract

We consider the problem of approximate counting of triangles and longer fixed length cycles in directed graphs. For triangles, Tetek [ICALP'22] gave an algorithm that returns a (1 )-approximation in O(nω/tω-2) time, where t is the unknown number of triangles in the given n node graph and ω<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/t matrix by an n/t × n matrix. We then extend our framework to obtain the first nontrivial (1 )-approximation algorithms for the number of h-cycles in a graph, for any constant h≥ 3. Our running time is \[O(MM(n,n/t1/(h-2),n)), the time to multiply n× nt1/(h-2) by nt1/(h-2)× n matrices.\] Finally, we show that under popular fine-grained hypotheses, this running time is optimal.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…