Skip to content
SparkTime, home

Tagged #shortest path

GuideTechnology

24 min read

Shortest Paths and Topological Sorting

When BFS is enough and when it is not, Dijkstra's algorithm with a priority queue and its non-negative-weight limit, a glance at Bellman-Ford, and topological sorting with Kahn's algorithm and DFS for dependency order, including how to detect impossible orders.