arXiv · 2608.06066
Dynamic Entropy-Encoded Arrays in O(1) Time with Nearly Optimal Space
Abstract
We show how to implement a dynamic array $A[1, n]$ with symbols from a fixed alphabet $\Sigma$, while supporting $O(1)$-time queries and updates, and using a total space of $$ \log \binom{|\Sigma|}{m} + \left(1 + O\left(\frac{\log \log n}{\log n}\right)\right) \cdot \left(\sum_{\sigma \in \Sigma} f_\sigma \log (n / f_\sigma)\right) + n / \text{polylog } n $$ bits, where $f_\sigma$ denotes the frequency of each symbol $\sigma \in \Sigma$ and $m$ denotes the number of distinct symbols with non-zero frequencies. This resolves a long-standing open question as to whether one can achieve space bounds close to that of arithmetic coding, while supporting $O(1)$-time operations, whenever the entropy is at least $n/\text{polylog } n$. We also prove a nearly matching space lower bound: up to a factor of $O(\log \log n)$, the entropy-dependent multiplicative overhead of our construction is optimal among $O(1)$-time solutions when $|\Sigma|=O(\sqrt n)$ and the entropy $\sum_{\sigma \in \Sigma} f_\sigma \log (n / f_\sigma)$ lies between $n/\log^{O(1)}n$ and $(1/100)n\log n$. Finally, we present several applications of our results, resolving two open problems having to do with space-efficient dictionaries and filters.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Guy E. Blelloch, Yang Hu, William Kuszmaul, Tianxiao Li, Renfei Zhou. 2026-08-06. Dynamic Entropy-Encoded Arrays in O(1) Time with Nearly Optimal Space. https://arxiv.org/abs/2608.06066
Cite the original work for its findings. Save a collection to share your selection of sources.