Using Colors and Sketches to Count Subgraphs in a Streaming Graph
arXiv:2302.12210
Abstract
Suppose we wish to estimate , the number of copies of some small graph in a large streaming graph . There are many algorithms for this task when is a triangle, but just a few that apply to arbitrary . Here we focus on one such algorithm, which was introduced by Kane, Mehlhorn, Sauerwald, and Sun. The storage and update time per edge for their algorithm are both , where is the number of edges in , and is the number of edges in . Here, we propose three modifications to their algorithm that can dramatically reduce both the storage and update time. Suppose that has no leaves and that has maximum degree , where . Define . Then in our version of the algorithm, the update time per edge is , and the storage is approximately reduced by a factor of , where is the number of vertices in ; in particular, the storage is .