Damerau-Levenshtein
A string edit distance algorithm that extends Levenshtein distance with the transposition of adjacent characters, computing the minimum number of edits required to make two strings identical. SQL products often use the restricted OSA variant to control memory overhead.
Timeline (last 90 days)
Microsoft is introducing two algorithms, Damerau-Levenshtein edit distance and Jaro-Winkler similarity, into SQL and plans to release them officially across all Microsoft SQL product lines.
The Damerau-Levenshtein algorithm is based on optimal string alignment (OSA) and computes the minimum number of edits needed to make two strings identical, where the edit operations include insertion, deletion, substitution and transposition.
The SQL implementation of Damerau-Levenshtein is a restricted version that supports only a single adjacent-character transposition, because the full algorithm consumes a large amount of memory and is impractical on large datasets.
Frederick Damerau introduced the adjacent-character transposition operation in his 1964 work, forming the prototype of the Damerau-Levenshtein distance.
For Damerau-Levenshtein, the similarity formula is 1 - edit distance / maximum length, then multiplied by 100.
All Facts (5)
The Damerau-Levenshtein algorithm is based on optimal string alignment (OSA) and computes the minimum number of edits needed to make two strings identical, where the edit operations include insertion, deletion, substitution and transposition.
50%UnverifiedThe SQL implementation of Damerau-Levenshtein is a restricted version that supports only a single adjacent-character transposition, because the full algorithm consumes a large amount of memory and is impractical on large datasets.
50%UnverifiedFrederick Damerau introduced the adjacent-character transposition operation in his 1964 work, forming the prototype of the Damerau-Levenshtein distance.
50%UnverifiedFor Damerau-Levenshtein, the similarity formula is 1 - edit distance / maximum length, then multiplied by 100.
50%UnverifiedMicrosoft is introducing two algorithms, Damerau-Levenshtein edit distance and Jaro-Winkler similarity, into SQL and plans to release them officially across all Microsoft SQL product lines.
50%