On-the-fly array initialization in less space

From MaRDI portal
Publication:5136264

DOI10.4230/LIPICS.ISAAC.2017.44zbMATH Open1457.68074arXiv1709.10477OpenAlexW2963670382MaRDI QIDQ5136264FDOQ5136264

Torben Hagerup, Frank Kammer

Publication date: 25 November 2020

Abstract: We show that for all given n,t,win1,2,... with n<2w, an array of n entries of w bits each can be represented on a word RAM with a word length of w bits in at most nw+lceiln(t/(2w))tceil bits of uninitialized memory to support constant-time initialization of the whole array and O(t)-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 nw+lceiln/wtceil bits for arbitrary fixed t, to be compared with nw+Theta(n) bits for the best previous solution, and at the opposite end, still with constant-time initialization, we support O(logn)-time access with just nw+1 bits, which is optimal for arbitrary access times if the initialization executes fewer than n steps.


Full work available at URL: https://arxiv.org/abs/1709.10477




Recommendations




Cites Work


Cited In (4)





This page was built for publication: On-the-fly array initialization in less space

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q5136264)