Computing Longest Common Substring and All Palindromes from Compressed Strings [chapter]

Wataru Matsubara, Shunsuke Inenaga, Akira Ishino, Ayumi Shinohara, Tomoyuki Nakamura, Kazuo Hashimoto
SOFSEM 2008: Theory and Practice of Computer Science  
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 SLPcompressed 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
more » ... that solve these problems in O(n 4 log n) time with O(n 3 ) space, and in O(n 4 ) time with O(n 2 ) space, respectively, where n is the size of the input SLP-compressed strings.
doi:10.1007/978-3-540-77566-9_31 dblp:conf/sofsem/MatsubaraIISNH08 fatcat:xnnclbg2mzcanbgn23iteuj7fy