Abstract
One of the classical lines of work in graph algorithms has been the Replacement Path Problem: given a graph $G$, $s$ and $t$, find shortest paths from $s$ to $t$ avoiding each edge $e$ on the shortest path from $s$ to $t$. These paths are called replacement paths in literature. For an undirected and unweighted graph, previous work designed algorithms that solve the replacement path problem in $\tilde{O}(m + n)$ time. It is natural to ask whether we can generalize the replacement path problem: can we find all replacement paths from a source $s$ to all vertices in $G$? This problem is called the Single Source Replacement Path Problem. This paper introduces the first randomized combinatorial algorithm to solve the Multiple Source Replacement Path (MSRP) problem for undirected, unweighted graphs.
Introduction
In graph theory, the Replacement Path Problem (RPP) asks: if the shortest path between two points $s$ and $t$ is interrupted by a single edge failure, what is the next best path? This is crucial for network resilience, routing protocols, and auction theory (specifically Vickrey pricing).
While researchers had solved this for a single pair $(s, t)$ and even for a single source $s$ to all vertices $t$, a significant gap remained: what if you have multiple sources? If you have a set of $\sigma$ sources and want to find replacement paths to every other vertex in the graph, previous algorithms were either inefficient or only worked for the extreme cases where $\sigma=1$ or $\sigma=n$ (all vertices are sources). This paper provides a general solution for any value of $\sigma$.
Methods
The authors use a randomized combinatorial approach centered on the concept of Landmark Vertices.
Landmark Sampling and the Scaling Trick
The algorithm samples a set of vertices $\mathcal{L}$ with a specific probability. If a replacement path is "long" enough, it is highly likely to pass through one of these landmarks. The primary technical innovation is the "scaling trick." Instead of using one giant set of landmarks, the authors partition the edges of the shortest path based on their distance from the destination (e.g., $2^k$ to $2^{k+1}$). For each range, they use a differently sized set of landmark vertices. This prevents the algorithm from wasting time on redundant calculations and keeps the total runtime efficient.
Auxiliary Graphs and Path Cover Lemma
To handle "near" edges (those close to the destination), the authors construct specialized auxiliary graphs. Running Dijkstra’s algorithm on these graphs efficiently reveals the lengths of the replacement paths. For the multiple-source generalization, they adapt the "Path Cover Lemma" from previous literature. They divide paths into intervals and identify "bottleneck edges"—the hardest edges to avoid in a given segment—to simplify the search for alternative routes.
Key Insights
- Bridging the Gap: The algorithm is a "unified field theory" for replacement paths; it gracefully scales from the single-source result ($\sigma=1$) to the all-pairs result ($\sigma=n$).
- Simplicity over Complexity: The authors argue that their "scaling trick" makes their algorithm significantly simpler to implement and analyze than previous state-of-the-art methods for the single-source case, despite handling a harder problem.
- Conditional Optimality: The authors provide a conditional lower bound, showing that their algorithm is likely as fast as possible. Specifically, they prove that a significantly faster combinatorial algorithm would imply a breakthrough in Boolean Matrix Multiplication (BMM), a notoriously difficult problem in computer science.
Results
The MSRP problem for $\sigma$ sources can be solved in $\tilde{O}(m\sqrt{n\sigma} + \sigma n^2)$ time. This result generalizes existing bounds:
- When $\sigma = 1$, the runtime matches the best known Single Source result: $\tilde{O}(m\sqrt{n} + n^2)$.
- When $\sigma = n$, the runtime matches the best known All-Pairs result: $\tilde{O}(mn + n^3)$.
Furthermore, they established a matching conditional lower bound of $\Omega(m\sqrt{n\sigma})$, suggesting that for combinatorial algorithms, this is the "speed limit."
Conclusion
The current algorithm is restricted to undirected and unweighted graphs. Extending these results to directed graphs or graphs with edge weights remains a significant challenge, as many of the path-symmetry properties used here do not apply in those settings. Additionally, while the algorithm succeeds with "high probability," a deterministic version with the same complexity remains an open question. The focus on combinatorial methods ensures practical relevance, avoiding the high constant factors associated with algebraic fast matrix multiplication techniques.
Summary updated