Skip to main content
QUICK REVIEW

[Paper Review] Fast Approximate Counting of Cycles

Censor-Hillel, Keren, Even, Tomer|arXiv (Cornell University)|Jul 29, 2023
Complexity and Algorithms in GraphsComputer Science2 citations
TL;DR

This paper presents a novel output-sensitive algorithm for listing k-cliques in graphs, achieving the first conditionally optimal runtime for k ≥ 3 under the Exact-k-Clique Hypothesis. By parameterizing runtime using the number of ℓ-cliques (∆ℓ) for ℓ < k, the method achieves Õ(min{m^{1/(k−2)} t^{1−2/(k(k−2))}, n^{2/(k−1)} t^{1−2/(k(k−1))}}) time when ω = 2, generalizing prior work on triangle listing and improving over 19-year-old bounds for 4- and 5-clique detection.

ABSTRACT

We consider the problem of approximate counting of triangles and longer fixed length cycles in directed graphs. For triangles, Tětek [ICALP'22] gave an algorithm that returns a (1±ε)-approximation in Õ(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 Õ(MM(n,n/t^{1/(h-2)},n)), the time to multiply n × n/(t^{1/(h-2)}) by n/(t^{1/(h-2)) × n matrices. Finally, we show that under popular fine-grained hypotheses, this running time is optimal.

Motivation & Objective

  • To develop an output-sensitive algorithm for listing k-cliques in graphs that scales efficiently with the number of k-cliques in the output.
  • To generalize existing clique-listing frameworks beyond dependence on n and m by incorporating counts of smaller cliques (∆ℓ) as parameters.
  • To achieve conditionally optimal runtime for k-clique listing under the Exact-k-Clique Hypothesis for all constant k ≥ 3.
  • To improve upon the 19-year-old runtime bounds for 4- and 5-clique detection by leveraging modern matrix multiplication bounds.

Proposed method

  • Introduces a general framework for k-clique listing that uses counts of ℓ-cliques (∆ℓ) for 1 ≤ ℓ < k as parameters, enabling finer-grained runtime analysis.
  • Employs a recursive decomposition strategy that partitions vertices based on their degree in dense subgraphs, focusing on light and dense edges and cliques.
  • Utilizes fast matrix multiplication (MM) in subroutines for detecting (k, ℓ)-cliques, particularly in the (4,2)- and (5,1)-Clique-Listing subroutines.
  • Applies H"older's inequality and combinatorial bounds to control the sum of degrees and clique counts across recursive levels.
  • Designs two alternative algorithms for 6-clique listing (Algorithm I and II) that optimize for different ranges of t, the number of output cliques.
  • Reduces the problem to smaller clique-listing subproblems (e.g., (4,2)-Clique-Listing instead of (2,1)-Clique-Listing) to exploit matrix multiplication efficiency.

Experimental results

Research questions

  • RQ1Can we design an output-sensitive k-clique listing algorithm that achieves conditionally optimal runtime for all k ≥ 3, extending the known optimal result for triangles?
  • RQ2How can we parameterize the runtime of k-clique listing not just by n and m, but by the number of smaller cliques ∆ℓ for ℓ < k?
  • RQ3Is it possible to improve the 19-year-old runtime bounds for 4- and 5-clique detection using modern matrix multiplication techniques?
  • RQ4What is the tightest possible runtime for k-clique listing under standard fine-grained complexity assumptions like the Exact-k-Clique Hypothesis?
  • RQ5Can recursive decomposition based on clique density and degree thresholds lead to optimal, adaptive algorithms across different output sizes t?

Key findings

  • The proposed algorithm achieves Õ(min{m^{1/(k−2)} t^{1−2/(k(k−2))}, n^{2/(k−1)} t^{1−2/(k(k−1))}}) runtime for k-clique listing when ω = 2 and t is sufficiently large, which is conditionally optimal under the Exact-k-Clique Hypothesis.
  • For 4-clique and 5-clique detection, the framework achieves O(m^{1.66}) and O(m^{2.06}) time, respectively, under current matrix multiplication bounds, improving over the previous O(m^{2}) and O(m^{2.2}) bounds from Eisenbrand and Grandoni (2004).
  • The algorithm's runtime is expressed as Õ(∆^{2ℓ(k−ℓ)/ℓ}_ℓ · ∆^{1−2/(k(k−ℓ))}_k) for any ℓ < k, which is optimal under the Exact-k-Clique Hypothesis for all ℓ in [1, k−1].
  • Two distinct algorithms for (6,1)-Clique-Listing are presented: one achieving Õ(n^4 + n^{5/2}t^{1/2} + n^{2/5}t^{14/15}) and another Õ(n^4 + n^{15/7}t^{4/7} + n^{37/21}t^{2/3} + n^{29/25}t^{4/5} + n^{9/10}t^{17/20}), both optimal in different regimes of t.
  • The framework generalizes prior work by Bj"orklund et al. (2014) on triangle listing, extending their Õ(n^2 + nt^{2/3}) result to k ≥ 3.
  • The use of (4,2)-Clique-Listing instead of (2,1)-Clique-Listing in recursive steps leads to better performance by leveraging matrix multiplication, demonstrating the advantage of higher-level clique decomposition.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.