[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.5555/1873601.1873662acmconferencesArticle/Chapter ViewAbstractPublication PagessodaConference Proceedingsconference-collections
research-article

A nearly optimal algorithm for approximating replacement paths and k shortest simple paths in general graphs

Published: 17 January 2010 Publication History

Abstract

Let G = (V, E) be a directed graph with positive edge weights, let s, t be two specified vertices in this graph, and let π(s, t) be the shortest path between them. In the replacement paths problem we want to compute, for every edge e on π(s, t), the shortest path from s to t that avoids e. The naive solution to this problem would be to remove each edge e, one at a time, and compute the shortest s - t path each time; this yields a running time of O(mn + n2 log n). Gotthilf and Lewenstein [8] recently improved this to O(mn+n2 log log n), but no o(mn) algorithms are known.
We present the first approximation algorithm for replacement paths in directed graphs with positive edge weights. Given any ε ε [0, 1), our algorithm returns (1 + ε)-approximate replacement paths in O-1 log2 n log(nC/c)(m+n log n)) = Õ(m log(nC/c)/ε) time, where C is the largest edge weight in the graph and c is the smallest weight.
We also present an even faster (1 + ε) approximate algorithm for the simpler problem of approximating the k shortest simple s - t paths in a directed graph with positive edge weights. That is, our algorithm outputs k different simple s - t paths, where the kth path we output is a (1 + ε) approximation to the actual kth shortest simple s - t path. The running time of our algorithm is O(kε-1 log2 n(m + n log n)) = Õ(km/ε). The fastest exact algorithm for this problem has a running time of O(k(mn+n2 log log n)) = Õ(kmn) [8]. The previous best approximation algorithm was developed by Roditty [15]; it has a stretch of 3/2 and a running time of Õ(km√n) (it does not work for replacement paths).
Note that all of our running times are nearly optimal except for the O (log(nC/c)) factor in the replacements paths algorithm. Also, our algorithm can solve the variant of approximate replacement paths where we avoid vertices instead of edges.

References

[1]
A. Bernstein and D. Karger, Improved distance sensitivity oracles via random sampling, in Proc. of the 19th SODA, San Francisco, California, 2008, pp. 34--43.
[2]
S. Chechick, M. Langberg, D. Peleg, and L. Roditty, f-sensitivity distance oracles, Unpublished Manuscript, (2009).
[3]
D. Dor, S. Halperin, and U. Zwick, All-pairs almost shortest paths, SIAM J. Comput., 29 (2000), pp. 1740--1759.
[4]
R. Duan and S. Pettie, Dual-failure distance and connectivity oracles, in Proc. of the 20th SODA, New York, New York, 2009, pp. 506--515.
[5]
Y. Emek, D. Peleg, and L. Roditty, A near-linear time algorithm for computing replacement paths in planar directed graphs, in Proc. of the 19th SODA, San Francisco, California, 2008, pp. 428--435.
[6]
D. Eppstein, Finding the k shortest paths, SIAM J. Comput., 28 (1999), pp. 652--673.
[7]
M. L. Fredman and R. E. Tarjan, Fibonacci heaps and their uses in improved network optimization algorithms, J. ACM, 34 (1987), pp. 596--615.
[8]
Z. Gotthilf and M. Lewenstein, Improved algorithms for the k simple shortest paths and the replacement paths problems, Inf. Process. Lett., 109 (2009), pp. 352--355.
[9]
J. Hershberger and S. Suri, Vickrey prices and shortest paths: What is an edge worth?, in Proc. of the 42nd FOCS, Las Vegas, Nevada, USA, 2001, pp. 129--140. Erratum in FOCS '02.
[10]
J. Hershberger, S. Suri, and A. Bhosle, On the difficulty of some shortest path problems, ACM Trans. Algorithms, 3 (2007), p. Article no. 5.
[11]
P. Klein, S. Mozes, and O. Weimann, Shortest paths in directed planar graphs with negative lengths: a linear-space o(n log2 n)-time algorithm, in Proc. of the 19th SODA, New York, New York, 2009, pp. 236--245.
[12]
E. Lawler, A procedure for computing the k best solutions to discrete optimization problems and its application to the shortest path problem, Management Science, 18 (1972), pp. 401--405.
[13]
K. Malik, A. K. Mittal, and S. K. Gupta, The k most vital arcs in the shortest path problem, Operations Research Letters, 4 (1989), pp. 223--227.
[14]
N. Nisan and A. Ronen, Algorithmic mechanism design, Games and Economic Behavior, 35 (2001), pp. 166--196.
[15]
L. Roditty, On the k-simple shortest paths problem in weighted directed graphs, in Proc. of the 18th SODA, New Orleans, Louisiana, 2007, pp. 920--928.
[16]
L. Roditty and U. Zwick, Replacement paths and k simple shortest paths in unweighted directed graphs., in Proc. of the 32nd ICALP, Lisboa, Portugal, 2005, pp. 249--260.

Cited By

View all
  • (2020)Multiple Source Replacement Path ProblemProceedings of the 39th Symposium on Principles of Distributed Computing10.1145/3382734.3405714(339-348)Online publication date: 31-Jul-2020
  • (2018)Approximating cycles in directed graphsProceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3174304.3175396(1374-1392)Online publication date: 7-Jan-2018
  • (2018)An Empirical Comparison of k-Shortest Simple Path Algorithms on MulticoresProceedings of the 47th International Conference on Parallel Processing10.1145/3225058.3225075(1-12)Online publication date: 13-Aug-2018
  • Show More Cited By
  1. A nearly optimal algorithm for approximating replacement paths and k shortest simple paths in general graphs

        Recommendations

        Comments

        Please enable JavaScript to view thecomments powered by Disqus.

        Information & Contributors

        Information

        Published In

        cover image ACM Conferences
        SODA '10: Proceedings of the twenty-first annual ACM-SIAM symposium on Discrete algorithms
        January 2010
        1690 pages
        ISBN:9780898716986

        Sponsors

        Publisher

        Society for Industrial and Applied Mathematics

        United States

        Publication History

        Published: 17 January 2010

        Check for updates

        Qualifiers

        • Research-article

        Acceptance Rates

        SODA '10 Paper Acceptance Rate 135 of 445 submissions, 30%;
        Overall Acceptance Rate 411 of 1,322 submissions, 31%

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)0
        • Downloads (Last 6 weeks)0
        Reflects downloads up to 09 Dec 2024

        Other Metrics

        Citations

        Cited By

        View all
        • (2020)Multiple Source Replacement Path ProblemProceedings of the 39th Symposium on Principles of Distributed Computing10.1145/3382734.3405714(339-348)Online publication date: 31-Jul-2020
        • (2018)Approximating cycles in directed graphsProceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3174304.3175396(1374-1392)Online publication date: 7-Jan-2018
        • (2018)An Empirical Comparison of k-Shortest Simple Path Algorithms on MulticoresProceedings of the 47th International Conference on Parallel Processing10.1145/3225058.3225075(1-12)Online publication date: 13-Aug-2018
        • (2018)Subcubic Equivalences Between Path, Matrix, and Triangle ProblemsJournal of the ACM10.1145/318689365:5(1-38)Online publication date: 29-Aug-2018
        • (2018)Fault-Tolerant Approximate BFS StructuresACM Transactions on Algorithms10.1145/302273014:1(1-15)Online publication date: 22-Jan-2018
        • (2015)An Experimental Study on Approximating k Shortest Simple PathsACM Journal of Experimental Algorithmics10.1145/263006819(1-15)Online publication date: 3-Apr-2015
        • (2015)Bulk-Robust combinatorial optimizationMathematical Programming: Series A and B10.1007/s10107-014-0760-6149:1-2(361-390)Online publication date: 1-Feb-2015
        • (2014)Fault tolerant approximate BFS structuresProceedings of the twenty-fifth annual ACM-SIAM symposium on Discrete algorithms10.5555/2634074.2634154(1073-1092)Online publication date: 5-Jan-2014
        • (2013)Fast approximation algorithms for the diameter and radius of sparse graphsProceedings of the forty-fifth annual ACM symposium on Theory of Computing10.1145/2488608.2488673(515-524)Online publication date: 1-Jun-2013
        • (2013)Replacement Paths and Distance Sensitivity Oracles via Fast Matrix MultiplicationACM Transactions on Algorithms10.1145/2438645.24386469:2(1-13)Online publication date: 1-Mar-2013
        • Show More Cited By

        View Options

        Login options

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media