Article ID | Journal | Published Year | Pages | File Type |
---|---|---|---|---|
436214 | Theoretical Computer Science | 2009 | 14 Pages |
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(n4logn) 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.
Related Topics
Physical Sciences and Engineering
Computer Science
Computational Theory and Mathematics