Document Listing on Repetitive Collections with Guaranteed Performance
Abstract
We consider document listing on string collections, that is, finding in which strings a given pattern appears. In particular, we focus on repetitive collections: a collection of size over alphabet is composed of copies of a string of size , and edits are applied on ranges of copies. We introduce the first document listing index with size , precisely bits, and with useful worst-case time guarantees: Given a pattern of length , the index reports the strings where it appears in time , for any constant (and tells in time if ). Our technique is to augment a range data structure that is commonly used on grammar-based indexes, so that instead of retrieving all the pattern occurrences, it computes useful summaries on them. We show that the idea has independent interest: we introduce the first grammar-based index that, on a text with a grammar of size , uses bits and counts the number of occurrences of a pattern in time , for any constant . We also give the first index using bits, where is parsed by Lempel-Ziv into phrases, counting occurrences in time .
Cite
@article{arxiv.1707.06374,
title = {Document Listing on Repetitive Collections with Guaranteed Performance},
author = {Gonzalo Navarro},
journal= {arXiv preprint arXiv:1707.06374},
year = {2018}
}
Comments
Extended version of CPM'17 paper