English

Fast, Small, and Simple Document Listing on Repetitive Text Collections

Data Structures and Algorithms 2019-02-21 v1 Information Retrieval Information Theory math.IT

Abstract

Document listing on string collections is the task of finding all documents where a pattern appears. It is regarded as the most fundamental document retrieval problem, and is useful in various applications. Many of the fastest-growing string collections are composed of very similar documents, such as versioned code and document collections, genome repositories, etc. Plain pattern-matching indexes designed for repetitive text collections achieve orders-of-magnitude reductions in space. Instead, there are not many analogous indexes for document retrieval. In this paper we present a simple document listing index for repetitive string collections of total length nn that lists the ndocndoc distinct documents where a pattern of length mm appears in time O(m+ndoclogn)\mathcal{O}(m+ndoc \cdot \log n). We exploit the repetitiveness of the document array (i.e., the suffix array coarsened to document identifiers) to grammar-compress it while precomputing the answers to nonterminals, and store them in grammar-compressed form as well. Our experimental results show that our index sharply outperforms existing alternatives in the space/time tradeoff map.

Keywords

Cite

@article{arxiv.1902.07599,
  title  = {Fast, Small, and Simple Document Listing on Repetitive Text Collections},
  author = {Dustin Cobas and Gonzalo Navarro},
  journal= {arXiv preprint arXiv:1902.07599},
  year   = {2019}
}
R2 v1 2026-06-23T07:46:06.694Z