English

A Note on the Conditional Optimality of Chiba and Nishizeki's Algorithms

Data Structures and Algorithms 2024-07-12 v1

Abstract

In a seminal work, Chiba and Nishizeki [SIAM J. Comput. `85] developed subgraph listing algorithms for triangles, 4-cycle and kk-cliques, where k3.k \geq 3. The runtimes of their algorithms are parameterized by the number of edges mm and the arboricity α\alpha of a graph. The arboricity α\alpha of a graph is the minimum number of spanning forests required to cover it. Their work introduces: * A triangle listing algorithm that runs in O(mα)O(m\alpha) time. * An output-sensitive 4-Cycle-Listing algorithm that lists all 4-cycles in O(mα+t)O(m\alpha + t) time, where tt is the number of 4-cycles in the graph. * A k-Clique-Listing algorithm that runs in O(mαk2)O(m\alpha^{k-2}) time, for k4.k \geq 4. Despite the widespread use of these algorithms in practice, no improvements have been made over them in the past few decades. Therefore, recent work has gone into studying lower bounds for subgraph listing problems. The works of Kopelowitz, Pettie and Porat [SODA `16] and Vassilevska W. and Xu [FOCS `20] showed that the triangle-listing algorithm of Chiba and Nishizeki is optimal under the 3SUM\mathsf{3SUM} and APSP\mathsf{APSP} hypotheses respectively. However, it remained open whether the remaining algorithms were optimal. In this note, we show that in fact all the above algorithms are optimal under popular hardness conjectures. First, we show that the 4-Cycle-Listing\mathsf{4}\text{-}\mathsf{Cycle}\text{-}\mathsf{Listing} algorithm is tight under the 3SUM\mathsf{3SUM} hypothesis following the techniques of Jin and Xu [STOC `23], and Abboud, Bringmann and Fishcher [STOC `23] . Additionally, we show that the k-Clique-Listingk\text{-}\mathsf{Clique}\text{-}\mathsf{Listing} algorithm is essentially tight under the exact kk-clique hypothesis by following the techniques of Dalirooyfard, Mathialagan, Vassilevska W. and Xu [STOC `24]. These hardness results hold even when the number of 4-cycles or kk-cliques in the graph is small.

Keywords

Cite

@article{arxiv.2407.08562,
  title  = {A Note on the Conditional Optimality of Chiba and Nishizeki's Algorithms},
  author = {Yael Kirkpatrick and Surya Mathialagan},
  journal= {arXiv preprint arXiv:2407.08562},
  year   = {2024}
}
R2 v1 2026-06-28T17:37:28.774Z