Using Colors and Sketches to Count Subgraphs in a Streaming Graph
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 .
Cite
@article{arxiv.2302.12210,
title = {Using Colors and Sketches to Count Subgraphs in a Streaming Graph},
author = {Shirin Handjani and Douglas Jungreis and Mark Tiefenbruck},
journal= {arXiv preprint arXiv:2302.12210},
year = {2023}
}