Optimal Dynamic Sequence Representations
Abstract
We describe a data structure that supports access, rank and select queries, as well as symbol insertions and deletions, on a string S[1,n] over alphabet [1..σ] in time O( n/ n), which is optimal even on binary sequences and in the amortized sense. Our time is worst-case for the queries and amortized for the updates. This complexity is better than the best previous ones by a (1+σ/ n) factor. We also design a variant where times are worst-case, yet rank and updates take O( n) time. Our structure uses nH0(S)+o(nσ) + O(σ n) bits, where H0(S) is the zero-order entropy of S. Finally, we pursue various extensions and applications of the result.
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.