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

缓冲的部分持久外部存储搜索树

Buffered Partially-Persistent External-Memory Search Trees

Gerth Stølting Brodal, Casper Moldrup Rysgaard, Rolf Svenning

AI总结:

本文提出一种缓冲的部分持久外部存储搜索树,以线性空间和摊销最优 I/O 界限同时支持历史版本查询与当前版本更新,并通过改进存储需求实现了最坏情况下的相同性能。

摘要:

我们提出了一种最优的部分持久外部存储搜索树,其摊销 I/O 界限与 Brodal 和 Fagerberg [SODA 2003] 提出的非持久 $B^{\varepsilon}$-树所达到的界限相匹配。在部分持久数据结构中,每次更新都会创建数据结构的一个新版本,所有历史版本都可以被查询,但只有当前版本可以被更新。所有操作都应当相对于被访问版本 $v$ 的大小 $N_v$ 保持高效。对于任意参数 $0<\varepsilon<1$,我们的数据结构支持插入和删除操作,摊销 I/O 复杂度为 $O\\!\left(\frac{1}{\varepsilon B^{1-\varepsilon}}\log_B N_v\right)$,其中 $B$ 是外部存储块大小。它还支持后继查询和范围报告查询,摊销 I/O 复杂度为 $O\\!\left(\frac{1}{\varepsilon}\log_B N_v+K/B\right)$,其中 $K$ 是被报告的值数量。该数据结构的空间使用量与更新总次数成线性关系。我们采用标准且最小的假设,即内部存储器大小 $M \geq 2B$。此前由 Arge、Danner 和 Teh [JEA 2003] 提出的最先进的外部存储部分持久搜索树在最坏情况下支持所有操作的 I/O 复杂度为 $O\\!\left(\log_B N_v+K/B\right)$,与 Bayer 和 McCreight [Acta Informatica 1972] 提出的经典 B 树所达到的界限相匹配。我们的数据结构成功地将缓冲更新与部分持久性结合起来。通过对我们的数据结构进行轻微修改,并在存储器大小满足 $M = \Omega\\!\left(B^{1-\varepsilon}\log_2(\max_v N_v)\right)$ 的要求下,这些 I/O 界限也可以在最坏情况下实现。这一最坏情况结果略微改善了此前由 Das、Iacono 和 Nekrich(ISAAC 2022)提出的临时外部存储字典对存储器的要求,后者达到了匹配的最坏情况 I/O 界限,但要求 $M=\Omega\\!\left(B\log_B N\right)$。

英文摘要:

We present an optimal partially-persistent external-memory search tree with amortized I/O bounds matching those achieved by the non-persistent $B^{\varepsilon}$-tree by Brodal and Fagerberg [SODA 2003]. In a partially-persistent data structure each update creates a new version of the data structure, where all past versions can be queried, but only the current version can be updated. All operations should be efficient with respect to the size $N_v$ of the accessed version $v$. For any parameter $0<\varepsilon<1$, our data structure supports insertions and deletions in amortized $O\!\left(\frac{1}{\varepsilon B^{1-\varepsilon}}\log_B N_v\right)$ I/Os, where $B$ is the external-memory block size. It also supports successor and range reporting queries in amortized $O\!\left(\frac{1}{\varepsilon}\log_B N_v+K/B\right)$ I/Os, where $K$ is the number of values reported. The space usage of the data structure is linear in the total number of updates. We make the standard and minimal assumption that the internal memory has size $M \geq 2B$. The previous state-of-the-art external-memory partially-persistent search tree by Arge, Danner and Teh [JEA 2003] supports all operations in worst-case $O\!\left(\log_B N_v+K/B\right)$ I/Os, matching the bounds achieved by the classical B-tree by Bayer and McCreight [Acta Informatica 1972]. Our data structure successfully combines buffering updates with partial persistence. The I/O bounds can also be achieved in the worst-case sense, by slightly modifying our data structure and under the requirement that the memory size $M = Ω\!\left(B^{1-\varepsilon}\log_2(\max_v N_v)\right)$. The worst-case result slightly improves the memory requirement over the previous ephemeral external-memory dictionary by Das, Iacono, and Nekrich (ISAAC 2022), who achieved matching worst-case I/O bounds but required $M=Ω\!\left(B\log_B N\right)$.

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

↑