TY - JOUR
T1 - An Efficient Algorithm to Test Square-Freeness of Strings Compressed by Balanced Straight Line Program
AU - Matsubara, Wataru
AU - Inenaga, Shunsuke
AU - Shinohara, Ayumi
N1 - Publisher Copyright:
© 2008 Structure-Based Compression of Complex Massive Data. All Rights Reserved.
PY - 2008
Y1 - 2008
N2 - In this paper we study the problem of deciding whether a given compressed string contains a square. A string x is called a square if x = zz and z = ukimplies k = 1 and u = z. A string w is said to be square-free if no substrings of w are squares. Many efficient algorithms to test if a given string is square-free, have been developed so far. However, very little is known for testing square-freeness of a given compressed string. In this paper, we give an O(max(n2; n log2N))-time O(n2)-space solution to test square-freeness of a given compressed string, where n and N are the size of a given compressed string and the corresponding decompressed string, respectively. Our input strings are compressed by balanced straight line program (BSLP). We remark that BSLP has exponential compression, that is, N = O(2n). Hence no decompress-then-test approaches can be better than our method in the worst case.
AB - In this paper we study the problem of deciding whether a given compressed string contains a square. A string x is called a square if x = zz and z = ukimplies k = 1 and u = z. A string w is said to be square-free if no substrings of w are squares. Many efficient algorithms to test if a given string is square-free, have been developed so far. However, very little is known for testing square-freeness of a given compressed string. In this paper, we give an O(max(n2; n log2N))-time O(n2)-space solution to test square-freeness of a given compressed string, where n and N are the size of a given compressed string and the corresponding decompressed string, respectively. Our input strings are compressed by balanced straight line program (BSLP). We remark that BSLP has exponential compression, that is, N = O(2n). Hence no decompress-then-test approaches can be better than our method in the worst case.
UR - http://www.scopus.com/inward/record.url?scp=85174505427&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85174505427&partnerID=8YFLogxK
M3 - Conference article
AN - SCOPUS:85174505427
SN - 1862-4405
VL - 8261
JO - Dagstuhl Seminar Proceedings
JF - Dagstuhl Seminar Proceedings
T2 - Structure-Based Compression of Complex Massive Data 2008
Y2 - 22 June 2008 through 27 June 2008
ER -