Self-indexed Text Compression Using Straight-Line Programs [chapter]

Francisco Claude, Gonzalo Navarro
2009 Lecture Notes in Computer Science  
Straight-line programs (SLPs) offer powerful text compression by representing a text T [1, u] in terms of a restricted context-free grammar of n rules, so that T can be recovered in O(u) time. However, the problem of operating the grammar in compressed form has not been studied much. We present a grammar representation whose size is of the same order of that of a plain SLP representation, and can answer other queries apart from expanding nonterminals. This can be of independent interest. We
more » ... extend it to achieve the first grammar representation able of extracting text substrings, and of searching the text for patterns, in time o(n). We also give byproducts on representing binary relations.
doi:10.1007/978-3-642-03816-7_21 fatcat:ffoakvtmlvbqjdbwlpl7c5stai