Published March 27, 2026
| Version v1
Technical note
Open
An O(N) bit-parallel algorithm for the unrestricted Damerau-Levenshtein distance
Description
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.
Files
An O(N) bit-parallel algorithm for the unrestricted Damerau-Levenshtein distance.docx.pdf
Files
(375.2 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:09b9668b1b7e6d007c420981dbcbce9d
|
375.2 kB | Preview Download |
Additional details
Dates
- Copyrighted
-
2022-03-08Company internal release
- Available
-
2026-03-27Updated and published