Purdue University Fundamental Algorithms (Fall 2026)
Professor Kent Quanrud · Purdue University · 20 lectures with notes
Every lecture with its full transcript and chapters, and one search across all 20 lectures.
Randomized Searching and Sorting
Linearity of expectation turns complex randomized algorithms into tractable analyses, and conditional expectation can remove randomness while preserving a 3-SAT guarantee.
Lazy data structures
Amortized analysis makes simple data structures practical by proving that occasional expensive operations are paid for across a sequence.
Network Flow
Edmonds-Karp finds maximum flow in O(M²N) by repeatedly augmenting along shortest residual paths.
Applications of Flows and Cuts
Flow and cut networks turn matching, scheduling, project selection, and graph-orientation problems into tractable optimization models.
Spanning Trees
A good-edge characterization explains why Kruskal's, Borůvka's, and Prim's algorithms produce minimum spanning trees.
Packing and Covering Paths
Residual-graph augmentations make greedy path packing optimal and reveal a minimum S-T cut.
NP-Complete
Polynomial-time verification and reductions link many natural search problems into the NP-complete class, leaving P versus NP unresolved.
Independent set
Independent set is hard on general graphs but efficiently solvable on intervals and trees by exploiting their structure.
The longest path
Longest path is tractable on DAGs but Hamiltonian path is hard on general graphs; structure determines which case applies.
2-SAT and Max 2-SAT
2-SAT is solvable in linear time via strongly connected components, while Max 2-SAT is NP-hard through a score-separating reduction from 3-SAT.
Subset Sum and the Secret Language of Numbers
A digit-by-digit reduction from 3-SAT shows how subset sum numbers can encode Boolean constraints.
SAT: A different kind of search problem
Auxiliary variables reduce general Boolean SAT and circuit SAT to 3-SAT without polynomial-size blowup.
Negative-length shortest paths and all-pairs shortest paths
Bounded-edge dynamic programming handles negative cycles, while Floyd–Warshall computes all-pairs shortest paths in O(n³).
Searching and Sorting Graphs
DFS finishing times and reversed edges combine to find every strongly connected component in linear time.
Shortest Paths
BFS and Dijkstra solve shortest paths efficiently; expanded-state graphs turn edge-count constraints into ordinary shortest-path problems.
Edit Distance and Matrix Chain Multiplication
Memoization turns recursive edit distance into O(mn), and interval splits solve matrix-chain ordering in O(k³).
Selection and closest pair
Groups of five yield a guaranteed linear-time selection algorithm; geometric packing makes planar closest pair solvable in O(n log n).
Multiplication and Fast Fourier Transforms
Karatsuba multiplication and the FFT show how algebraic reformulations turn quadratic work into faster divide-and-conquer algorithms.
Searching and sorting
Merge sort achieves O(n log n), matching the Ω(n log n) lower bound for comparison-based sorting.
Induction and recursion
A clear recursive specification turns induction into a practical method for designing and proving algorithms.