arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 1404.2677cs.DS
收藏

距离择多的最优编码

Optimal Encodings for Range Majority Queries

Gonzalo Navarro, Sharma V. Thankachan

摘要:

我们研究的问题,设计一个数据结构,报告的位置不同的$τ$ -多数在任何范围内的阵列$A[1,n]$,而不存储$A$。对于$0<τ< 1$,$τ$ -majority在$A[i,j]$范围内是在$A[i,j]$中出现超过$τ(j-i+1)$次的元素。我们表明,$Ω(n\log(1/τ))$位是必要的任何数据结构,能够只是计数的不同$τ$ -多数在任何范围内。然后,我们设计了一个使用$O(n\log(1/τ))$位的结构,该结构在具有字大小$w$的RAM机器上在$O((1/τ)\log\log_w(1/τ)\log n)$时间内返回每个$τ$ -多数$A[i,j]$的一个位置(它可以输出每个$τ$ -多数在$O(1)$附加时间内出现的任何进一步位置)。最后,我们展示了如何通过向结构中添加$O(n\log\log n)$空间位来从时间中移除$\log n$因子。

英文摘要:

We study the problem of designing a data structure that reports the positions of the distinct $τ$-majorities within any range of an array $A[1,n]$, without storing $A$. A $τ$-majority in a range $A[i,j]$, for $0<τ< 1$, is an element that occurs more than $τ(j-i+1)$ times in $A[i,j]$. We show that $Ω(n\log(1/τ))$ bits are necessary for any data structure able just to count the number of distinct $τ$-majorities in any range. Then, we design a structure using $O(n\log(1/τ))$ bits that returns one position of each $τ$-majority of $A[i,j]$ in $O((1/τ)\log\log_w(1/τ)\log n)$ time, on a RAM machine with word size $w$ (it can output any further position where each $τ$-majority occurs in $O(1)$ additional time). Finally, we show how to remove a $\log n$ factor from the time by adding $O(n\log\log n)$ bits of space to the structure.

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

↑