Edit distance between kitten and sitting: 3
Edit distance between kitten and sitting: 3
Each cell holds the distance between a prefix of kitten and a prefix of sitting. The shaded run from the top left to the bottom right is one optimal alignment; where the table has ties there are others, and this one breaks them towards the diagonal. 56 cells, 56 held at once.
Drawn at 700 × 330, wide on the page.
Everything above is what dp-grid returns with no arguments; the caption is the
generator's own, computed from the numbers in the drawing rather than written beside it.
17 essays call
dp-grid. The drawing above is what it returns with no arguments at all; every
call below passes it something, because a placement that passes nothing draws whichever
member of the family the generator happens to default to rather than the one its essay
argues about — which is what optcheck and figfill exist to catch.
Where it is called
Changing this generator changes every one of these figures.