Save this video — free

The longest path

Kent Quanrud · 1:13:17 · Watch on YouTube

The longest path Watch on YouTube →

Overview

Kent Quanrud contrasts longest-path algorithms on directed acyclic graphs (DAGs) with the hardness of Hamiltonian path in general directed and undirected graphs. He derives a cached recurrence running in O(V+E) for DAGs, then sketches reductions from 3SAT to directed Hamiltonian path and from directed to undirected Hamiltonian path using variable ladders, clause detours, and in/out vertex gadgets. The lecture also connects Hamiltonian path to Hamiltonian cycle and shows how a general graph coin-collection problem can be reduced to a DAG problem by collapsing strongly connected components.

Key takeaways

Chapters

0:00 Why Simple Problems Can Encode SAT
4:02 Longest Path, Hamiltonian Path, and Three Graph Settings
10:03 DAG Longest Walk via a Cached Recurrence
16:39 Why Hamiltonian Path Makes General Directed Graphs Hard
22:00 Variable Ladders Encode True-or-False Assignments
27:20 Clause Vertices Become Detours Along Variable Rungs
36:00 Proving the 3SAT-to-Hamiltonian-Path Reduction
43:03 Why Undirected Hamiltonian Path Needs a New Gadget
50:05 Split Each Directed Vertex into In and Out Copies
56:40 Reading Hamiltonian Paths from the In-Out Construction
59:25 Hamiltonian Cycle and the Cost of Endpoint Choices
1:03:27 Turn Hamiltonian Path into Hamiltonian Cycle with a Supervertex
1:07:10 Coin Collection on Graphs and the Hidden DAG
1:09:00 Strongly Connected Components Reduce Coin Collection to a DAG

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.