Table of Contents
Fetching ...

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

Yael Kirkpatrick, Surya Mathialagan

TL;DR

This work establishes conditional lower bounds that match the classic Chiba–Nishizeki subgraph listing algorithms. By reductions from the $3SUM$ and Exact-$k$-Clique hypotheses, it shows that 4-cycle listing is tight when arboricity is below a threshold, and that $k$-clique listing is essentially optimal for $α=n^{1-δ}$. The results use reductions from All-Edge Sparse Triangle and employ 4-cycle-free constructions, tripartite color-coding, and edge-weight hashing to transfer hardness to the targeted problems. Overall, the paper explains why no polynomial improvements have emerged for these fundamental subgraph listing tasks and delineates the precise boundary where Chiba–Nishizeki’s algorithms remain optimal in a fine-grained complexity sense.

Abstract

In a seminal work, Chiba and Nishizeki [SIAM J. Comput. `85] developed subgraph listing algorithms for triangles, 4-cycle and $k$-cliques, where $k \geq 3.$ The runtimes of their algorithms are parameterized by the number of edges $m$ and the arboricity $α$ of a graph. The arboricity $α$ 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α)$ time. * An output-sensitive 4-Cycle-Listing algorithm that lists all 4-cycles in $O(mα+ t)$ time, where $t$ is the number of 4-cycles in the graph. * A k-Clique-Listing algorithm that runs in $O(mα^{k-2})$ time, for $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 $\mathsf{3SUM}$ and $\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 $\mathsf{4}\text{-}\mathsf{Cycle}\text{-}\mathsf{Listing}$ algorithm is tight under the $\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\text{-}\mathsf{Clique}\text{-}\mathsf{Listing}$ algorithm is essentially tight under the exact $k$-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 $k$-cliques in the graph is small.

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

TL;DR

This work establishes conditional lower bounds that match the classic Chiba–Nishizeki subgraph listing algorithms. By reductions from the and Exact--Clique hypotheses, it shows that 4-cycle listing is tight when arboricity is below a threshold, and that -clique listing is essentially optimal for . The results use reductions from All-Edge Sparse Triangle and employ 4-cycle-free constructions, tripartite color-coding, and edge-weight hashing to transfer hardness to the targeted problems. Overall, the paper explains why no polynomial improvements have emerged for these fundamental subgraph listing tasks and delineates the precise boundary where Chiba–Nishizeki’s algorithms remain optimal in a fine-grained complexity sense.

Abstract

In a seminal work, Chiba and Nishizeki [SIAM J. Comput. `85] developed subgraph listing algorithms for triangles, 4-cycle and -cliques, where The runtimes of their algorithms are parameterized by the number of edges and the arboricity of a graph. The arboricity of a graph is the minimum number of spanning forests required to cover it. Their work introduces: * A triangle listing algorithm that runs in time. * An output-sensitive 4-Cycle-Listing algorithm that lists all 4-cycles in time, where is the number of 4-cycles in the graph. * A k-Clique-Listing algorithm that runs in time, for 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 and 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 algorithm is tight under the hypothesis following the techniques of Jin and Xu [STOC `23], and Abboud, Bringmann and Fishcher [STOC `23] . Additionally, we show that the algorithm is essentially tight under the exact -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 -cliques in the graph is small.
Paper Structure (8 sections, 10 theorems, 7 equations)

This paper contains 8 sections, 10 theorems, 7 equations.

Key Result

Theorem 1.1

Given a graph $G$ with $m$ edges and arboricity $\alpha$, there exists an algorithms that enumerates all triangles in $O(m\alpha)$ time.

Theorems & Definitions (19)

  • Theorem 1.1: Triangle enumeration
  • Theorem 1.2: 4-cycle enumeration
  • Theorem 1.3: $k$-clique enumeration
  • Theorem 1.4
  • Theorem 1.6
  • Definition 2.1
  • Claim 2.2
  • Definition 2.3: $4\text{-}\mathsf{Cycle}\text{-}\mathsf{Listing}$
  • Definition 2.4: $k\text{-}\mathsf{Clique}\text{-}\mathsf{Listing}$
  • Definition 2.5: $\mathsf{3SUM}$
  • ...and 9 more