The triangle counting problem seeks the number of three-cycles in a graph, and has been extensively studied. When the graphs are too large to run classical algorithms on, different access models exist. In the streaming model, the algorithm sees the edges of the graph one at a time, and chooses which edges to keep or discard; the goal is then to approximate the number of triangles with small space and few passes. Many if not all streaming algorithms all share a common downfall: they require an estimate of the number of triangle T in order to run -- a requirement that is inherently circular.
We initiate the study of parameter-free triangle counting: algorithms that know only the length of the stream, and nothing about the number of triangles T. For random-order streams, we describe a family of O(p)-pass algorithms that guarantee a mixed multiplicative and additive approximation of T using \tilde{O}((m+T)/\sqrt{T}) expected space, and a consequent O(log log n)-pass algorithm that gives a multiplicative approximation. We complement this with a lower bound: any single-pass parameter-free algorithm that gives a multiplicative approximation for all values of T must use Θ(m) space, even on streams with relatively many triangles.
This talk is based on joint work with Anna Gilbert, Quanquan C. Liu, and Andrew McGregor.