Making Change Consider the coin system We want to know the minimal number of coins required We could compute such a table in an iterative fashion: cell[i][j]: using coins i or less, how many coins to reach j?
Consider the coins: Compute the array to answer the question, “How many coins will I need”:
Sequence Comparisons -Edit Distance Three types of edit steps: –insert –delete –replace Example: abbc babb –abbc bbc bbb babb (3 steps – delete, replace, insert) –abbc babbc babb (2 steps – insert, delete)
Try to Change mane to mean *mean *I0 I1 I2 I3 I4 m D1 M0 a D2 n D3 e D4