Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Replacement Paths and Distance Sensitivity Oracles via Fast Matrix Multiplication

Published: 01 March 2013 Publication History

Abstract

A distance sensitivity oracle of an n-vertex graph G = (V,E) is a data structure that can report shortest paths when edges of the graph fail. A query (uV, vV, SE) to this oracle returns a shortest u-to-v path in the graph G = (V,ES). We present randomized (Monte Carlo) algorithms for constructing a distance sensitivity oracle of size Õ(n3−α) for |S| = O(lg n/lg lg n) and any choice of 0 < α < 1. For real edge-lengths, the oracle is constructed in O(n4−α) time and a query to this oracle takes Õ(n2−2(1−α)/|S|) time. For integral edge-lengths in {−M,..., M}, using the current ω < 2.376 matrix multiplication exponent, the oracle is constructed in O(Mn3.376−α) time with Õ(n2−(1−α)/|S|) query, or alternatively in O(M0.681n3.575−α) time with Õ(n2−2(1−α)/|S|) query.
Distance sensitivity oracles generalize the replacement paths problem in which u and v are known in advance and |S| = 1. In other words, if P is a shortest path from u to v in G, then the replacement paths problem asks to compute, for every edge e on P, a shortest u-to-v path that avoids e. Our new technique for constructing distance sensitivity oracles using fast matrix multiplication also yields the first subcubic-time algorithm for the replacement paths problem when the edge-lengths are small integers. In particular, it yields a randomized (Monte Carlo) Õ(Mn2.376 + M2 3 n2.584)-time algorithm for the replacement paths problem assuming Mn0.624.
Finally, we mention that both our replacement paths algorithm and our distance sensitivity oracle can be made to work, in the same time and space bounds, for the case of failed vertices rather than edges, that is, when S is a set of vertices and we seek a shortest u-to-v path in the graph obtained from G by removing all vertices in S and their adjacent edges.

References

[1]
Alon, N. and Spencer, J. H. 2000. The Probabilistic Method 2nd Ed. Wiley-Interscience.
[2]
Alon, N., Galil, Z., and Margalit O. 1997. On the exponent of the all pairs shortest path problem. J. Comput. Syst. Sci. 54, 255--262.
[3]
Bernstein, A. 2010. A nearly optimal algorithm for approximating replacement paths and k shortest simple paths in general graphs. In Proceedings of the 21st ACM-SIAM Symposium on Discrete Algorithms (SODA). 742--755.
[4]
Bernstein, A. and Karger, D. 2008. Improved distance sensitivity oracles via random sampling. In Proceedings of the 19th ACM-SIAM Symposium on Discrete Algorithms (SODA). 34--43.
[5]
Bernstein, A. and Karger, D. 2009. A nearly optimal oracle for avoiding failed vertices and edges. In Proceedings of the 41st ACM Symposium on Theory of Computing (STOC). 101--110.
[6]
Chechik, S., Langberg, M., Peleg, D. and Roditty, L. 2010. F -Sensitivity distance oracles and routing schemes. In Proceedings of the 18th Annual European Symposium on Algorithms (ESA). 84--96.
[7]
Demetrescu, C. and Italiano, G. F. 2004. Experimental analysis of dynamic all pairs shortest path algorithms. In Proceedings of the 15th ACM-SIAM Symposium On Discrete Algorithms (SODA). 362--371.
[8]
Demetrescu, C., Thorup, M., Chowdhury, R., and Ramachandran, V. 2008. Oracles for distances avoiding a failed node or link. SIAM J. Comput. 37, 5, 1299--1318.
[9]
Duan, R. and Pettie, S. 2009. Dual-Failure distance and connectivity oracles. In Proceedings of the 20th ACM-SIAM Symposium on Discrete Algorithms (SODA). 506--515.
[10]
Emek, Y., Peleg, D., and Roditty, L. 2008. A near-linear time algorithm for computing replacement paths in planar directed graphs. In Proceedings of the 19th ACM-SIAM Symposium on Discrete Algorithms (SODA). 428--435.
[11]
Eppstein, D. 1999. Finding the k shortest paths. SIAM J. Comput. 28, 652--673.
[12]
Gotthilf, Z. and Lewenstein, M. 2009. Improved algorithms for the k simple shortest paths and the replacement paths problems. Inf. Process. Lett. 109, 7, 352--355.
[13]
Hershberger, J. and Suri, S. 2001. Vickrey prices and shortest paths: What is an edge worth? In Proceedings of the 42nd Annual Symposium on Foundations Of Computer Science (FOCS). 252--259.
[14]
Hershberger, J., Suri, S., and Bhosle, A. 2003. On the difficulty of some shortest path problems. In Proceedings of the 20th Symposium on Theoretical Aspects of Computer Science (STACS). 343--354.
[15]
Huang, X. and Pan, V. 1998. Fast rectangular matrix multiplications and applications. J. Complexity 14, 257--299.
[16]
Johnson, D. B. 1977. Efficient algorithms for shortest paths in sparse networks. J. ACM 1, 1--14.
[17]
Karger, D., Koller, D., and Phillips, S. J. 1993. Finding the hidden path: Time bounds for all-pairs shortest paths. SIAM J. Comput. 22, 6, 1199--1217.
[18]
Klein, P., Mozes, S., and Weimann, O. 2009. Shortest paths in directed planar graphs with negative lengths: A linear-space o(nlog2n)-time algorithm. In Proceedings of the 20th ACM-SIAM Symposium on Discrete Algorithms (SODA). 236--245.
[19]
Lawler, E. L. 1972. A procedure for computing the k best solutions to discrete optimization problems and its application to the shortest path problem. Manag. Sci. 18, 401--405.
[20]
Malik, K., Mittal, A. K., and Gupta, S. K. 1989. The k most vital arcs in the shortest path problem. Oper. Res. Lett. 8, 223--227.
[21]
Nardelli, E., Proietti, G., and Widmayer, P. 2001. A faster computation of the most vital edge of a shortest path. Inform. Process. Lett. 79, 2, 81--85.
[22]
Nardelli, E., Proietti, G., and Widmayer, P. 2003. Finding the most vital node of a shortest path. Theor. Comput. Sci. 296, 1, 167--177.
[23]
Nisan, N. and Ronen, A. 2001. Algorithmic mechanism design. Games Econ. Behav. 35, 166--196.
[24]
Roditty, L. 2007. On the k-simple shortest paths problem in weighted directed graphs. In Proceedings of the 18th ACM-SIAM Symposium on Discrete Algorithms (SODA). 920--4928.
[25]
Roditty, L. and Zwick, U. 2004. A fully dynamic reachability algorithm for directed graphs with an almost linear update time. In Proceedings of the 36th ACM Symposium on Theory of Computing (STOC). 184--191.
[26]
Roditty, L. and Zwick, U. 2005. Replacement paths and k simple shortest paths in unweighted directed graphs. In Proceedings of the 32nd Annual International Colloquium on Automata, Languages and Programming (ICALP). 249--260.
[27]
Thorup, M. 1999. Undirected single-source shortest paths with positive integer weights in linear time. J. ACM 46, 362--394.
[28]
Thorup, M. 2004. Fully-Dynamic all-pairs shortest paths: Faster and allowing negative cycles. In Proceedings of the 9th Scandinavian Workshop on Algorithm Theory (SWAT). 384--396.
[29]
Thorup, M. 2005. Worst-Case update times for fully-dynamic all-pairs shortest paths. In Proceedings of the 37th ACM Symposium on Theory of Computing (STOC). 112--119.
[30]
Vassilevska-Williams, V. 2011. Faster replacement paths. In Proceedings of the 22nd ACM-SIAM Symposium on Discrete Algorithms (SODA). 1337--1346.
[31]
Vassilevska-Williams, V. and Williams, R. 2010. Subcubic equivalences between path, matrix, and triangle problems. In Proceedings of the 51st Annual Symposium on Foundations of Computer Science (FOCS). 645--654.
[32]
Weimann, O. and Yuster, R. 2010. Replacement paths via fast matrix multiplication. In Proceedings of the 51st Annual Symposium on Foundations of Computer Science (FOCS). 655--662.
[33]
Wulff-Nilsen, C. 2010. Solving the replacement paths problem for planar directed graphs in o(n log n) time. In Proceedings of the 21st ACM-SIAM Symposium on Discrete Algorithms (SODA). 756--765.
[34]
Yen, J. Y. 1971. Finding the k shortest loopless paths in a network. Manag. Sci. 17, 712--716.
[35]
Yuster, R. and Zwick, U. 2005. Answering distance queries in directed graphs using fast matrix multiplication. In Proceedings of the 46th Annual Symposium on Foundations of Computer Science (FOCS). 389--396.
[36]
Yuval, G. 1976. An algorithm for finding all shortest paths using n2:81 infinite-precision multiplications. Inform. Process. Lett. 4, 155--156.
[37]
Zwick, U. 2002. All pairs shortest paths using bridging sets and rectangular matrix multiplication. J. ACM 49, 289--317.

Cited By

View all
  • (2024)Deterministic Replacement Path CoveringACM Transactions on Algorithms10.1145/367376020:4(1-35)Online publication date: 5-Aug-2024
  • (2024)Connectivity Labeling and Routing with Multiple Vertex FailuresProceedings of the 56th Annual ACM Symposium on Theory of Computing10.1145/3618260.3649729(823-834)Online publication date: 10-Jun-2024
  • (2024)Nearly Optimal Fault Tolerant Distance OracleProceedings of the 56th Annual ACM Symposium on Theory of Computing10.1145/3618260.3649697(944-955)Online publication date: 10-Jun-2024
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Algorithms
ACM Transactions on Algorithms  Volume 9, Issue 2
March 2013
89 pages
ISSN:1549-6325
EISSN:1549-6333
DOI:10.1145/2438645
Issue’s Table of Contents
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 March 2013
Accepted: 01 January 2012
Revised: 01 December 2011
Received: 01 February 2011
Published in TALG Volume 9, Issue 2

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Shortest paths
  2. distance oracles
  3. fault tolerance
  4. replacement paths

Qualifiers

  • Research-article
  • Research
  • Refereed

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)20
  • Downloads (Last 6 weeks)5
Reflects downloads up to 02 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Deterministic Replacement Path CoveringACM Transactions on Algorithms10.1145/367376020:4(1-35)Online publication date: 5-Aug-2024
  • (2024)Connectivity Labeling and Routing with Multiple Vertex FailuresProceedings of the 56th Annual ACM Symposium on Theory of Computing10.1145/3618260.3649729(823-834)Online publication date: 10-Jun-2024
  • (2024)Nearly Optimal Fault Tolerant Distance OracleProceedings of the 56th Annual ACM Symposium on Theory of Computing10.1145/3618260.3649697(944-955)Online publication date: 10-Jun-2024
  • (2024)Improved Distance (Sensitivity) Oracles with Subquadratic Space2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS)10.1109/FOCS61266.2024.00097(1550-1558)Online publication date: 27-Oct-2024
  • (2024)Near-optimal distributed computation of small vertex cutsDistributed Computing10.1007/s00446-023-00455-z37:2(67-88)Online publication date: 1-Jun-2024
  • (2023)Restorable Shortest Path Tiebreaking for Edge-Faulty GraphsJournal of the ACM10.1145/360354270:5(1-24)Online publication date: 11-Oct-2023
  • (2023)Approximate Distance Sensitivity Oracles in Subquadratic SpaceProceedings of the 55th Annual ACM Symposium on Theory of Computing10.1145/3564246.3585251(1396-1409)Online publication date: 2-Jun-2023
  • (2023)Subcubic Equivalences between Graph Centrality Problems, APSP, and DiameterACM Transactions on Algorithms10.1145/356339319:1(1-30)Online publication date: 9-Mar-2023
  • (2023)Sensitivity and Dynamic Distance Oracles via Generic Matrices and Frobenius Form2023 IEEE 64th Annual Symposium on Foundations of Computer Science (FOCS)10.1109/FOCS57990.2023.00106(1745-1756)Online publication date: 6-Nov-2023
  • (2023)Compact Distance Oracles with Large Sensitivity and Low StretchAlgorithms and Data Structures10.1007/978-3-031-38906-1_11(149-163)Online publication date: 28-Jul-2023
  • Show More Cited By

View Options

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media