LCS approximation via embedding into locally non-repetitive strings

G. M. Landau, A. Levy, I. Newman

Research output: Contribution to journalArticlepeer-review

Abstract

A classical measure of similarity between strings is the length of the longest common subsequence (LCS) between the two given strings. The search for efficient algorithms for finding the LCS has been going on for more than three decades. To date, all known algorithms may take quadratic time (shaved by logarithmic factors) to find large LCS. In this paper, the problem of approximating LCS is studied, while focusing on the hard inputs for this problem, namely, approximating LCS of near-linear size in strings over a relatively large alphabet (of size at least nε for some constant ε > 0, where n is the length of the string). We show that, any given string over a relatively large alphabet can be embedded into a locally non-repetitive string. This embedding has a negligible additive distortion for strings that are not too dissimilar in terms of the edit distance. We also show that LCS can be efficiently approximated in locally-non-repetitive strings. Our new method (the embedding together with the approximation algorithm) gives a strictly sub-quadratic time algorithm (i.e., of complexity O(n 2-ε) for some constant ε) which can find common subsequences of linear (and near linear) size that cannot be detected efficiently by the existing tools.

Original languageAmerican English
Pages (from-to)705-716
Number of pages12
JournalInformation and Computation
Volume209
Issue number4
DOIs
StatePublished - Apr 2011

Keywords

  • Embedding
  • LCS approximation
  • String algorithms

All Science Journal Classification (ASJC) codes

  • Theoretical Computer Science
  • Information Systems
  • Computer Science Applications
  • Computational Theory and Mathematics

Fingerprint

Dive into the research topics of 'LCS approximation via embedding into locally non-repetitive strings'. Together they form a unique fingerprint.

Cite this