This algorithm computes edit distance in O(N) time, highlighting significant efficiency improvements over traditional methods.
A bit-parallel algorithm for computing the unrestricted Damerau-Levenshtein edit distance that runs in O(N) time for patterns of length M ≤ 64, where N is the length of the query string. The algorithm improves on the state-of-the-art O(M·N) time complexity by exploiting 64-bit CPU word-level parallelism to process all M pattern positions simultaneously. The paper provides a proof of correctness through four lemmas establishing when transpositions need to be considered, and benchmarks demonstrating speedups of up to 65.7x over the reference O(M·N) implementation on an Intel Core Ultra 7 258V processor.
No takes yet. Share an insight, caveat, or question.
Heikki Vesalainen (2022) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: