R-Kleene: A high-performance divide-and-conquer algorithm for the all-pair shortest path for densely connected networks

被引:30
作者
D'Alberto, Paolo [1 ]
Nicolau, Alexandru [1 ]
机构
[1] Carnegie Mellon Univ, Dept Elect & Comp Sci, Pittsburgh, PA 15213 USA
基金
美国国家科学基金会;
关键词
algorithm engineering; performance evaluation; optimizations;
D O I
10.1007/s00453-006-1224-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We propose a novel divide-and-conquer algorithm for the solution of the all-pair shortest-path problem for directed and dense graphs with no negative cycles. We propose R-Kleene, a compact and in-place recursive algorithm inspired by Kleene's algorithm. R-Kleene delivers a better performance than previous algorithms for randomly generated graphs represented by highly dense adjacency matrices, in which the matrix components can have any integer value. We show that R-Kleene, unchanged and without any machine tuning, yields consistently between (1)/(7) and (1)/(2) of the peak performance running on five very different uniprocessor systems.
引用
收藏
页码:203 / 213
页数:11
相关论文
共 16 条
[1]  
[Anonymous], 1987, P 19 ANN ACM S THEOR
[2]  
CHERKASSKY BV, 1994, PROCEEDINGS OF THE FIFTH ANNUAL ACM-SIAM SYMPOSIUM ON DISCRETE ALGORITHMS, P516
[3]  
Clint Whaley R., 1998, P SC 98 P 1998 ACMIE, P38, DOI [10.5555/509058.509096, DOI 10.1109/SC.1998.10004]
[4]  
DEMETRESCU C, 2003, P 35 ANN ACM S THEOR, P159
[5]  
Demetrescu C., 2004, P 15 ANN ACM SIAM S, P369
[6]  
Dijkstra E.W., 1959, Numerische mathematik, V1, P269, DOI [10.1007/BF01386390, DOI 10.1007/BF01386390]
[7]  
Gustavson F, 1998, LECT NOTES COMPUT SC, V1541, P195
[8]  
Hong J. W., 1981, SER STOC 81, P326, DOI DOI 10.1145/800076.802486
[9]   External matrix multiplication and all-pairs shortest path [J].
Sibeyn, JF .
INFORMATION PROCESSING LETTERS, 2004, 91 (02) :99-106
[10]   GAUSSIAN ELIMINATION IS NOT OPTIMAL [J].
STRASSEN, V .
NUMERISCHE MATHEMATIK, 1969, 13 (04) :354-&