Skip to main content
QUICK REVIEW

[Paper Review] A Sidetrack-Based Algorithm for Finding the k Shortest Simple Paths in a Directed Graph

Denis Kurz, Petra Mutzel|arXiv (Cornell University)|Jan 12, 2016
Data Management and AlgorithmsComputer Science1 references6 citations
TL;DR

This paper presents a novel sidetrack-based algorithm for finding the k shortest simple paths in directed graphs, leveraging a single shortest path tree and efficient path enumeration to achieve near-linear time per path in well-behaved cases. The method outperforms existing algorithms by up to an order of magnitude on random and road network graphs, with significantly lower running time dispersion and predictable performance.

ABSTRACT

We present an algorithm for the k shortest simple path problem on weighted directed graphs (kSSP) that is based on Eppstein's algorithm for a similar problem in which paths are allowed to contain cycles. In contrast to most other algorithms for kSSP, ours is not based on Yen's algorithm and does not solve replacement path problems. Its worst-case running time is on par with state-of-the-art algorithms for kSSP. Using our algorithm, one may find O(m) simple paths with a single shortest path tree computation and O(n + m) additional time per path in well-behaved cases, where n is the number of nodes and m is the number of edges. Our computational results show that on random graphs and large road networks, these well-behaved cases are quite common and our algorithm is faster than existing algorithms by an order of magnitude. Further, the running time is far better predictable due to very small dispersion.

Motivation & Objective

  • To develop a more efficient and predictable algorithm for the k shortest simple path (k SSP) problem in directed, weighted graphs.
  • To avoid reliance on Yen’s algorithm or replacement path computation, which incur high overhead in worst-case scenarios.
  • To reduce the number of shortest path tree computations and Dijkstra calls while maintaining correctness and simplicity of paths.
  • To achieve near-linear time per path in well-behaved cases, with predictable and low-dispersion running times.
  • To outperform existing algorithms like NC and SB-r in both speed and robustness across varying graph densities and real-world road networks.

Proposed method

  • The algorithm builds a single shortest path (SP) tree from the source and uses it to guide path enumeration via a sidetrack-based approach.
  • It introduces two variants: SB-r (recompute SP tree for each path) and SB-o (optimize path enumeration by reusing the SP tree).
  • The method uses a path graph data structure similar to Eppstein’s, but adapted to ensure only simple paths are generated.
  • It efficiently checks for path simplicity using node classification (red, yellow, green) based on the reversed SP tree from the target.
  • The algorithm limits Dijkstra’s search to only relevant nodes (e.g., yellow nodes) to reduce computation time per path.
  • It achieves O(m) simple paths with O(m+n) additional time per path after a single SP tree computation in well-behaved cases.

Experimental results

Research questions

  • RQ1Can a sidetrack-based algorithm achieve faster and more predictable k SSP computation than Yen-based or replacement path methods?
  • RQ2Does reusing a single SP tree across multiple paths reduce total computation time despite recomputation overhead?
  • RQ3How does the algorithm’s performance scale with graph density and size on real-world road networks?
  • RQ4To what extent does the algorithm reduce the number of Dijkstra calls and node polls compared to existing methods?
  • RQ5Can the algorithm maintain low running time dispersion, enabling better performance prediction?

Key findings

  • SB-o is up to 12 times faster than NC on the largest road network (Florida), with median running times significantly below NC’s 90th percentile.
  • SB-o reduces the number of Dijkstra calls by orders of magnitude compared to NC, with median polls 10× lower on average.
  • The 90th percentile (Q.9) running time of SB-o is always within a factor of 1.87 of its median, compared to ratios exceeding 6 for NC on large graphs.
  • SB-o achieves a speedup of 4× on New York and 12× on Florida compared to NC, with minimal performance degradation as graph density increases.
  • The algorithm’s running time is highly predictable, with low dispersion, due to efficient use of the SP tree and restricted search space via node classification.
  • For sparse graphs, SB-o is twice as fast as SB-r, and both outperform NC in both speed and robustness across all tested graph sizes and densities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.