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

用于下一个/上一个较大/较小值查询的空间高效数据结构

Space-efficient Data Structure for Next/Previous Larger/Smaller Value Queries

Seungbum Jo, Geunho Kim

AI总结:

本文提出一种空间高效的数据结构,以接近最优的比特空间同时支持范围最值及下一个/上一个较大/较小值查询,并给出匹配的下界证明。

摘要:

给定一个来自全序关系、大小为 $n$ 的数组,我们考虑构造一种数据结构的问题,该结构能够高效支持各种查询(范围最小/最大查询及其变体,以及下一个/上一个较大/较小值查询)。在编码模型中(即查询可以在没有输入数组的情况下得到回答),我们提出一种 $(3.701n + o(n))$-比特的数据结构,对于任意正常数整数 $\ell$,它能在 $O(\log^{(\ell)}n)$ 时间内支持所有这些查询(这里,$\log^{(1)} n = \log n$,且对于 $\ell > 1$,$\log^{(\ell)} n = \log ({\log^{(\ell-1)}} n)$)。我们的数据结构空间与 Tsur(Inf. Process. Lett., 2019)当前最好的上界相匹配,而后者不能高效支持这些查询。此外,我们证明至少需要 $3.16n-Θ(\log n)$ 比特才能回答所有这些查询。我们的结果是通过推广 Gawrychowski 和 Nicholson 针对大小为 $n$ 的排列上回答范围最小和最大查询的 $(3n - Θ(\log n))$-比特下界(ICALP, 15)而得到的。

英文摘要:

Given an array of size $n$ from a total order, we consider the problem of constructing a data structure that supports various queries (range minimum/maximum queries with their variants and next/previous larger/smaller queries) efficiently. In the encoding model (i.e., the queries can be answered without the input array), we propose a $(3.701n + o(n))$-bit data structure, which supports all these queries in $O(\log^{(\ell)}n)$ time, for any positive constant integer $\ell$ (here, $\log^{(1)} n = \log n$, and for $\ell > 1$, $\log^{(\ell)} n = \log ({\log^{(\ell-1)}} n)$). The space of our data structure matches the current best upper bound of Tsur (Inf. Process. Lett., 2019), which does not support the queries efficiently. Also, we show that at least $3.16n-Θ(\log n)$ bits are necessary for answering all the queries. Our result is obtained by generalizing Gawrychowski and Nicholson's $(3n - Θ(\log n))$-bit lower bound (ICALP, 15) for answering range minimum and maximum queries on a permutation of size $n$.

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

↑