Small Uncolored and Colored Choice Dictionaries
Abstract
A choice dictionary can be initialized with a parameter and subsequently maintains an initially empty subset of under insertion, deletion, membership queries and an operation 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 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 executes all operations in constant time and, in addition to the space needed to store the integer , occupies only bits, which is shown to be optimal if . A generalization of the choice dictionary called a colored choice dictionary is initialized with in addition to and subsequently maintains a semipartition of under the operations , which moves from its current subset to , , which returns the unique with , and , which returns an arbitrary element of . We describe new colored choice dictionaries that, if initialized with constant , execute , and in constant time and occupy bits plus the space needed to store if is a power of 2, and at most bits in general, for arbitrary fixed . We also study the possibility of iterating over the set or over for given and an application of this to breadth-first search.
Cite
@article{arxiv.1809.07661,
title = {Small Uncolored and Colored Choice Dictionaries},
author = {Torben Hagerup},
journal= {arXiv preprint arXiv:1809.07661},
year = {2018}
}