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

前一个和下一个较小值的组合数据结构

Combined Data Structure for Previous- and Next-Smaller-Values

Johannes Fischer

摘要:

令$A$是存储来自全序集合的$n$元素的静态数组。我们提出了一个最多$n\log_2(3+2\sqrt{2})+o(n)$位的最佳大小的数据结构,它允许我们在恒定时间内回答$A$上的以下查询,而不访问$A$:(1)先前的较小值查询,其中给定索引$i$,我们希望找到$i$左侧的第一个索引,其中$A$严格小于$i$,以及(2)接下来的较小值查询,其搜索到$i$的右侧。作为额外的奖励,我们的数据结构还允许回答第三种查询:给定索引$i<j$,找到$A[i..j]$中最小值的位置。我们的数据结构对后缀树的空间有效存储有直接影响。

英文摘要:

Let $A$ be a static array storing $n$ elements from a totally ordered set. We present a data structure of optimal size at most $n\log_2(3+2\sqrt{2})+o(n)$ bits that allows us to answer the following queries on $A$ in constant time, without accessing $A$: (1) previous smaller value queries, where given an index $i$, we wish to find the first index to the left of $i$ where $A$ is strictly smaller than at $i$, and (2) next smaller value queries, which search to the right of $i$. As an additional bonus, our data structure also allows to answer a third kind of query: given indices $i<j$, find the position of the minimum in $A[i..j]$. Our data structure has direct consequences for the space-efficient storage of suffix trees.

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

↑