Optimal Time Random Access to Grammar-Compressed Strings in Small Space

Abstract

The random access problem for compressed strings is to build a data structure that efficiently supports accessing the character in position i of a string given in compressed form. Given a grammar of size n compressing a string of size N, we present a data structure using O(n N n N) bits of space that supports accessing position i in O( N) time for ≤ O(1) N. The query time is optimal for polynomially compressible strings, i.e., when n=O(N1-ε).

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…