在更小的空间内进行动态阵列扫描
On-the-Fly Array Initialization in Less Space
摘要:
我们表明,对于所有给定的$n,t,w \in \{1,2,...\}$与$n<2^w$,一个阵列的$n$条目的$w$位,每个可以表示在一个字RAM的$w$位的字长度在最多$nw+\lceil n(t/(2 w))^t\rceil$位的未初始化的内存,以支持恒定时间的初始化整个阵列和$O(t)$时间读取和写入的个别数组条目。在这种权衡的一端,我们实现了初始化和访问(即,读取和写入),与用于任意固定$t$的$nw+\lceil n/w^t\rceil$位进行比较,以与用于最佳先前解决方案的$nw+Θ(n)$位进行比较,并且在相对端,仍然具有恒定时间初始化,我们支持仅具有$nw+1$位的$O(\log n)$时间访问,如果初始化执行少于$n$步骤,则这对于任意访问时间是最佳的。
英文摘要:
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+\lceil n(t/(2 w))^t\rceil$ 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+\lceil n/w^t\rceil$ bits for arbitrary fixed $t$, to be compared with $nw+Θ(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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。