A metric for measuring the amount of difference between two sequences. The Levenshtein distance allows deletion, insertion and substitution.
In information theory and computer science, the Levenshtein distance
is a metric for measuring the amount of difference between two sequences. The Levenshtein distance
between two strings is defined as the minimum number of edits needed to transform one string into the other. It is named after Vladimir Levenshtein, who considered this distance in 1965.
Levenshtein distance is a specific algorithm of edit distance algorithms.
References:
Wikipedia
RosettaCode
Edit Distance (Wikipedia)
Hirschberg's algorithm (Wikipedia)