A Supernodal All-Pairs Shortest Path Algorithm

被引:14
|
作者
Sao, Piyush [1 ]
Kannan, Ramakrishnan [1 ]
Gera, Prasun [2 ]
Vuduc, Richard [2 ]
机构
[1] Oak Ridge Natl Lab, Oak Ridge, TN 37830 USA
[2] Georgia Inst Technol, Atlanta, GA 30332 USA
基金
美国国家科学基金会;
关键词
graph algorithm; sparse matrix computations; shared-memory parallelism; communication-avoiding algorithms; PARALLEL ALGORITHMS; PLANAR GRAPHS; COMMUNICATION;
D O I
10.1145/3332466.3374533
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We show how to exploit graphs parsity in the Floyd-Warshall algorithm for the all-pairs shortest path (Apsp) problem. FLOYD-WARSHALL is an attractive choice for Apsp on high-performing systems due to its structural similarity to solving dense linear systems and matrix multiplication. However, if sparsity of the input graph is not properly exploited, Floyd-Warshall will perform unnecessary asymptotic work and thus may not be a suitable choice for many input graphs. To overcome this limitation, the key idea in our approach is to use the known algebraic relationship between Floyd-Warshall and Gaussian elimination, and import several algorithmic techniques from sparse Cholesky factorization, namely, fill-in reducing ordering, symbolic analysis, supernodal traversal, and elimination tree parallelism. When combined, these techniques reduce computation, improve locality and enhance parallelism. We implement these ideas in an efficient shared memory parallel prototype that is orders of magnitude faster than an efficient multi-threaded baseline Floyd-Warshall that does not exploit sparsity. Our experiments suggest that the Floyd-Warshall algorithm can compete with Dijkstra's algorithm (the algorithmic core of Johnson's algorithm) for several classes sparse graphs.
引用
收藏
页码:250 / 261
页数:12
相关论文
共 50 条
  • [1] An all-pairs shortest path algorithm for bipartite graphs
    Torgasin, Svetlana
    Zimmermann, Karl-Heinz
    [J]. OPEN COMPUTER SCIENCE, 2013, 3 (04) : 149 - 157
  • [2] On the all-pairs shortest-path algorithm of Moffat and Takaoka
    Mehlhorn, K
    Priebe, V
    [J]. RANDOM STRUCTURES & ALGORITHMS, 1997, 10 (1-2) : 205 - 220
  • [3] A faster algorithm for the all-pairs shortest path problem and its application
    Takaoka, T
    [J]. COMPUTING AND COMBINATORICS, PROCEEDINGS, 2004, 3106 : 278 - 289
  • [4] NOTE ON SPIRAS ALGORITHM FOR ALL-PAIRS SHORTEST-PATH PROBLEM
    CARSON, JS
    LAW, AM
    [J]. SIAM JOURNAL ON COMPUTING, 1977, 6 (04) : 696 - 699
  • [5] Solving all-pairs shortest path problem based on amoeba algorithm
    [J]. 2013, ICIC Express Letters Office, Tokai University, Kumamoto Campus, 9-1-1, Toroku, Kumamoto, 862-8652, Japan (07):
  • [6] External matrix multiplication and all-pairs shortest path
    Sibeyn, JF
    [J]. INFORMATION PROCESSING LETTERS, 2004, 91 (02) : 99 - 106
  • [7] Parallel All-Pairs Shortest Path Algorithm: Network-Decomposition Approach
    Abdelghany, Khaled
    Hashemi, Hossein
    Alnawaiseh, Ala
    [J]. TRANSPORTATION RESEARCH RECORD, 2016, (2567) : 95 - 104
  • [8] A blocked all-pairs shortest-paths algorithm
    Venkataraman, G
    Sahni, S
    Mukhopadhyaya, S
    [J]. ALGORITHM THEORY - SWAT 2000, 2000, 1851 : 419 - 432
  • [9] A faster all-pairs shortest path algorithm for real-weighted sparse graphs
    Pettie, S
    [J]. AUTOMATA, LANGUAGES AND PROGRAMMING, 2002, 2380 : 85 - 97
  • [10] A scalable parallelization of all-pairs shortest path algorithm for a high performance cluster environment
    Srinivasan, T.
    Balakrishnan, R.
    Gangadharan, S. A.
    Hayawardh, V
    [J]. 2007 INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED SYSTEMS, VOLS 1 AND 2, 2007, : 403 - 410