- The paper introduces a divide-and-conquer algorithm that recursively computes all distinct parametric s–t shortest paths as the interpolation parameter varies.
- It leverages modified Dijkstra procedures to efficiently detect breakpoint intersections among linear path cost functions, ensuring rapid queries.
- The method improves on prior approaches by minimizing redundant computations and achieving output-sensitive performance even under varying graph weights.
This work formalizes and solves the parametric shortest paths problem within the context of linearly interpolated edge weights between two positively-weighted directed graphs sharing the same topology. Given G0=(V,E,ω0) and G1=(V,E,ω1), the edge weights in Gλ are defined as ωλ=(1−λ)ω0+λω1 for λ∈[0,1]. The core objective is to compute all parametric s–t shortest paths as λ varies, parameterizing the evolution of optimal paths in terms of λ.
The fundamental observation underpinning this approach is that the cost of any given path P in G1=(V,E,ω1)0 is a linear function of G1=(V,E,ω1)1. Thus, for fixed endpoints, the family of candidate paths induces a finite arrangement of lines. The parametric shortest path value for a given G1=(V,E,ω1)2 is the lower envelope of these cost lines. Breakpoints in this envelope correspond to values of G1=(V,E,ω1)3 at which the identity of the shortest path changes.


Figure 1: The base graphs G1=(V,E,ω1)4 and G1=(V,E,ω1)5 and the corresponding parametric path lengths across G1=(V,E,ω1)6 under interpolation.
Algorithmic Contributions
The primary contribution is a recursive, divide-and-conquer algorithm that efficiently computes the set of all distinct, nontrivial parametric shortest paths between two vertices as G1=(V,E,ω1)7 progresses through G1=(V,E,ω1)8. This method constructs a data structure—an ordered list of disjoint intervals G1=(V,E,ω1)9, each paired with a corresponding shortest path over that sub-interval.
At each recursive step, the algorithm determines whether the shortest paths at two interval endpoints Gλ0 and Gλ1 remain optimal across Gλ2. If so, a single representative path suffices for the interval (via Theorem~\ref{thm:samesp}). Otherwise, the intersection point Gλ3 of the cost functions for each endpoint's path is identified; here, path optimality may transition, requiring further refinement.
For each discovered breakpoint, modified Dijkstra procedures identify shortest paths that respectively minimize and maximize the cost function slope, efficiently extending the lower envelope only where strictly necessary. Notably, the algorithm only computes paths lying on the actual lower envelope, bypassing the need to enumerate all possible paths.


Figure 2: Before recursion, Gλ4 and Gλ5 intersect at Gλ6, determining a candidate breakpoint for the partitioning of intervals.
Central to this approach is the augmentation of Dijkstra's algorithm so that among ties for equal path length, the slope (as a function of Gλ7) is minimized or maximized. This modification enables lex minimization (or maximization) over Gλ8 tuples for each vertex, where Gλ9 is current path cost and ωλ=(1−λ)ω0+λω10 is slope.
The overall runtime is ωλ=(1−λ)ω0+λω11, where ωλ=(1−λ)ω0+λω12 is the number of breakpoints (i.e., intervals where the shortest path changes). Each path-discriminating event incurs a further Dijkstra computation, and the interval tree construction underpins efficient subsequent queries.
Comparison to Prior Work
Earlier approaches, notably Karp and Orlin [karp1981parametric], compute shortest path trees for each critical ωλ=(1−λ)ω0+λω13, updating these trees as breakpoints are encountered. These methods require ωλ=(1−λ)ω0+λω14 time and do not provide an efficient means to return the actual shortest path for a given ωλ=(1−λ)ω0+λω15—only its cost can be rapidly queried, as the tree traversal remains necessary.
Other works have improved preprocessing time for related parametric path and minimum spanning tree problems, usually via advanced heap or dynamic tree methods [young1991faster, PAgarwal, DEppstein]. However, these either address different parametric models (such as arbitrary real ωλ=(1−λ)ω0+λω16) or minimize other graph objectives.
A notable assertion in this paper is that, for the defined model (edges varying linearly between ωλ=(1−λ)ω0+λω17 and ωλ=(1−λ)ω0+λω18), the total number of relevant shortest path intervals (i.e., ωλ=(1−λ)ω0+λω19) is minimal in the sense that only genuinely necessary breakpoints are computed, and the query time to report both the cost and the explicit path for any λ∈[0,1]0 is λ∈[0,1]1 (where λ∈[0,1]2 is the length of the returned path). This is a substantial improvement over earlier methods which often have query times dependent on λ∈[0,1]3 due to path reconstruction.
Strong Numerical and Theoretical Results
- Algorithmic Complexity: The authors achieve a running time of λ∈[0,1]4 for preprocessing. While λ∈[0,1]5 can be super-polynomial in λ∈[0,1]6 even for planar graphs [gajjar2019lowerbound], the algorithm is output-sensitive and optimal with respect to the number of true lower envelope breakpoints.
- Query Efficiency: A shortest path for a given λ∈[0,1]7 can be retrieved in logarithmic time with respect to the number of breakpoints (plus path length), a substantial practical advantage for real-time or repeated query use cases.
- Correctness (Bold Claim): If the shortest path is identical at both λ∈[0,1]8 and λ∈[0,1]9, it remains so for all s0, obviating further computation—theoretical completeness is established via Theorem~\ref{thm:samesp}.
Practical and Theoretical Implications
Practically, this development enables efficient analysis of systems where edge costs interpolate as a function of a continuous external parameter—scenarios common in network design, sensitivity analysis, and kinetic data structures. Because the data structure supports rapid computation of explicit paths, it is well-suited for interactive applications or design tools in which path structure (rather than merely cost) is of interest.
Theoretically, this formalism refines understanding of the combinatorial and algorithmic complexity induced by parameterized optimization over linearly varying structures, elucidating the boundary between tractable preprocessing and potentially exponential s1. The divide-and-conquer paradigm for isolating only "breakpoint" paths may inspire analogous sparsification techniques for more complex parametric or kinetic graph optimization tasks.
Future Directions
Open questions remain regarding the asymptotic behavior of s2 in specific classes of graphs and whether further improvements in preprocessing or update time are attainable under additional structural assumptions (planarity, sparsity, etc.). Extensions to polynomial or piecewise-linear interpolation, higher-dimensional parameter spaces, or related problems like parametric flows or matchings present natural future research avenues.
Developing data structures that maintain rapid query access under incremental changes to s3 or s4—or that handle edge insertions and deletions—would also significantly expand the practical utility of this approach in dynamic or time-evolving networks.
Conclusion
This paper presents an efficient, output-sensitive algorithm and data structure for enumerating and querying parametric s5–s6 shortest paths in a linearly interpolated directed graph. By leveraging the geometric structure of linear path cost variation and augmenting core shortest path routines, the authors establish both theoretical guarantees and practical superiority over canonical parametric optimization algorithms for this class of problems. The work has both immediate algorithmic relevance and lays groundwork for advances in dynamic and parametric network optimization.