Levenshteintávolság
Levenshteintávolság, often referred to as edit distance, is a metric for measuring the difference between two sequences. It is defined as the minimum number of single-character edits—insertions, deletions, or substitutions—required to change one word into the other. For example, the Levenshteintávolság between "kitten" and "sitting" is 3 because you can change "kitten" to "sitting" by: 1. substituting 'k' with 's', 2. substituting 'e' with 'i', and 3. appending 'g'.
The concept was introduced by Vladimir Levenshtein in 1965. The algorithm to calculate Levenshteintávolság typically uses
Levenshteintávolság has numerous applications in fields such as natural language processing, spell checking, DNA sequencing, and