Skip to main content
QUICK REVIEW

[Paper Review] A simpler sublinear algorithm for approximating the triangle count

C. Seshadhri|arXiv (Cornell University)|May 8, 2015
Complexity and Algorithms in GraphsComputer Science36 references14 citations
TL;DR

This paper presents a simpler sublinear algorithm for approximating the number of triangles in an undirected graph using degree, neighbor, and edge queries. It achieves a $(1+\varepsilon)$-approximation in expected time $O(\text{poly}(\varepsilon^{-1}\log n)(n/t^{1/3} + m^{3/2}/t))$, matching the state-of-the-art runtime of Eden, Levi, and Ron (2015) but with a significantly simpler analysis and algorithmic structure.

ABSTRACT

A recent result of Eden, Levi, and Ron (ECCC 2015) provides a sublinear time algorithm to estimate the number of triangles in a graph. Given an undirected graph $G$, one can query the degree of a vertex, the existence of an edge between vertices, and the $i$th neighbor of a vertex. Suppose the graph has $n$ vertices, $m$ edges, and $t$ triangles. In this model, Eden et al provided a $O(\poly(\eps^{-1}\log n)(n/t^{1/3} + m^{3/2}/t))$ time algorithm to get a $(1+\eps)$-multiplicative approximation for $t$, the triangle count. This paper provides a simpler algorithm with the same running time (up to differences in the $\poly(\eps^{-1}\log n)$ factor) that has a substantially simpler analysis.

Motivation & Objective

  • To simplify the sublinear algorithm for triangle counting previously proposed by Eden, Levi, and Ron (2015), which required complex vertex bucketing and concentration bounds.
  • To achieve the same asymptotic runtime complexity while reducing algorithmic and analytical complexity.
  • To provide a more intuitive and accessible approach to sublinear triangle counting by leveraging sampling from the Chiba-Nishizeki triangle counting framework.
  • To maintain a $(1+\varepsilon)$-multiplicative approximation guarantee with high probability using a streamlined sampling and estimation strategy.
  • To demonstrate that a simpler algorithmic design can match the performance of more intricate prior methods, enhancing clarity without sacrificing efficiency.

Proposed method

  • Adopt a sampling-based approach inspired by the Chiba-Nishizeki algorithm, which enumerates edges and counts common neighbors to find triangles.
  • Sample edges uniformly at random and, for each sampled edge $e = (u,v)$, pick a random neighbor $w$ of the lower-degree endpoint $u$ to test if $\{u,v,w\}$ forms a triangle.
  • Define a random variable $X$ that takes value $d_u$ if the three vertices form a triangle, and 0 otherwise; the expectation of $X$ is $3t/m$, enabling estimation of $t$ via averaging.
  • Use variance-aware sampling: for edges with high variance in the triangle indicator, increase the number of samples to ensure concentration.
  • Estimate the total number of edges $m$ first using a geometric search over guesses, leveraging a novel estimator for average degree with a tail bound argument.
  • Combine multiple independent estimates and take the minimum to boost confidence, using a median-of-minima strategy to ensure high-probability accuracy.

Experimental results

Research questions

  • RQ1Can a simpler algorithm achieve the same sublinear runtime as Eden, Levi, and Ron (2015) for triangle counting in the query model?
  • RQ2Is it possible to simplify the complex vertex bucketing and type-based concentration analysis used in prior work while preserving the same asymptotic performance?
  • RQ3Can a sampling-based estimator rooted in the Chiba-Nishizeki framework be adapted to achieve a $(1+\varepsilon)$-approximation with reduced analytical overhead?
  • RQ4How can the average degree be estimated sublinearly with a simpler tail bound argument, avoiding the intricate machinery of Feige (2006) or Goldreich-Ron (2008)?
  • RQ5What is the minimal set of assumptions and algorithmic components needed to achieve a $(1+\varepsilon)$-approximation for triangle counting in sublinear time?

Key findings

  • The proposed algorithm achieves a $(1+\varepsilon)$-multiplicative approximation for the number of triangles $t$ with probability at least $2/3$.
  • The expected running time is $O(\text{poly}(\varepsilon^{-1}\log n)(n/t^{1/3} + m^{3/2}/t))$, matching the best-known runtime of Eden, Levi, and Ron (2015).
  • The algorithm simplifies the analysis by avoiding complex vertex bucketing and type classification, replacing them with a direct sampling strategy on edges and neighbors.
  • A novel estimator for the average degree is constructed using a total order on vertices and neighbor sampling, enabling a geometric search for $m$ with $O(\varepsilon^{-3.5}\log(\varepsilon^{-1}\log n)n/\sqrt{m})$ query complexity.
  • The success probability can be boosted to $1 - \delta$ via repeated sampling and taking the median of minima, with a total query complexity of $O(\text{poly}(\varepsilon^{-1}\log n)\min(m, n/t^{1/3} + m^{3/2}/t))$.
  • The method demonstrates that a clean, sampling-based approach can match the performance of more intricate prior methods, significantly reducing analytical complexity.

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.