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

A near-linear time algorithm for computing replacement paths in planar directed graphs

Published: 20 January 2008 Publication History

Abstract

Let G = (V(G), E(G)) be a weighted directed graph and let P be a shortest path from s to t in G. In the replacement paths problem we are required to compute for every edge e in P, the length of a shortest path from s to t that avoids e. The fastest known algorithm for solving the problem in weighted directed graphs is the trivial one: each edge in P is removed from the graph in its turn and the distance from s to t in the modified graph is computed. The running time of this algorithm is O (mn + n2 log n), where n = |V(G)| and m = |E(G)|.
The replacement paths problem is strongly motivated by two different applications. First, the fastest algorithm to compute the k simple shortest paths from s to t in directed graphs [21, 13] repeatedly computes the replacement paths from s to t. Its running time is O(kn(m + n log n)). Second, the computation of Vickrey pricing of edges in distributed networks can be reduced to the replacement paths problem. An open question raised by Nisan and Ronen [16] asks whether it is possible to compute the Vickrey pricing faster than the trivial algorithm described in the previous paragraph.
In this paper we present a near-linear time algorithm for computing replacement paths in weighted planar directed graphs. In particular, the algorithm computes the lengths of the replacement paths in O(n log3 n) time. This result immediately improves the running time of the two applications mentioned above by almost a linear factor. Our algorithm is obtained by combining several new ideas with a data structure of Klein [12] that supports multi-source shortest paths queries in planar directed graphs in logarithmic time.
Our algorithm can be adapted to address the variant of the problem in which one is interested in the replacement path itself (rather than the length of the path). In that case the algorithm is executed in a preprocessing stage constructing a data structure that supports replacement path queries in time Õ(h), where h is the number of hops in the replacement path. In addition, we can handle the variant in which vertices should be avoided instead of edges.

References

[1]
T. H. Cormen, C. E. Leiserson and R. L. Rivest. Introduction to Algorithms. The MIT Press, 1990.
[2]
C. Demetrescu, M. Thorup, R. Alam Chaudhury, and V. Ramachandran. Oracles for distances avoiding a link-failure. Preliminary version of this paper appears in Proc. of 13th SODA, pages 838--843, 2002.
[3]
E. W. Dijkstra. A note on two problems in connexion with graphs. Numerische Mathematik, 1:269--271, 1959.
[4]
D. Eppstein. Finding the k shortest paths. SIAM Journal on Computing, 28(2):652--673, 1998.
[5]
I. Fáry. On straight-line representation of planar graphs. Acta Sci. Math. (Szeged), 11:229--233, 1948.
[6]
H. de Fraysseix, J. Pach and R. Pollack. Small sets supporting Fary embeddings of planar graphs. In Proc. ACM Symposium on Theory of Computing (STOC), pages 426--433, 1988.
[7]
J. Fakcharoenphol and S. Rao. Planar graphs, negative weight edges, shortest paths, near linear time. In Proc. IEEE Symposium on Foundations of Computer Science (FOCS), pages 232--241, 2001.
[8]
J. Hershberger and S. Suri. Vickrey prices and shortest paths: what is an edge worth? In Proc. of 42nd FOCS, pages 252--259, 2001.
[9]
J. Hershberger, S. Suri, and A. Bhosle. On the difficulty of some shortest path problems. In Proc. of the 20th STACS, pages 343--354, 2003.
[10]
N. Katoh, T. Ibaraki, and H. Mine. An efficient algorithm for K shortest simple paths. Networks, 12(4):411--427, 1982.
[11]
D. R. Karger, D. Koller, and S. J. Phillips. Finding the hidden path: time bounds for all-pairs shortest paths. SIAM Journal on Computing, 22:1199--1217, 1993.
[12]
P. N. Klein. Multiple-source shortest paths in planar graphs. In Proc. ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 146--155, 2005.
[13]
E. L. Lawler. A procedure for computing the K best solutions to discrete optimization problems and its application to the shortest path problem. Management Science, 18:401--405, 1971/72.
[14]
K. Malik, A. K. Mittal, and S. K. Gupta. The k most vital arcs in the shortest path problem. Operations Research Letters, 8(4):223--227, 1989.
[15]
E. Nardelli, G. Proietti, and P. Widmayer. A faster computation of the most vital edge of a shortest path. Information Processing Letters, 79(2):81--85, 2001.
[16]
N. Nisan and A. Ronen. Algorithmic mechanism design. Games and Economic Behavior, 35:166--196, 2001.
[17]
L. Roditty and U. Zwick. Replacement paths and k simple shortest paths in unweighted directed graphs. In Proc. Automata, Languages and Programming, 32nd International Colloquium, 249--260, 2005.
[18]
L. Roditty. On the k-simple shortest paths in weighted directed graphs. In Proc. ACM-SIAM Symposium on Discrete Algorithms (SODA), 2007.
[19]
M. Thorup. Undirected single-source shortest paths with positive integer weights in linear time. Journal of the ACM, 46:362--394, 1999.
[20]
M. Thorup. Compact oracles for reachability and approximate distances in planar digraphs. J. ACM, 51(6):993--1024, 2004.
[21]
J. Y. Yen. Finding the K shortest loopless paths in a network. Management Science, 17:712--716, 1970/71.

Cited By

View all
  • (2019)Near optimal algorithms for the single source replacement paths problemProceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3310435.3310561(2090-2109)Online publication date: 6-Jan-2019
  • (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
  • (2012)Single source distance oracle for planar digraphs avoiding a failed node or linkProceedings of the twenty-third annual ACM-SIAM symposium on Discrete algorithms10.5555/2095116.2095136(223-232)Online publication date: 17-Jan-2012
  • Show More Cited By

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Conferences
SODA '08: Proceedings of the nineteenth annual ACM-SIAM symposium on Discrete algorithms
January 2008
1289 pages
  • Program Chair:
  • Shang-Hua Teng

Sponsors

Publisher

Society for Industrial and Applied Mathematics

United States

Publication History

Published: 20 January 2008

Check for updates

Qualifiers

  • Research-article

Conference

SODA08
Sponsor:
SODA08: 19th ACM-SIAM Symposium on Discrete Algorithms
January 20 - 22, 2008
California, San Francisco

Acceptance Rates

Overall Acceptance Rate 411 of 1,322 submissions, 31%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)1
  • Downloads (Last 6 weeks)0
Reflects downloads up to 03 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2019)Near optimal algorithms for the single source replacement paths problemProceedings of the Thirtieth Annual ACM-SIAM Symposium on Discrete Algorithms10.5555/3310435.3310561(2090-2109)Online publication date: 6-Jan-2019
  • (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
  • (2012)Single source distance oracle for planar digraphs avoiding a failed node or linkProceedings of the twenty-third annual ACM-SIAM symposium on Discrete algorithms10.5555/2095116.2095136(223-232)Online publication date: 17-Jan-2012
  • (2012)Finding Alternative Shortest Paths in Spatial NetworksACM Transactions on Database Systems10.1145/2389241.238924837:4(1-31)Online publication date: 1-Dec-2012
  • (2011)Computing replacement paths in surface embedded graphsProceedings of the twenty-second annual ACM-SIAM symposium on Discrete algorithms10.5555/2133036.2133139(1347-1354)Online publication date: 23-Jan-2011
  • (2010)Solving the replacement paths problem for planar directed graphs in O(n log n) timeProceedings of the twenty-first annual ACM-SIAM symposium on Discrete algorithms10.5555/1873601.1873663(756-765)Online publication date: 17-Jan-2010
  • (2010)A nearly optimal algorithm for approximating replacement paths and k shortest simple paths in general graphsProceedings of the twenty-first annual ACM-SIAM symposium on Discrete algorithms10.5555/1873601.1873662(742-755)Online publication date: 17-Jan-2010
  • (2010)Shortest paths in directed planar graphs with negative lengthsACM Transactions on Algorithms10.1145/1721837.17218466:2(1-18)Online publication date: 6-Apr-2010
  • (2009)Dual-failure distance and connectivity oraclesProceedings of the twentieth annual ACM-SIAM symposium on Discrete algorithms10.5555/1496770.1496826(506-515)Online publication date: 4-Jan-2009
  • (2009)Shortest paths in directed planar graphs with negative lengthsProceedings of the twentieth annual ACM-SIAM symposium on Discrete algorithms10.5555/1496770.1496797(236-245)Online publication date: 4-Jan-2009
  • 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