Fully dynamic data structure for LCE queries in compressed space

From MaRDI portal
Publication:4608635

DOI10.4230/LIPICS.MFCS.2016.72zbMATH Open1398.68110arXiv1605.01488OpenAlexW2963197538MaRDI QIDQ4608635FDOQ4608635


Authors: Takaaki Nishimoto, Shunsuke Inenaga, Hideo Bannai, Masayuki Takeda, Tomohiro I Edit this on Wikidata


Publication date: 21 March 2018

Abstract: A Longest Common Extension (LCE) query on a text T of length N asks for the length of the longest common prefix of suffixes starting at given two positions. We show that the signature encoding mathcalG of size w=O(min(zlogNlogM,N)) [Mehlhorn et al., Algorithmica 17(2):183-198, 1997] of T, which can be seen as a compressed representation of T, has a capability to support LCE queries in O(logN+logelllogM) time, where ell is the answer to the query, z is the size of the Lempel-Ziv77 (LZ77) factorization of T, and Mgeq4N is an integer that can be handled in constant time under word RAM model. In compressed space, this is the fastest deterministic LCE data structure in many cases. Moreover, mathcalG can be enhanced to support efficient update operations: After processing mathcalG in O(wfmathcalA) time, we can insert/delete any (sub)string of length y into/from an arbitrary position of T in O((y+logNlogM)fmathcalA) time, where fmathcalA=O(minfracloglogMloglogwlogloglogM,sqrtfraclogwloglogw). This yields the first fully dynamic LCE data structure. We also present efficient construction algorithms from various types of inputs: We can construct mathcalG in O(NfmathcalA) time from uncompressed string T; in O(nloglognlogNlogM) time from grammar-compressed string T represented by a straight-line program of size n; and in O(zfmathcalAlogNlogM) time from LZ77-compressed string T with z factors. On top of the above contributions, we show several applications of our data structures which improve previous best known results on grammar-compressed string processing.


Full work available at URL: https://arxiv.org/abs/1605.01488




Recommendations





Cited In (18)





This page was built for publication: Fully dynamic data structure for LCE queries in compressed space

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4608635)