English

Colorful Triangle Counting and a MapReduce Implementation

Data Structures and Algorithms 2011-04-01 v1 Discrete Mathematics Social and Information Networks

Abstract

In this note we introduce a new randomized algorithm for counting triangles in graphs. We show that under mild conditions, the estimate of our algorithm is strongly concentrated around the true number of triangles. Specifically, if pmax(Δlognt,lognt)p \geq \max{(\frac{\Delta \log{n}}{t}, \frac{\log{n}}{\sqrt{t}})}, where nn, tt, Δ\Delta denote the number of vertices in GG, the number of triangles in GG, the maximum number of triangles an edge of GG is contained, then for any constant ϵ>0\epsilon>0 our unbiased estimate TT is concentrated around its expectation, i.e., \ProbT\MeanTϵ\MeanT=o(1) \Prob{|T - \Mean{T}| \geq \epsilon \Mean{T}} = o(1). Finally, we present a \textsc{MapReduce} implementation of our algorithm.

Keywords

Cite

@article{arxiv.1103.6073,
  title  = {Colorful Triangle Counting and a MapReduce Implementation},
  author = {Rasmus Pagh and Charalampos E. Tsourakakis},
  journal= {arXiv preprint arXiv:1103.6073},
  year   = {2011}
}

Comments

8 pages, 1 figure

R2 v1 2026-06-21T17:47:25.503Z