Abstract

Let a text T[1..n]T[1..n] be the only string generated by a context-free grammar with gg (terminal and nonterminal) symbols, and of size GG (measured as the sum of the lengths of the right-hand sides of the rules). Such a grammar, called a grammar-compressed representation of TT, can be encoded using essentially Glg⁡gG\lg g bits. We introduce the first grammar-compressed index that uses O(Glg⁡n)O(G\lg n) bits and can find the occocc occurrences of patterns P[1..m]P[1..m] in time O((m2+occ)lg⁡G)O((m^2+occ)\lg G). We implement the index and demonstrate its practicality in comparison with the state of the art, on highly repetitive text collections.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.