On-the-Fly Array Initialization in Less Space
Data Structures and Algorithms
2017-10-02 v1
Abstract
We show that for all given with , an array of entries of bits each can be represented on a word RAM with a word length of bits in at most bits of uninitialized memory to support constant-time initialization of the whole array and -time reading and writing of individual array entries. At one end of this tradeoff, we achieve initialization and access (i.e., reading and writing) in constant time with bits for arbitrary fixed , to be compared with bits for the best previous solution, and at the opposite end, still with constant-time initialization, we support -time access with just bits, which is optimal for arbitrary access times if the initialization executes fewer than steps.
Keywords
Cite
@article{arxiv.1709.10477,
title = {On-the-Fly Array Initialization in Less Space},
author = {Torben Hagerup and Frank Kammer},
journal= {arXiv preprint arXiv:1709.10477},
year = {2017}
}