Longest Common Subsequence: Letters with MID, the LCS Grid and the Traceback
This lesson is part of the course
In this lesson
You split two toy words into letters with MID, fill the longest-common-subsequence grid, read the LCS length, turn it into a similarity score and trace the common letters back.
Buy the course once for $9.99 to unlock every lesson and lab, the final exam and the certificate – lifetime access, no subscription.
Lessons in this course
- Overlapping Subproblems: Counting the Calls of a Naive Recursion Locked
- Bottom-Up Tables: Ways to Climb n Stairs with 1-, 2- or 3-Steps Locked
- Coin Change I: The Fewest Tokens for an Amount, Impossible Amounts & Why Greedy Fails Locked
- Coin Change II: Counting the Ways Token by Token – and Why Loop Order Matters Locked
- 0/1 Knapsack: The Capacity × Item Grid, MAX(Skip, Take) and the Traceback Locked
- Longest Common Subsequence: Letters with MID, the LCS Grid and the Traceback Locked
- Grid Paths & Cheapest Paths: Blocked Squares, Cost Grids and the Way Back Locked
- Capstone: Longest Increasing Subsequence and Brute Force vs Dynamic Programming Locked