Dynamic Entropy-Encoded Arrays in O(1) Time with Nearly Optimal Space

📅 2026-08-06
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This work resolves a long-standing open problem by designing a dynamic array that simultaneously supports O(1)-time access and updates while nearly achieving the information-theoretic entropy lower bound. For sequences over a fixed alphabet, the authors introduce a frequency-adaptive entropy-coded dynamic data structure that, when the empirical entropy is at least \( n/\mathrm{polylog}\,n \), occupies (1+o(1)) times the optimal space—namely \( \sum f_\sigma \log(n/f_\sigma) \)—and enables constant-time operations. The result not only establishes an almost-tight space lower bound but also offers a novel paradigm for the design of highly space-efficient dictionaries and filters.
📝 Abstract
We show how to implement a dynamic array $A[1, n]$ with symbols from a fixed alphabet $Σ$, while supporting $O(1)$-time queries and updates, and using a total space of $$ \log \binom{|Σ|}{m} + \left(1 + O\left(\frac{\log \log n}{\log n}\right)\right) \cdot \left(\sum_{σ\in Σ} f_σ\log (n / f_σ)\right) + n / \text{polylog } n $$ bits, where $f_σ$ denotes the frequency of each symbol $σ\in Σ$ 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 $|Σ|=O(\sqrt n)$ and the entropy $\sum_{σ\in Σ} f_σ\log (n / f_σ)$ 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.
Problem

Research questions and friction points this paper is trying to address.

dynamic array
entropy
space efficiency
O(1) time
arithmetic coding
Innovation

Methods, ideas, or system contributions that make the work stand out.

dynamic array
entropy compression
O(1) time operations
space-efficient data structures
arithmetic coding
🔎 Similar Papers
2023-11-27International Conference on Probabilistic, Combinatorial and Asymptotic Methods for the Analysis of AlgorithmsCitations: 1