一种利用生日悖论的三角形计数空间有效流算法
A space efficient streaming algorithm for triangle counting using the birthday paradox
摘要:
我们设计了一个空间有效的算法,近似的传递性(全局聚类系数)和总三角形计数,只有一个单一的通过一个图形流的边缘。我们的过程是基于经典的概率结果,生日悖论。当传递性是常数,有更多的边缘比楔形(社交网络的共同属性),我们可以证明,我们的算法需要$O(\sqrt{n})$空间($n$是顶点的数量),以提供准确的估计。我们运行一组详细的实验上的各种真正的图形,并证明该算法的内存需求是一个很小的部分的图形。例如,即使对于一个有2亿条边的图,我们的算法也只存储了6万条边来给出准确的结果。作为一种单通道流算法,我们的过程还通过存储极小部分的边来维护图的传递性/三角形数量的实时估计。
英文摘要:
We design a space efficient algorithm that approximates the transitivity (global clustering coefficient) and total triangle count with only a single pass through a graph given as a stream of edges. Our procedure is based on the classic probabilistic result, the birthday paradox. When the transitivity is constant and there are more edges than wedges (common properties for social networks), we can prove that our algorithm requires $O(\sqrt{n})$ space ($n$ is the number of vertices) to provide accurate estimates. We run a detailed set of experiments on a variety of real graphs and demonstrate that the memory requirement of the algorithm is a tiny fraction of the graph. For example, even for a graph with 200 million edges, our algorithm stores just 60,000 edges to give accurate results. Being a single pass streaming algorithm, our procedure also maintains a real-time estimate of the transitivity/number of triangles of a graph, by storing a minuscule fraction of edges.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。