为什么三角形枚举的简单算法在现实世界中有效?
Why do simple algorithms for triangle enumeration work in the real world?
摘要:
列出所有三角形是一个基本的图形操作。三角形在现实世界的图形中可以有重要的解释,特别是社交及其他交互网络。尽管缺乏可证明有效的(线性或稍微超线性的)最坏情况算法来解决这个问题,但从业者可以运行简单,有效的算法来找到具有数百万个顶点的图中的所有三角形。这些算法如何利用这些特殊图的结构来提供运行时间的主要加速?我们研究从业者使用的最流行的算法之一。一个简单的算法枚举长度为$2$的所有路径,并检查每条路径是否与三角形关联。一个好的启发式方法是只枚举长度为$2$的路径,其中中间顶点的度最低。它很容易实现,并且经验上已知它比普通算法有显著的加速比。我们研究了该算法在具有重尾度分布的图上的行为,重尾度分布是现实世界图的一个定义特征。擦除配置模型(ECM)有效地生成一个图与渐近(几乎)任何所需的程度序列。我们表明,该算法的预期运行时间超过由ECM创建的图的分布是由度序列的$\ell_{4/3}$ -范数控制。度序列的范数是衡量尾部重量的一个指标,正是这个特征允许简单三角枚举算法的非平凡加速。作为我们主要定理的推论,我们证明了遵循指数为$α\geq 7/3$的幂律的度序列的预期线性时间性能,以及每当$α\in (2,3)$时的非平凡加速。
英文摘要:
Listing all triangles is a fundamental graph operation. Triangles can have important interpretations in real-world graphs, especially social and other interaction networks. Despite the lack of provably efficient (linear, or slightly super-linear) worst-case algorithms for this problem, practitioners run simple, efficient heuristics to find all triangles in graphs with millions of vertices. How are these heuristics exploiting the structure of these special graphs to provide major speedups in running time? We study one of the most prevalent algorithms used by practitioners. A trivial algorithm enumerates all paths of length $2$, and checks if each such path is incident to a triangle. A good heuristic is to enumerate only those paths of length $2$ where the middle vertex has the lowest degree. It is easily implemented and is empirically known to give remarkable speedups over the trivial algorithm. We study the behavior of this algorithm over graphs with heavy-tailed degree distributions, a defining feature of real-world graphs. The erased configuration model (ECM) efficiently generates a graph with asymptotically (almost) any desired degree sequence. We show that the expected running time of this algorithm over the distribution of graphs created by the ECM is controlled by the $\ell_{4/3}$-norm of the degree sequence. Norms of the degree sequence are a measure of the heaviness of the tail, and it is precisely this feature that allows non-trivial speedups of simple triangle enumeration algorithms. As a corollary of our main theorem, we prove expected linear-time performance for degree sequences following a power law with exponent $α\geq 7/3$, and non-trivial speedup whenever $α\in (2,3)$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。