English

A Unified Algorithm for Accelerating Edit-Distance Computation via Text-Compression

Computational Complexity 2009-02-17 v1 Data Structures and Algorithms

Abstract

We present a unified framework for accelerating edit-distance computation between two compressible strings using straight-line programs. For two strings of total length NN having straight-line program representations of total size nn, we provide an algorithm running in O(n1.4N1.2)O(n^{1.4}N^{1.2}) time for computing the edit-distance of these two strings under any rational scoring function, and an O(n1.34N1.34)O(n^{1.34}N^{1.34}) time algorithm for arbitrary scoring functions. This improves on a recent algorithm of Tiskin that runs in O(nN1.5)O(nN^{1.5}) time, and works only for rational scoring functions. Also, in the last part of the paper, we show how the classical four-russians technique can be incorporated into our SLP edit-distance scheme, giving us a simple Ω(lgN)\Omega(\lg N) speed-up in the case of arbitrary scoring functions, for any pair of strings.

Keywords

Cite

@article{arxiv.0902.2649,
  title  = {A Unified Algorithm for Accelerating Edit-Distance Computation via Text-Compression},
  author = {Danny Hermelin and Gad M. Landau and Shir Landau and Oren Weimann},
  journal= {arXiv preprint arXiv:0902.2649},
  year   = {2009}
}
R2 v1 2026-06-21T12:11:57.291Z