Why it matters
Edit distance is foundational. Spell-check, diff, DNA alignment use.
Advertisement
The architecture
DP table dp[i][j].
Insert, delete, replace.
O(nm) time.
Advertisement
How it works end to end
Levenshtein 1965.
Row-only O(min).
Ukkonen for small D.