The Damerau-Levenshtein distance, named after Frederick Damerau and Vladimir Levenshtein, is a string metric measuring the edit distance between two sequences as the minimum number of insertions, deletions, substitutions of a single character, or transpositions of two adjacent characters required to change one word into the other. It differs from the classical Levenshtein distance specifically by including transpositions among its allowed operations alongside the three classical single-character edits. In his original paper, Damerau reported that in an investigation of spelling errors in an information-retrieval system, more than 80 percent were the result of a single error of one of these four types, and while the metric's original motivation was to measure the distance between human misspellings for applications such as spell checkers, it has since also been used in biology to measure variation between protein sequences.
Facts
Time Complexity
Time Complexity (category)Polynomial Time -- O(n^k) 1 Sources
1. Damerau-Levenshtein distance (Wikipedia)
Wikipedia article body, read for Browse By backfill (w-bbfill-computing6-0927)
Damerau-Levenshtein distance (Wikipedia)
In Group: Edit Distance and Sequence Alignment Algorithms, Lead sectionQuote, In Group: Edit Distance and Sequence Alignment Algorithms, Lead section
is a string metric for measuring the edit distance between two sequences
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.