An Optimal Choice Dictionary
Abstract
A choice dictionary is a data structure that can be initialized with a parameter and subsequently maintains an initially empty subset of under insertion, deletion, membership queries and an operation 'choice' that returns an arbitrary element of . The choice dictionary is fundamental in space-efficient computing and has numerous applications. The best previous choice dictionary can be initialized with and a second parameter in constant time and subsequently executes all operations in time and occupies bits on a word RAM with a word length of bits. We describe a new choice dictionary that, following a constant-time initialization, executes all operations in constant time and, in addition to the space needed to store , occupies only bits, which is shown to be optimal if . Allowed bits of additional space, the new data structure also supports iteration over the set in constant time per element.
Keywords
Cite
@article{arxiv.1711.00808,
title = {An Optimal Choice Dictionary},
author = {Torben Hagerup},
journal= {arXiv preprint arXiv:1711.00808},
year = {2017}
}