The DP cell (i, j) is the edit distance between the first i chars of A and first j chars of B. Watch the grid fill, then the traceback color each step as match / substitute / insert / delete.
junior.md for the fill rule and middle.md for the "edit distance = shortest path in this grid" view.