### Levenshtein distance

Today, There is a discussion on Levenshtein distance. How is working, really exciting.

For example, the Levenshtein distance between "kitten" and "sitting" is 3, since the following three edits change one into the other, and there is no way to do it with fewer than three edits:

Online calculator: Levenshtein Distance

But how is this possible. Searching for an algorithm. I found pseudo code

// len_s and len_t are the number of …

**Levenshtein distance**is a string metric for measuring the difference between two sequences. Informally, the Levenshtein distance between two words is the minimum number of single-character edits (i.e. insertions, deletions or substitutions) required to change one word into the otherFor example, the Levenshtein distance between "kitten" and "sitting" is 3, since the following three edits change one into the other, and there is no way to do it with fewer than three edits:

**k**itten →**s**itten (substitution of "s" for "k")sitt**e**n → sitt**i**n (substitution of "i" for "e")sittin → sittin**g**(insertion of "g" at the end).On the surfing found a resource of online calculator for Levenshtein distance.Online calculator: Levenshtein Distance

But how is this possible. Searching for an algorithm. I found pseudo code

// len_s and len_t are the number of …