Fast All-Pairs Shortest Paths Algorithm in Large Sparse Graph

被引:3
作者
Yang, Shaofeng [1 ,2 ]
Liu, Xiandong [1 ,2 ]
Wang, Yunting [1 ]
He, Xin [1 ]
Tan, Guangming [1 ,2 ]
机构
[1] Chinese Acad Sci, Inst Comp Technol, State Key Lab Proc, Beijing, Peoples R China
[2] Univ Chinese Acad Sci, Beijing, Peoples R China
来源
PROCEEDINGS OF THE 37TH INTERNATIONAL CONFERENCE ON SUPERCOMPUTING, ACM ICS 2023 | 2023年
基金
中国国家自然科学基金;
关键词
All-pairs shortest paths; High-Performance Computing; Distributed graph Algorithm;
D O I
10.1145/3577193.3593728
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Finding the All-Pairs Shortest Paths (APSP) in a graph is the key for various domains. Motivated by the graphs are sparse in most real-world applications, we store the whole graph as a compressed storage format in each process of the distributed computing clusters and combine the Floyd algorithm with the Dijkstra algorithm to solve the APSP problem in this work, which leads to the novel Fast APSP algorithm. In contrast to the state-of-the-art Part APSP algorithm, our algorithm adds some memory overhead to store the original sparse graph and uses local Floyd and global Dijkstra algorithms simultaneously. The payoff is the circumvention of expensive global communication, reducing one local FW operation, simplifying the Minplus function, and making its data access continuous. Furthermore, we propose a parallel framework to solve the problem of mismatch between the number of GPUs and the number of divisible blocks of a graph. The Fast APSP algorithm exhibits an average speedup of 16.97x compared to the CPU Dijkstra algorithm, 7.09x compared to the GPU Dijkstra algorithm, 7.09x compared to the Part APSP algorithm, and 4.6x compared to the decentralized Part APSP algorithm. It also shows good scalability in our experiments. It takes about 12.45 minutes to solve the APSP problem for the graph with 11,548,845 vertices by engaging 2048 GPUs.
引用
收藏
页码:277 / 288
页数:12
相关论文
共 30 条
[1]  
[Anonymous], 2016, ACM SIGKDD Explorations Newsletter
[2]   Shortest-path kernels on graphs [J].
Borgwardt, KM ;
Kriegel, HP .
Fifth IEEE International Conference on Data Mining, Proceedings, 2005, :74-81
[3]  
Chien Lung-Sheng., 2010, Technical Report
[4]   Work-Efficient Parallel GPU Methods for Single-Source Shortest Paths [J].
Davidson, Andrew ;
Baxter, Sean ;
Garland, Michael ;
Owens, John D. .
2014 IEEE 28TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, 2014,
[5]   The University of Florida Sparse Matrix Collection [J].
Davis, Timothy A. ;
Hu, Yifan .
ACM TRANSACTIONS ON MATHEMATICAL SOFTWARE, 2011, 38 (01)
[6]  
Dijkstra EW., 1959, Numerische Mathematik, V1, P269, DOI [DOI 10.1007/BF01386390, 10.1007/BF01386390]
[7]   All-Pairs Shortest Path algorithms for planar graph for GPU-accelerated clusters [J].
Djidjev, Hristo ;
Chapuis, Guillaume ;
Andonov, Rumen ;
Thulasidasan, Sunil ;
Lavenier, Dominique .
JOURNAL OF PARALLEL AND DISTRIBUTED COMPUTING, 2015, 85 :91-103
[8]   Efficient Multi-GPU Computation of All-Pairs Shortest Paths; [J].
Djidjev, Hristo ;
Thulasidasan, Sunil ;
Chapuis, Guillaume ;
Andonov, Rumen ;
Lavenier, Dominique .
2014 IEEE 28TH INTERNATIONAL PARALLEL AND DISTRIBUTED PROCESSING SYMPOSIUM, 2014,
[9]  
FREDERICKSON GN, 1987, SIAM J COMPUT, V16, P1004, DOI 10.1137/0216064
[10]  
Harish P, 2007, LECT NOTES COMPUT SC, V4873, P197