LCS approximation via embedding into locally non-repetitive strings

  • Authors:
  • G. M. Landau;A. Levy;I. Newman

  • Affiliations:
  • Department of Computer Science, University of Haifa, Haifa 31905, Israel and Department of Computer Science and Engineering, NYU-Poly, Six MetroTech Center, Brooklyn, NY 11201-3840, USA;Department of Software Engineering, Shenkar College, 12 Anna Frank, Ramat-Gan, Israel and CRI, University of Haifa, Mount Carmel, Haifa 31905, Israel;Department of Computer Science, University of Haifa, Haifa 31905, Israel

  • Venue:
  • Information and Computation
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

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^@e for some constant @e0, 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^-^@e) for some constant @e) which can find common subsequences of linear (and near linear) size that cannot be detected efficiently by the existing tools.