arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1304.6393cs.DS
收藏

近似三角形计数的有效算法

Efficient Algorithms for Approximate Triangle Counting

Mostafa Haghir Chehreghani

摘要:

计算图中三角形的数量在网络分析中有许多重要的应用。几个经常计算的指标,如聚类系数和传递率,需要计算网络中三角形的数量。此外,三角形是网络挖掘中考虑的最重要的图类之一。本文提出了一种新的近似三角形计数的随机算法。该算法可以采用不同的采样方法,并给出了有效的三角形计数方法。特别地,我们提出了两种采样方法,称为\textit{$q$-optimal sampling}和\textit{edge sampling},分别给出了具有良好误差界的$O(sm)$和$O(sn)$时间算法($m$和$n$分别是图中的边和顶点的数目,$s$是样本的数目)。除其他外,我们表明,例如,如果一个上限$\widetilde{Δ^e}$是已知的三角形入射到每个边缘的数量,所提出的方法提供了一个$1\pm ε$近似运行在$O( \frac{\widetilde{Δ^e} n \log n}{\widehat{Δ^e} ε^2} )$时间,其中$\widehat{Δ^e}$是三角形入射到一个边缘的平均数。最后,我们表明,该算法可以采用流。然后,例如,它将在数据上执行2遍(如果图的大小已知,则需要3遍),并将使用$O(sn)$空间。

英文摘要:

Counting the number of triangles in a graph has many important applications in network analysis. Several frequently computed metrics like the clustering coefficient and the transitivity ratio need to count the number of triangles in the network. Furthermore, triangles are one of the most important graph classes considered in network mining. In this paper, we present a new randomized algorithm for approximate triangle counting. The algorithm can be adopted with different sampling methods and give effective triangle counting methods. In particular, we present two sampling methods, called the \textit{$q$-optimal sampling} and the \textit{edge sampling}, which respectively give $O(sm)$ and $O(sn)$ time algorithms with nice error bounds ($m$ and $n$ are respectively the number of edges and vertices in the graph and $s$ is the number of samples). Among others, we show, for example, that if an upper bound $\widetilde{Δ^e}$ is known for the number of triangles incident to every edge, the proposed method provides an $1\pm ε$ approximation which runs in $O( \frac{\widetilde{Δ^e} n \log n}{\widehat{Δ^e} ε^2} )$ time, where $\widehat{Δ^e}$ is the average number of triangles incident to an edge. Finally we show that the algorithm can be adopted with streams. Then it, for example, will perform 2 passes over the data (if the size of the graph is known, otherwise it needs 3 passes) and will use $O(sn)$ space.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑