Second attempt at explanation:
Suppose we find the distance between the word length-m and the length-n word. Let matrix entries are indexed at [0, m] & times; [0, n], where the entry (i, j) represents the editing distance between the prefix length-i of the word length-m and the prefix length-j of the word length-n.
(0, 0) (m, n) , , -1 -1 -0 -1 , j. , , A* H (i, j) = | (m - ) - (n - j) |. , A * d. :
o t h e r w o r d
t * * *
h * * *
e * * *
w * * *
o * * *
r * * *
d * * *
:
(i, j) | - j |, , . , (i, j) | - j | β€ d,
o t h e r w o r d
t * * *
h * * * *
e * * * * *
w * * * * *
o * * * * *
r * * * * *
d * * * * *
d = 2. , , d. , β€ d , d + 1, , .
,
o t h e r w o r d
t * * *
h * * *
e * * *
w * * *
o * * *
r * * *
d * * *
.