Approximate Triangle Counting via Sampling and Fast Matrix Multiplication
Abstract
There is a trivial time algorithm for approximate triangle counting where is the number of triangles in the graph and the number of vertices. At the same time, one may count triangles exactly using fast matrix multiplication in time . Is it possible to get a negative dependency on the number of triangles while retaining the dependency on ? We answer this question positively by providing an algorithm which runs in time . This is optimal in the sense that as long as the exponent of is independent of , it cannot be improved while retaining the dependency on ; this as follows from the lower bound of Eden and Rosenbaum [APPROX/RANDOM 2018]. Our algorithm improves upon the state of the art when and . We also consider the problem of approximate triangle counting in sparse graphs, parameterizing by the number of edges . The best known algorithm runs in time [Eden et al., SIAM Journal on Computing, 2017]. There is also a well known algorithm for exact triangle counting that runs in time . We again get an algorithm that retains the exponent of while running faster on graphs with larger number of triangles. Specifically, our algorithm runs in time . This is again optimal in the sense that if the exponent of is to be constant, it cannot be improved without worsening the dependency on . This algorithm improves upon the state of the art when and .
Cite
@article{arxiv.2104.08501,
title = {Approximate Triangle Counting via Sampling and Fast Matrix Multiplication},
author = {Jakub Tětek},
journal= {arXiv preprint arXiv:2104.08501},
year = {2021}
}
Comments
Improved presentation, many minor edits, improved comparison to related work