Jump to content

Talk:Levenshtein distance: Difference between revisions

m
J: change narrative comments to track bug fix
(detailed data is different with bug fix)
m (J: change narrative comments to track bug fix)
Line 81:
{. 1 3 1 2 NB. find if current character matches
1
<./31 1, 1 2 NB. find cheapestedit ofcost previousdelta delete,from insertprevious oredit substitutecosts
1
1 1 1+3 1 2 NB. addfind costedit ofcosts fixingfrom currentadjacent characterstates to cheapestthis previous editstate
4 2 3
<./4 2 3 NB. find cheapest of previous delete, insert or substitute
2
1&{1 3 1 2 NB. retain current delete cost to be used as next substitute cost
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.