-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reimplement damerau levenshtein distance
This reimplements the damerau levenshtein distance based on the paper `Linear space string correction algorithm using the Damerau-Levenshtein distance` from Chunchun Zhao and Sartaj Sahni. In addition it uses a custom hashmap which is both smaller and faster for this workload. This leads to the following improvements: - reduced memory usage from O(N*M) to O(N+M) - reduces runtime in our own benchmark by more than 70% - reduces binary size by more than 25%
- Loading branch information
1 parent
f9eea82
commit 9d0a950
Showing
2 changed files
with
265 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters