CS 298-2
Theory Seminar
Yuval Emek
Weizmann Institute
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(m n + n^2 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 repeatedly computes the replacement paths from s to t. Its running time is O(k n (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 asks whether it is possible to compute the Vickrey pricing faster than the trivial algorithm described in the previous paragraph.
In this talk 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 \log^3 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 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 \tilde{O}(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.
Joint work with David Peleg and Liam Roditty.