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

三角形计数的Input/Output复杂性

The Input/Output Complexity of Triangle Enumeration

Rasmus Pagh, Francesco Silvestri

摘要:

我们考虑一个著名的问题,即枚举无向图的所有三角形。我们的重点是确定这个问题的输入/输出(I/O)的复杂性。令$E$为边数,$M<E$为内部存储器的大小,$B$为块大小。先前获得的最佳结果是排序$(E^{3/2})$ I/O(Dementiev,博士论文2006)和$O(E^2/(MB))$ I/O(Hu等人,SIGMOD 2013),其中排序$(n)$表示用于对$n$项进行排序的I/O数量。我们将I/O复杂度提高到$O(E^{3/2}/(\sqrt{M} B))$预期I/O,这将以前的界限提高了一个因子$\min(\sqrt{E/M},\sqrt{M})$。我们的算法是高速缓存无关的,也是I/O最优的:我们表明,任何算法枚举$t$不同的三角形必须始终使用$Ω(t/(\sqrt{M} B))$ I/O,并有图$t=Ω(E^{3/2})$。最后,我们给出了一个使用$O(E^{3/2}/(\sqrt{M} B))$ I/O的确定性缓存感知算法,假设$M\geq E^\varepsilon$为常数$\varepsilon > 0$。我们的研究结果是基于一种新的颜色编码技术,这可能是独立的利益。

英文摘要:

We consider the well-known problem of enumerating all triangles of an undirected graph. Our focus is on determining the input/output (I/O) complexity of this problem. Let $E$ be the number of edges, $M<E$ the size of internal memory, and $B$ the block size. The best results obtained previously are sort$(E^{3/2})$ I/Os (Dementiev, PhD thesis 2006) and $O(E^2/(MB))$ I/Os (Hu et al., SIGMOD 2013), where sort$(n)$ denotes the number of I/Os for sorting $n$ items. We improve the I/O complexity to $O(E^{3/2}/(\sqrt{M} B))$ expected I/Os, which improves the previous bounds by a factor $\min(\sqrt{E/M},\sqrt{M})$. Our algorithm is cache-oblivious and also I/O optimal: We show that any algorithm enumerating $t$ distinct triangles must always use $Ω(t/(\sqrt{M} B))$ I/Os, and there are graphs for which $t=Ω(E^{3/2})$. Finally, we give a deterministic cache-aware algorithm using $O(E^{3/2}/(\sqrt{M} B))$ I/Os assuming $M\geq E^\varepsilon$ for a constant $\varepsilon > 0$. Our results are based on a new color coding technique, which may be of independent interest.

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

↑