首页    期刊浏览 2024年11月28日 星期四
登录注册

文章基本信息

  • 标题:On-the-Fly Array Initialization in Less Space
  • 本地全文:下载
  • 作者:Torben Hagerup ; Frank Kammer
  • 期刊名称:LIPIcs : Leibniz International Proceedings in Informatics
  • 电子版ISSN:1868-8969
  • 出版年度:2017
  • 卷号:92
  • 页码:44:1-44:12
  • DOI:10.4230/LIPIcs.ISAAC.2017.44
  • 出版社:Schloss Dagstuhl -- Leibniz-Zentrum fuer Informatik
  • 摘要:We show that for all given n,t,w in {1,2,...} with n<2^w, 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+ceil(n(t/(2 w))^t) 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+ceil(n/w^t) 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(log n)-time access with just nw+1 bits, which is optimal for arbitrary access times if the initialization executes fewer than n steps.
  • 关键词:data structures; space efficiency; constant-time initialization; on-the-fly initialization; arrays
国家哲学社会科学文献中心版权所有