Dynamic Programming Formula
Divide a problem into a polynomial number of smaller subproblems Solve subproblem, recording its answer in an array Do a case analysis where each case uses the subproblems in a different way Compare the cases to find the optimal solution for the current problem
1
String Similarity
How similar are two strings?
- currance
- ccurrence
2-1
String Similarity
How similar are two strings?
- currance
- ccurrence
6 mismatches, 1 gap
- c u
r r a n c e
- c c
u r r e n c e