theoretical computer science

Enumerating Small Cycles

arXiv:2607.27147

summary

The paper presents algorithms that can list or enumerate all small even cycles (up to length 16) in an n‑vertex graph with near‑quadratic preprocessing time and constant‑delay per output, extending previous results for 4‑ and 6‑cycles.

Abstract

In a seminal result of Yuster and Zwick, they showed that for any fixed , the even cycle can be detected in an -vertex graph in time . For -cycles, a folklore algorithm extends to listing: for any , we can list different -cycles, if such exist, in time. Recently, Jin, Vassilevska-Williams, and Zhou obtained similar bounds for listing -cycles. In this work, we generalize the above to cycles of sizes and ; we show that for all , we can list distinct -cycles in time. In fact, our algorithm gives enumeration with pre-processing time and delay . Additionally, for any fixed , we present an optimal enumeration (and hence also listing) algorithm for all cycles of size at most . More generally, for any fixed and any , we present an algorithm with preprocessing time and delay that enumerates all cycles of sizes in the range .

Topics & keywords

#graph algorithms#cycle enumeration#constant-delay enumeration#even cycles#subquadratic timeC_{2k}enumerationlistingpreprocessing O(n^2)delay O(1)Yuster‑ZwickJin‑Vassilevska‑Williams‑Zhou
Enumerating Small Cycles · wovepaper