English

An Optimal Algorithm for Triangle Counting in the Stream

Data Structures and Algorithms 2021-07-16 v2

Abstract

We present a new algorithm for approximating the number of triangles in a graph GG whose edges arrive as an arbitrary order stream. If mm is the number of edges in GG, TT the number of triangles, ΔE\Delta_E the maximum number of triangles which share a single edge, and ΔV\Delta_V the maximum number of triangles which share a single vertex, then our algorithm requires space: O~(mT(ΔE+ΔV)) \widetilde{O}\left(\frac{m}{T}\cdot \left(\Delta_E + \sqrt{\Delta_V}\right)\right) Taken with the Ω(mΔET)\Omega\left(\frac{m \Delta_E}{T}\right) lower bound of Braverman, Ostrovsky, and Vilenchik (ICALP 2013), and the Ω(mΔVT)\Omega\left( \frac{m \sqrt{\Delta_V}}{T}\right) lower bound of Kallaugher and Price (SODA 2017), our algorithm is optimal up to log factors, resolving the complexity of a classic problem in graph streaming.

Keywords

Cite

@article{arxiv.2105.01785,
  title  = {An Optimal Algorithm for Triangle Counting in the Stream},
  author = {Rajesh Jayaram and John Kallaugher},
  journal= {arXiv preprint arXiv:2105.01785},
  year   = {2021}
}

Comments

Title changed and some minor edits

R2 v1 2026-06-24T01:47:07.710Z