Locally Consistent Parsing for Text Indexing in Small Space
Abstract
We consider two closely related problems of text indexing in a sub-linear working space. The first problem is the Sparse Suffix Tree (SST) construction of a set of suffixes using only words of space. The second problem is the Longest Common Extension (LCE) problem, where for some parameter , the goal is to construct a data structure that uses words of space and can compute the longest common prefix length of any pair of suffixes. We show how to use ideas based on the Locally Consistent Parsing technique, that was introduced by Sahinalp and Vishkin [STOC '94], in some non-trivial ways in order to improve the known results for the above problems. We introduce new Las-Vegas and deterministic algorithms for both problems. We introduce the first Las-Vegas SST construction algorithm that takes time. This is an improvement over the last result of Gawrychowski and Kociumaka [SODA '17] who obtained time for Monte-Carlo algorithm, and time for Las-Vegas algorithm. In addition, we introduce a randomized Las-Vegas construction for an LCE data structure that can be constructed in linear time and answers queries in time. For the deterministic algorithms, we introduce an SST construction algorithm that takes time (for ). This is the first almost linear time, , deterministic SST construction algorithm, where all previous algorithms take at least time. For the LCE problem, we introduce a data structure that answers LCE queries in time, with construction time (for ). This data structure improves both query time and construction time upon the results of Tanimura et al. [CPM '16].
Cite
@article{arxiv.1812.00359,
title = {Locally Consistent Parsing for Text Indexing in Small Space},
author = {Or Birenzwige and Shay Golan and Ely Porat},
journal= {arXiv preprint arXiv:1812.00359},
year = {2020}
}
Comments
Extended abstract to appear is SODA 2020