Grammar Index By Induced Suffix Sorting
Abstract
Pattern matching is the most central task for text indices. Most recent indices leverage compression techniques to make pattern matching feasible for massive but highly-compressible datasets. Within this kind of indices, we propose a new compressed text index built upon a grammar compression based on induced suffix sorting [Nunes et al., DCC'18]. We show that this grammar exhibits a locality sensitive parsing property, which allows us to specify, given a pattern , certain substrings of , called cores, that are similarly parsed in the text grammar whenever these occurrences are extensible to occurrences of . Supported by the cores, given a pattern of length , we can locate all its occurrences in a text of length within time, where is the set of all characters and non-terminals, is the number of occurrences, and is the number of occurrences of a chosen core of in the right hand side of all production rules of the grammar of . Our grammar index requires words of space and can be built in time using working space, where is the sum of the right hand sides of all production rules. We underline the strength of our grammar index with an exhaustive practical evaluation that gives evidence that our proposed solution excels at locating long patterns in highly-repetitive texts.
Cite
@article{arxiv.2105.13744,
title = {Grammar Index By Induced Suffix Sorting},
author = {Tooru Akagi and Dominik Köppl and Yuto Nakashima and Shunsuke Inenaga and Hideo Bannai and Masayuki Takeda},
journal= {arXiv preprint arXiv:2105.13744},
year = {2021}
}
Comments
Our implementation is available at https://github.com/TooruAkagi/GCIS_Index