paper

Document Listing on Repetitive Collections with Guaranteed Performance

arXiv:1707.06374

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 $\ndoc>0$ strings where it appears in time $O(m\log^{1+ε} N \cdot \ndoc)$, for any constant (and tells in time if $\ndoc=0$). 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 .

arXiv commentExtended version of CPM'17 paper