Save this video — free

Edit Distance and Matrix Chain Multiplication

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

Edit Distance and Matrix Chain Multiplication Watch on YouTube →

Overview

Kent Quanrud develops two dynamic-programming algorithms from conservative recursive specifications: edit distance and matrix-chain multiplication. Memoizing the edit-distance suffix pairs yields an O(mn) algorithm, while splitting matrix intervals at every possible final multiplication yields an O(k³) algorithm for k matrices.

Key takeaways

Chapters

0:00 String Distance Applications: Git Diff and DNA Sequences
3:15 Hamming Distance and Error-Correcting Codes
5:45 Edit Distance: Insertions, Deletions, and Replacements
7:00 Metric Properties and the Triangle Inequality
11:14 Why Edit Distance Models Misalignment Better Than Hamming Distance
14:00 Searching for a Correct Recursive Edit-Distance Algorithm
19:27 Edit-Distance Specification and Empty-String Base Cases
23:17 Three First-Character Choices for Edit Distance
30:00 The Exponential Recursion and Its Repeated Subproblems
40:30 Memoizing Suffix Pairs Produces an O(mn) Algorithm
45:00 Dynamic-Programming Solution Expectations and Proofs
55:21 Matrix Multiplication Cost Depends on Parenthesization
1:00:00 Parenthesization Trees Reveal Matrix-Chain Subproblems
1:07:00 Interval Recurrence and the O(k³) Matrix-Chain Algorithm

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.