Optimal Time-Space Tradeoff for Dynamic Difference-Encoded Dictionaries
Abstract
The dynamic dictionary is a fundamental data structure that maintains a set of size (we assume ), supporting insertions, deletions and membership queries. Previous works mostly focused on constructing dictionaries that support operations in time and use space as close to the \emph{information-theoretic bound} of bits as possible. In this paper, we study \emph{difference-encoded} dictionaries, which are dictionaries that use space close to the gap entropy bits to store the set . On many real-world datasets where the keys are clustered, we have , making difference-encoded dictionaries more favorable than standard dictionaries in practice. Prior to this work, the best dynamic difference-encoded dictionary is by Blandford and Blelloch [SODA'04], whose construction supports operations in time and uses bits of space. In the static case, Gupta, Hon, Shah and Vitter [DCC'06] presented a dictionary that uses bits of space and supports membership queries in time. In this work, we go beyond these bounds and fully settle the optimal time-space tradeoff for difference-encoded dictionaries. For an arbitrary parameter , we construct a dynamic dictionary that supports operations in expected amortized time and uses bits of space. We also prove a matching lower bound, showing that our time-space tradeoff is optimal even in the \emph{static} case.
Cite
@article{arxiv.2608.06077,
title = {Optimal Time-Space Tradeoff for Dynamic Difference-Encoded Dictionaries},
author = {Guy E. Blelloch and Yang Hu and William Kuszmaul and Jingxun Liang and Renfei Zhou},
journal= {arXiv preprint arXiv:2608.06077},
year = {2026}
}
Comments
49 pages, 4 figures