Edit distance for a run-length-encoded string and an uncompressed string

  • Authors:
  • J. J. Liu;G. S. Huang;Y. L. Wang;R. C. T. Lee

  • Affiliations:
  • Department of Information Management, National Taiwan University of Science and Technology, Taipei, Taiwan;Department of Computer Science and Information Engineering, National Chi Nan University, Nantou, Taiwan;Department of Information Management, National Taiwan University of Science and Technology, Taipei, Taiwan and Department of Computer Science and Information Engineering, National Chi Nan Universi ...;Department of Computer Science and Information Engineering, National Chi Nan University, Nantou, Taiwan

  • Venue:
  • Information Processing Letters
  • Year:
  • 2008

Quantified Score

Hi-index 0.89

Visualization

Abstract

We propose a new algorithm for computing the edit distance of an uncompressed string against a run-length-encoded string. For an uncompressed string of length n and a compressed string with M runs, the algorithm computes their edit distance in time O(Mn). This result directly implies an O(min{mN,Mn}) time algorithm for strings of lengths m and n with M and N runs, respectively. It improves the previous best known time bound O(mN+Mn).