Near-Optimal Search Time in δ-Optimal Space, and Vice Versa
Abstract
Two recent lower bounds on the compressibility of repetitive sequences, δ γ, have received much attention. It has been shown that a length-n string S over an alphabet of size σ can be represented within the optimal O(δn σδ n) space, and further, that within that space one can find all the occ occurrences in S of any length-m pattern in time O(m n + occ ε n) for any constant ε>0. Instead, the near-optimal search time O(m+(occ+1)ε n) has been achieved only within O(γnγ) space. Both results are based on considerably different locally consistent parsing techniques. The question of whether the better search time could be supported within the δ-optimal space remained open. In this paper, we prove that both techniques can indeed be combined to obtain the best of both worlds: O(m+(occ+1)ε n) search time within O(δn σδ n) space. Moreover, the number of occurrences can be computed in O(m+2+εn) time within O(δn σδ n) space. We also show that an extra sublogarithmic factor on top of this space enables optimal O(m+occ) search time, whereas an extra logarithmic factor enables optimal O(m) counting time.
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.