Computing longest common substring and all palindromes from compressed strings

  • Authors:
  • Wataru Matsubara;Shunsuke Inenaga;Akira Ishino;Ayumi Shinohara;Tomoyuki Nakamura;Kazuo Hashimoto

  • Affiliations:
  • Graduate School of Information Science, Tohoku University, Japan;Department of Computer Science and Communication Engineering, Kyushu University, Japan;Graduate School of Information Science, Tohoku University, Japan;Graduate School of Information Science, Tohoku University, Japan;Graduate School of Information Science, Tohoku University, Japan;Graduate School of Information Science, Tohoku University, Japan

  • Venue:
  • SOFSEM'08 Proceedings of the 34th conference on Current trends in theory and practice of computer science
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

This paper studies two problems on compressed strings described in terms of straight line programs (SLPs). One is to compute the length of the longest common substring of two given SLP-compressed strings, and the other is to compute all palindromes of a given SLP-compressed string. In order to solve these problems efficiently (in polynomial time w.r.t. the compressed size) decompression is never feasible, since the decompressed size can be exponentially large. We develop combinatorial algorithms that solve these problems in O(n4 log n) time with O(n3) space, and in O(n4) time with O(n2) space, respectively, where n is the size of the input SLP-compressed strings.