基于弧一致性的高效并行图裁剪
Efficient Parallel Graph Trimming by Arc-Consistency
摘要:
给定一个大的数据图,修剪技术可以通过去除顶点而不去除边来减少搜索空间。一个应用是加速图到强连接组件的并行分解(SCC分解),这是分析图的基本步骤。我们观察到,图修剪本质上是一种弧一致性问题,AC-3,AC-4和AC-6是最相关的弧一致性算法应用于图修剪。现有的并行图裁剪方法需要最坏情况下的$\mathcal O(nm)$时间和最坏情况下的$\mathcal O(n)$空间为图的$n$顶点和$m$边。我们称之为基于AC-3的并行算法,因为它们很像AC-3算法。在这项工作中,我们提出了基于AC-4和AC-6的修剪方法。也就是说,基于AC-4的修整具有改进的最坏情况时间$\mathcal O(n+m)$,但需要$\mathcal O(n+m)$的最坏情况空间;与基于AC-4的修整相比,基于AC-6的修整具有相同的最坏情况时间$\mathcal O(n+m)$,但具有改进的最坏情况空间$\mathcal O(n)$。我们并行AC-4为基础的和AC-6为基础的算法,以适合共享内存的多核机器。该算法的设计,以最大限度地减少同步开销。对于这些算法,我们也证明了正确性,并分析了时间复杂度与工作深度模型。在实验中,我们比较了这三个并行修剪算法在各种真实和合成图。具体地,对于通过使用16个工作器每个工作器遍历的最大边数,基于AC-3的遍历分别比基于AC-6的修剪和基于AC-4的修剪多58.3倍和36.5倍。
英文摘要:
Given a large data graph, trimming techniques can reduce the search space by removing vertices without outgoing edges. One application is to speed up the parallel decomposition of graphs into strongly connected components (SCC decomposition), which is a fundamental step for analyzing graphs. We observe that graph trimming is essentially a kind of arc-consistency problem, and AC-3, AC-4, and AC-6 are the most relevant arc-consistency algorithms for application to graph trimming. The existing parallel graph trimming methods require worst-case $\mathcal O(nm)$ time and worst-case $\mathcal O(n)$ space for graphs with $n$ vertices and $m$ edges. We call these parallel AC-3-based as they are much like the AC-3 algorithm. In this work, we propose AC-4-based and AC-6-based trimming methods. That is, AC-4-based trimming has an improved worst-case time of $\mathcal O(n+m)$ but requires worst-case space of $\mathcal O(n+m)$; compared with AC-4-based trimming, AC-6-based has the same worst-case time of $\mathcal O(n+m)$ but an improved worst-case space of $\mathcal O(n)$. We parallelize the AC-4-based and AC-6-based algorithms to be suitable for shared-memory multi-core machines. The algorithms are designed to minimize synchronization overhead. For these algorithms, we also prove the correctness and analyze time complexities with the work-depth model. In experiments, we compare these three parallel trimming algorithms over a variety of real and synthetic graphs. Specifically, for the maximum number of traversed edges per worker by using 16 workers, AC-3-based traverses up to 58.3 and 36.5 times more edges than AC-6-based trimming and AC-4-based trimming, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。