Title :
A Forward-Backward Single-Source Shortest Paths Algorithm
Author :
Wilson, Daniel B. ; Zwick, Uri
Abstract :
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 nondecreasing 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(n2), matching a recent result of Peres et al. Furthermore, the probability that the new algorithm requires more than O(n2) time is exponentially small, improving on the polynomially small probability of Peres et al.
Keywords :
computational complexity; directed graphs; search problems; all-pairs shortest paths algorithm; complete directed graph; forward-backward single-source shortest paths algorithm; forward-only SSSP algorithms; incoming adjacency lists; independent exponential edge weights; out-going adjacency lists; polynomially small probability; running time; Algorithm design and analysis; Arrays; Computational modeling; Heuristic algorithms; Probabilistic logic; Random variables; graph algorithms; shortest paths;
Conference_Titel :
Foundations of Computer Science (FOCS), 2013 IEEE 54th Annual Symposium on
Conference_Location :
Berkeley, CA
DOI :
10.1109/FOCS.2013.81