Levenshtein distance: Difference between revisions
Content added Content deleted
imported>Thebeez |
imported>Thebeez |
||
Line 6,252: | Line 6,252: | ||
For c@ = 0 To Len(a@) - 1 |
For c@ = 0 To Len(a@) - 1 |
||
' calculate |
' calculate @v() from @u() |
||
@v(0) = c@ + 1 |
@v(0) = c@ + 1 |
||
Line 6,268: | Line 6,268: | ||
Return (@v(Len(b@))) |
Return (@v(Len(b@))) |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
=={{header|Vala}}== |
=={{header|Vala}}== |
||
<syntaxhighlight lang="vala">class LevenshteinDistance : Object { |
<syntaxhighlight lang="vala">class LevenshteinDistance : Object { |