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

压缩动态范围多数和少数数据结构

Compressed Dynamic Range Majority and Minority Data Structures

Travis Gagie, Meng He, Gonzalo Navarro

摘要:

在范围$α$ -多数查询问题中,我们被给予序列$S[1..n]$和固定阈值$α\in (0, 1)$,并且被要求预处理$S$,使得给定查询范围$[i..j]$,我们可以有效地报告在$S[i..j]$中出现超过$α(j-i+1)$次的符号,其被称为范围$α$ -多数。在这篇文章中,我们首先描述了一个动态的数据结构,表示$S$在压缩空间--$nH_k+ o(n\lg σ)$位为任何$k = o(\log_σ n)$,其中$σ$是字母大小和$H_k \le H_0 \le \lgσ$是$S$的$k$阶经验熵--和回答查询在$O \left(\frac{\log n}{α\log \log n} \right)$时间,而支持插入和删除在$S$在$O \left( \frac{\lg n}α \right)$摊销时间。然后,我们将展示如何修改我们的数据结构,在查询时接收一些$β\ge α$和报告范围$β$ -多数在$O \left( \frac{\log n}{β\log \log n} \right)$时间,而不增加渐近空间或更新时间的界限。先前最好的动态解决方案与我们的解决方案具有相同的查询和更新时间,但是它占用了$O(n)$字,并且不能利用在查询时被给定的更大阈值$β$。[由于长度原因,摘要被夹住。]

英文摘要:

In the range $α$-majority query problem, we are given a sequence $S[1..n]$ and a fixed threshold $α\in (0, 1)$, and are asked to preprocess $S$ such that, given a query range $[i..j]$, we can efficiently report the symbols that occur more than $α(j-i+1)$ times in $S[i..j]$, which are called the range $α$-majorities. In this article we first describe a dynamic data structure that represents $S$ in compressed space --- $nH_k+ o(n\lg σ)$ bits for any $k = o(\log_σ n)$, where $σ$ is the alphabet size and $H_k \le H_0 \le \lgσ$ is the $k$-th order empirical entropy of $S$ --- and answers queries in $O \left(\frac{\log n}{α\log \log n} \right)$ time while supporting insertions and deletions in $S$ in $O \left( \frac{\lg n}α \right)$ amortized time. We then show how to modify our data structure to receive some $β\ge α$ at query time and report the range $β$-majorities in $O \left( \frac{\log n}{β\log \log n} \right)$ time, without increasing the asymptotic space or update-time bounds. The best previous dynamic solution has the same query and update times as ours, but it occupies $O(n)$ words and cannot take advantage of being given a larger threshold $β$ at query time. [ABSTRACT CLIPPED DUE TO LENGTH.]

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

↑