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

编码范围最小值

Encoding Range Minimum Queries

Pooya Davoodi, Gonzalo Navarro, Rajeev Raman, S. Srinivasa Rao

摘要:

我们考虑编码范围最小查询(RMQ)的问题:给定一个数组A[1.. n]的不同的全有序值,以预处理A并创建可以回答查询RMQ(i,j)的数据结构,查询RMQ(i,j)返回包含A[i.. j],在查询时不访问数组A。我们给出了一个空间占用为2n + o(n)比特的数据结构,它对最坏情况下的数据是渐近最优的,并且在O(1)最坏情况下的时间内回答了RMQ。这与Fischer和Heun [SICOMP,2011]的先前结果相匹配,但以更自然的方式获得。此外,我们的结果可以在1.919n + o(n)比特内对随机阵列A的RMQ进行编码,这是Fischer和Heun的结果所不知道的。然后,我们将我们的结果推广到编码范围top-2查询(RT 2 Q)问题,这类似于编码RMQ问题,除了查询RT 2 Q(i,j)返回A[i,j]的最小和第二小元素的索引。j]。我们介绍了一种使用3.272 n +o(n)比特的数据结构,它在恒定时间内回答RT 2 Q,并且还给出了RT 2 Q的有效熵的下界。

英文摘要:

We consider the problem of encoding range minimum queries (RMQs): given an array A[1..n] of distinct totally ordered values, to pre-process A and create a data structure that can answer the query RMQ(i,j), which returns the index containing the smallest element in A[i..j], without access to the array A at query time. We give a data structure whose space usage is 2n + o(n) bits, which is asymptotically optimal for worst-case data, and answers RMQs in O(1) worst-case time. This matches the previous result of Fischer and Heun [SICOMP, 2011], but is obtained in a more natural way. Furthermore, our result can encode the RMQs of a random array A in 1.919n + o(n) bits in expectation, which is not known to hold for Fischer and Heun's result. We then generalize our result to the encoding range top-2 query (RT2Q) problem, which is like the encoding RMQ problem except that the query RT2Q(i,j) returns the indices of both the smallest and second-smallest elements of A[i..j]. We introduce a data structure using 3.272n+o(n) bits that answers RT2Qs in constant time, and also give lower bounds on the effective entropy} of RT2Q.

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

↑