Edit distance (Levenshtein)

medium

Up is a deletion, left an insertion, diagonal a replacement - free when the characters match. The traceback turns the number into an actual edit script.

Worst O(m × n)Space O(m × n), or O(min(m,n)) with rolling rows
Loading the edit distance (levenshtein) engine…

Where to go next