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

DAWN:面向无权图最短路径问题的矩阵运算优化算法

DAWN: Matrix Operation-Optimized Algorithm for Shortest Paths Problem on Unweighted Graphs

Yelai Feng, Huaixi Wang, Yining Zhu, Xiandong Liu, Hongyi Lu, Qing Liu

AI总结:

提出矩阵运算优化算法 DAWN,以更低复杂度和内存消耗解决无权图单源与全点对最短路径问题,并在 SuiteSparse 与 Gunrock 图上显著超越 Gunrock 和 GAP 的 BFS。

摘要:

最短路径问题是图论中的一项基础性挑战,具有广泛的潜在应用。基于矩阵乘法的算法展现出优异的并行性和可扩展性,但受到高内存消耗和算法复杂度的限制。BFS和Dijkstra算法等传统最短路径算法则受限于优先队列,因此提升其并行性成为一个焦点问题。我们提出一种矩阵运算优化算法,能够提供更高的并行性、更低的时间复杂度和更少的内存消耗。该新颖算法在单源最短路径问题和全点对最短路径问题上分别需要 $O(E_{wcc}(i))$ 和 $O(S_{wcc} \cdot E_{wcc})$ 时间,其中 $S_{wcc}$ 和 $E_{wcc}$ 表示图中最大弱连通分量所包含的节点数和边数。为评估该新颖算法的有效性,我们使用来自 SuiteSparse Matrix Collection 和 Gunrock 基准数据集的图对其进行了测试。我们的算法优于 Gunrock 和 GAP(此前最先进的解决方案)中的 BFS 实现,分别取得了 3.769$\times$ 和 9.410$\times$ 的平均加速比。

英文摘要:

The shortest paths problem is a fundamental challenge in graph theory, with a broad range of potential applications. The algorithms based on matrix multiplication exhibits excellent parallelism and scalability, but is constrained by high memory consumption and algorithmic complexity. Traditional shortest paths algorithms are limited by priority queues, such as BFS and Dijkstra algorithm, making the improvement of their parallelism a focal issue. We propose a matrix operation-optimized algorithm, which offers improved parallelism, reduced time complexity, and lower memory consumption. The novel algorithm requires $O(E_{wcc}(i))$ and $O(S_{wcc} \cdot E_{wcc})$ times for single-source and all-pairs shortest paths problems, respectively, where $S_{wcc}$ and $E_{wcc}$ denote the number of nodes and edges included in the largest weakly connected component in graph. To evaluate the effectiveness of the novel algorithm, we tested it using graphs from SuiteSparse Matrix Collection and Gunrock benchmark dataset. Our algorithm outperformed the BFS implementations from Gunrock and GAP (the previous state-of-the-art solution), achieving an average speedup of 3.769$\times$ and 9.410$\times$, respectively.

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

↑