| 1 | Initialize dp[0][0] | (0,0) | N/A | 0 | [[0,_,_,_],[_,_,_,_],[_,_,_,_],[_,_,_,_]] |
| 2 | Initialize first row | (0,1) | N/A | 1 | [[0,1,_,_],[_,_,_,_],[_,_,_,_],[_,_,_,_]] |
| 3 | Initialize first row | (0,2) | N/A | 2 | [[0,1,2,_],[_,_,_,_],[_,_,_,_],[_,_,_,_]] |
| 4 | Initialize first row | (0,3) | N/A | 3 | [[0,1,2,3],[_,_,_,_],[_,_,_,_],[_,_,_,_]] |
| 5 | Initialize first column | (1,0) | N/A | 1 | [[0,1,2,3],[1,_,_,_],[_,_,_,_],[_,_,_,_]] |
| 6 | Initialize first column | (2,0) | N/A | 2 | [[0,1,2,3],[1,_,_,_],[2,_,_,_],[_,_,_,_]] |
| 7 | Initialize first column | (3,0) | N/A | 3 | [[0,1,2,3],[1,_,_,_],[2,_,_,_],[3,_,_,_]] |
| 8 | Compare s1[1]='c' and s2[1]='c' | (1,1) | 'c' vs 'c' | 0 | [[0,1,2,3],[1,0,_,_],[2,_,_,_],[3,_,_,_]] |
| 9 | Compare s1[1]='c' and s2[2]='u' | (1,2) | 'c' vs 'u' | 1 | [[0,1,2,3],[1,0,1,_],[2,_,_,_],[3,_,_,_]] |
| 10 | Compare s1[1]='c' and s2[3]='t' | (1,3) | 'c' vs 't' | 2 | [[0,1,2,3],[1,0,1,2],[2,_,_,_],[3,_,_,_]] |
| 11 | Compare s1[2]='a' and s2[1]='c' | (2,1) | 'a' vs 'c' | 1 | [[0,1,2,3],[1,0,1,2],[2,1,_,_],[3,_,_,_]] |
| 12 | Compare s1[2]='a' and s2[2]='u' | (2,2) | 'a' vs 'u' | 1 | [[0,1,2,3],[1,0,1,2],[2,1,1,_],[3,_,_,_]] |
| 13 | Compare s1[2]='a' and s2[3]='t' | (2,3) | 'a' vs 't' | 2 | [[0,1,2,3],[1,0,1,2],[2,1,1,2],[3,_,_,_]] |
| 14 | Compare s1[3]='t' and s2[1]='c' | (3,1) | 't' vs 'c' | 2 | [[0,1,2,3],[1,0,1,2],[2,1,1,2],[3,2,_,_]] |
| 15 | Compare s1[3]='t' and s2[2]='u' | (3,2) | 't' vs 'u' | 2 | [[0,1,2,3],[1,0,1,2],[2,1,1,2],[3,2,2,_]] |
| 16 | Compare s1[3]='t' and s2[3]='t' | (3,3) | 't' vs 't' | 1 | [[0,1,2,3],[1,0,1,2],[2,1,1,2],[3,2,2,1]] |