levenshtein ( old new -- n )
LCS, diffing and distance

Prev:lcs-diff ( old new -- diff )
Next:insert


Vocabulary
lcs

Inputs
olda sequence
newa sequence


Outputs
nthe Levenshtein distance


Word description
Calculates the Levenshtein distance between old and new, that is, the minimal number of changes from the old sequence to the new one, in terms of deleting, inserting and replacing characters.

Definition