levenshtein-transformation
v0.0.0
Published
Transform one string into another using the operations in the Levenshtein edit distance computation.
Downloads
3
Maintainers
Readme
levenshtein-transformation
Transform one string into another using the operations in the Levenshtein edit distance computation.
Uses the Wagner-Fisher algorithm, which is the really common dynamic programming approach. Runs in O(mn) and uses O(mn) memory. Outputs the set of Levenshtein operations to transform one string into another.
Includes a method to apply a sequence of Levenshtein operations to one string to transform it to the other. (Todo?) Optionally can output the intermediate sequence.