Save this video — free

Negative-length shortest paths and all-pairs shortest paths

Kent Quanrud · 1:16:14 · Watch on YouTube

Negative-length shortest paths and all-pairs shortest paths Watch on YouTube →

Overview

Kent Quanrud develops a dynamic-programming approach to shortest paths with negative edge lengths, first bounding walks by their number of edges and then using the resulting Bellman–Ford-style relaxation to identify negative-infinity distances. For all-pairs shortest paths, he compares a doubling-based recurrence running in O(n³ log n) with Floyd–Warshall’s O(n³) recurrence, and previews Johnson’s algorithm as a way to handle negative edges more efficiently.

Key takeaways

Chapters

0:00 Why Dijkstra’s Distance Ordering Fails with Negative Edges
4:20 Negative Cycles Make Walk Distances Unbounded
7:17 Finite Shortest-Walk Distances Are Attained by Paths
15:20 Why Repeatedly Revisiting Improved Vertices Can Be Slow
23:24 Bounded-Edge Walks Provide a Progress Measure
28:48 The Bellman–Ford-Style Relaxation Recurrence
34:41 Running Time and the n−1-Edge Bound
38:56 Detecting Negative-Infinity Distances on Round n
43:02 Improvements Propagate Along Outgoing Edges
49:30 Reachability Marks Every Negative-Infinity Destination
53:12 Extending Single-Source Relaxation to All Pairs
55:08 All-Pairs Dynamic Programming with Bounded Edge Counts
58:14 Doubling the Edge Limit to Reduce Recurrence Rounds
1:03:03 Floyd–Warshall: Restricting Intermediate Vertices
1:08:00 Floyd–Warshall’s O(n³) Recurrence and Johnson Preview

Keep these chapters and the full searchable transcript in your own library.

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Kent Quanrud.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.