Skip to content
Levenshtein distance

File:Levenshtein_distance_animation.gif · Wikimedia Commons · See Wikimedia Commons

EntityQ496939· pop 43· linked from 108 articles

Levenshtein distance

Sign in to save

Also known as edit distance, Levenshtein edit distance

computer science metric for string similarity

Key facts

Class
measuring the difference between two sequences

via Wikipedia infobox

Wikidata facts

Instance of
algorithm
Subclass of
edit distance
Show 6 more facts
maintained by WikiProject
WikiProject Mathematics
discoverer or inventor
Vladimir Levenshtein
publication date
1965-00-00
different from
edit distance
studied by
category theory
Sources (2)

via Wikidata · CC0

~15 min read

Encyclopedic overview

In information theory, linguistics, and computer science, the Levenshtein distance is a string metric for measuring the difference between two sequences. The Levenshtein distance between two words is the minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other. It is named after Soviet mathematician Vladimir Levenshtein, who defined the metric in 1965.

Levenshtein distance may also be referred to as edit distance, although that term may also denote a larger family of distance metrics. It is closely related to pairwise string alignments.

Excerpted from Wikipedia’s “Levenshtein distance” article, available under the CC BY-SA 4.0 licence.