Overview
Eppstein K Shortest Paths is a shortest path method for k shortest paths. It works by building a sidetrack structure that enumerates paths after one shortest-path tree.
Eppstein K Shortest Paths addresses k shortest paths by building a sidetrack structure that enumerates paths after one shortest-path tree.
Compact metadata for implementation and discovery.
Eppstein K Shortest Paths is a shortest path method for k shortest paths. It works by building a sidetrack structure that enumerates paths after one shortest-path tree.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n log n)
Worst
O(n^2)
Space
O(n)
Show building a sidetrack structure that enumerates paths after one shortest-path tree on a small k shortest paths example.
Eppstein K Shortest Paths operates in O(n log n) time and O(n) space within the Shortest Path family. Often compared with Visibility Graph Roadmap and 0-1 BFS.
What each reference supports for this entry.
Original Eppstein reference for finding k shortest paths with sidetrack heaps.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Pathfinding · Extended
Dial's Algorithm and Eppstein K Shortest Paths are practical alternatives within shortest paths with small integer weights, with different assumptions and tradeoffs.
Compare with thisPathfinding · Extended
Eppstein and Yen algorithms both enumerate k shortest loopless paths, using different candidate-path structures.
Compare with thisEppstein and Yen algorithms both enumerate k shortest loopless paths, using different candidate-path structures.