# Compressed Data Structures for Dynamic Sequences

arXiv: https://arxiv.org/abs/1507.06866 · HTML: https://mlsanity.com/paper/1507.06866/

## Key facts

- Cited by 1 papers in the map (data through 26 Nov 2026).
- Submitted 24 Jul 2015.

## Built on by (most cited first, 1 of 1)

- [Efficient Lempel-Ziv Prediction with the Run-Length BWT](https://mlsanity.com/paper/2611.01874/) (2026)

## Abstract (arXiv)

We consider the problem of storing a dynamic string S over an alphabet Sigma=,1,ldots,σ, in compressed form. Our representation supports insertions and deletions of symbols and answers three fundamental queries: access(i,S) returns the i-th symbol in S, ranka(i,S) counts how many times a symbol a occurs among the first i positions in S, and selecta(i,S) finds the position where a symbol a occurs for the i-th time. We present the first fully-dynamic data structure for arbitrarily large alphabets that achieves optimal query times for all three operations and supports updates with worst-case time guarantees. Ours is also the first fully-dynamic data structure that needs only nHk+o(nlogσ) bits, where Hk is the k-th order entropy and n is the string length. Moreover our representation supports extraction of a substring S[i..i+ℓ] in optimal O(log n/loglog n + ℓ/logσn) time.
