arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1407.3342cs.DS
收藏

从工作空间有限的只读存储器中进行选择

Selection from read-only memory with limited workspace

Amr Elmasry, Daniel Dahl Juhl, Jyrki Katajainen, Srinivasa Rao Satti

摘要:

给定一个从全序集合中抽取的$N$元素的无序数组和一个从$1$到$N$的整数$k$,在经典的选择问题中,任务是找到数组中第$k$个最小的元素。我们在空间受限的随机访问模型中研究了这个问题的复杂性:输入数组存储在只读存储器中,算法只能访问有限的工作空间。我们证明了线性时间修剪和搜索算法-在大多数算法教科书-可以修改使用$Θ(N)$位,而不是额外空间的$Θ(N)$字。在我们的工作之前,Frederickson最著名的算法可以在$O(N \lg^{*} N)$时间内使用额外空间的$Θ(N)$位执行任务。我们的结果分离的空间受限的随机访问模型和多通道流模型,因为我们可以超过$Ω(N \lg^{*} N)$下限已知的后者模型。我们还推广我们的算法的情况下,工作空间的大小是$Θ(S)$位,其中$\lg^3{N} \leq S \leq N$。我们的广义算法的运行时间是$O(N \lg^{*}(N/S) + N (\lg N) / \lg{} S)$,略高于Frederickson算法的$O(N \lg^{*}(N (\lg N)/S) + N (\lg N) / \lg{} S)$界。为了获得上述改进,我们开发了一种新的数据结构,称为小波堆栈,我们使用重复修剪。我们希望小波堆栈在其他应用中也是一个有用的工具。

英文摘要:

Given an unordered array of $N$ elements drawn from a totally ordered set and an integer $k$ in the range from $1$ to $N$, in the classic selection problem the task is to find the $k$-th smallest element in the array. We study the complexity of this problem in the space-restricted random-access model: The input array is stored on read-only memory, and the algorithm has access to a limited amount of workspace. We prove that the linear-time prune-and-search algorithm---presented in most textbooks on algorithms---can be modified to use $Θ(N)$ bits instead of $Θ(N)$ words of extra space. Prior to our work, the best known algorithm by Frederickson could perform the task with $Θ(N)$ bits of extra space in $O(N \lg^{*} N)$ time. Our result separates the space-restricted random-access model and the multi-pass streaming model, since we can surpass the $Ω(N \lg^{*} N)$ lower bound known for the latter model. We also generalize our algorithm for the case when the size of the workspace is $Θ(S)$ bits, where $\lg^3{N} \leq S \leq N$. The running time of our generalized algorithm is $O(N \lg^{*}(N/S) + N (\lg N) / \lg{} S)$, slightly improving over the $O(N \lg^{*}(N (\lg N)/S) + N (\lg N) / \lg{} S)$ bound of Frederickson's algorithm. To obtain the improvements mentioned above, we developed a new data structure, called the wavelet stack, that we use for repeated pruning. We expect the wavelet stack to be a useful tool in other applications as well.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑