A forward-backward single-source shortest paths algorithm

被引:2
作者
Wilson, David B. [1 ]
Zwick, Uri [2 ]
机构
[1] Microsoft Res, Redmond, WA 98052 USA
[2] Tel Aviv Univ, IL-69978 Tel Aviv, Israel
来源
2013 IEEE 54TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE (FOCS) | 2013年
关键词
graph algorithms; shortest paths; GRAPHS;
D O I
10.1109/FOCS.2013.81
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We describe a new forward-backward variant of Dijkstra's and Spira's Single-Source Shortest Paths (SSSP) algorithms. While essentially all SSSP algorithm only scan edges forward, the new algorithm scans some edges backward. The new algorithm assumes that edges in the out-going and incoming adjacency lists of the vertices appear in non-decreasing order of weight. (Spira's algorithm makes the same assumption about the out-going adjacency lists, but does not use incoming adjacency lists.) The running time of the algorithm on a complete directed graph on n vertices with independent exponential edge weights is O(n), with very high probability. This improves on the previously best result of O(n log n), which is best possible if only forward scans are allowed, exhibiting an interesting separation between forward-only and forward-backward SSSP algorithms. As a consequence, we also get a new all-pairs shortest paths algorithm. The expected running time of the algorithm on complete graphs with independent exponential edge weights is O(n 2), matching a recent result of Peres et al. Furthermore, the probability that the new algorithm requires more than O(n 2) time is exponentially small, improving on the polynomially small probability of Peres et al.
引用
收藏
页码:707 / 716
页数:10
相关论文
共 24 条
[1]  
[Anonymous], 1980, MATH FDN COMPUTER SC, DOI DOI 10.1007/BFB0022539
[2]   A SHORTEST-PATH ALGORITHM WITH EXPECTED TIME O(N2 LOG N LOGSTAR N) [J].
BLONIARZ, PA .
SIAM JOURNAL ON COMPUTING, 1983, 12 (03) :588-600
[3]   THE EXPECTED LENGTH OF A SHORTEST-PATH [J].
DAVIS, R ;
PRIEDITIS, A .
INFORMATION PROCESSING LETTERS, 1993, 46 (03) :135-141
[4]   A new approach to dynamic all pairs shortest paths [J].
Demetrescu, C ;
Italiano, GF .
JOURNAL OF THE ACM, 2004, 51 (06) :968-992
[5]  
Dijkstra E. W., 1959, NUMER MATH, V1, P269
[6]   FIBONACCI HEAPS AND THEIR USES IN IMPROVED NETWORK OPTIMIZATION ALGORITHMS [J].
FREDMAN, ML ;
TARJAN, RE .
JOURNAL OF THE ACM, 1987, 34 (03) :596-615
[7]   THE SHORTEST-PATH PROBLEM FOR GRAPHS WITH RANDOM ARC-LENGTHS [J].
FRIEZE, AM ;
GRIMMETT, GR .
DISCRETE APPLIED MATHEMATICS, 1985, 10 (01) :57-77
[8]   A practical shortest path algorithm with linear expected time [J].
Goldberg, Andrew V. .
SIAM JOURNAL ON COMPUTING, 2008, 37 (05) :1637-1655
[10]   ON SHORTEST PATHS IN GRAPHS WITH RANDOM WEIGHTS [J].
HASSIN, R ;
ZEMEL, E .
MATHEMATICS OF OPERATIONS RESEARCH, 1985, 10 (04) :557-564