mismatches. This can be obtained simply by removing all diagonal edges
fromthe edit graph whose characters do not match, thus transforming it into
a graph like that shown in figure 6.15. We further illustrate the relationship
between the Manhattan Tourist problem and the LCS Problem by showing
that these two problems lead to very similar recurrences.
Define si,j to be the length of an LCS between v1 . . . vi, the i-prefix of v
and w1 . . .wj , the j-prefix of w. Clearly, si,0 = s0,j = 0 for all 1 i n and