paper

Optimal Dynamic Sequence Representations

arXiv:1206.6982

Abstract

We describe a data structure that supports access, rank and select queries, as well as symbol insertions and deletions, on a string over alphabet in time , 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 factor. We also design a variant where times are worst-case, yet rank and updates take time. Our structure uses bits, where is the zero-order entropy of . Finally, we pursue various extensions and applications of the result.