arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1704.07710cs.DS
收藏

简洁近似秩

Succinct Approximate Rank Queries

Ran Ben Basat

摘要:

我们考虑的问题汇总的多个元素的集合在$\{1, 2, \ldots , n\}$的约束下,没有元素出现超过$\ell$次。然后,目标是回答\emph{rank}查询--给定$i\in\{1, 2, \ldots , n\}$,多集中有多少元素小于$i$?- 具有至多为$Δ$的附加误差和恒定时间。对于这个问题,我们证明了一个下界的$\mathcal B_{\ell,n,Δ}\triangleq$ $\left\lfloor{\frac{n}{\left\lceil{Δ/ \ell}\right\rceil}}\right\rfloor $ $\log\big({\max\{\left\lfloor{\ell / Δ}\right\rfloor,1\} + 1}\big)$位,并提供了一个\emph{succinct}建设,使用$\mathcal B_{\ell,n,Δ}(1+o(1))$位。接下来,我们推广我们的数据结构,以支持$\{0,1,\ldots,\ell\}$中的整数流的处理,其中在查询某些$i\le n$时,我们为\emph{last} $i$元素的和提供$Δ$ -加法近似。我们表明,这也可以做到使用$\mathcal B_{\ell,n,Δ}(1+o(1))$位和在恒定的时间。这产生了第一个子线性空间算法,该算法在$O(1)$时间内计算近似滑动窗口和,其中窗口大小在查询时给定;此外,它只需要比固定窗口大小所需的$(1+o(1))$更多的空间。

英文摘要:

We consider the problem of summarizing a multi set of elements in $\{1, 2, \ldots , n\}$ under the constraint that no element appears more than $\ell$ times. The goal is then to answer \emph{rank} queries --- given $i\in\{1, 2, \ldots , n\}$, how many elements in the multi set are smaller than $i$? --- with an additive error of at most $Δ$ and in constant time. For this problem, we prove a lower bound of $\mathcal B_{\ell,n,Δ}\triangleq$ $\left\lfloor{\frac{n}{\left\lceil{Δ/ \ell}\right\rceil}}\right\rfloor $ $\log\big({\max\{\left\lfloor{\ell / Δ}\right\rfloor,1\} + 1}\big)$ bits and provide a \emph{succinct} construction that uses $\mathcal B_{\ell,n,Δ}(1+o(1))$ bits. Next, we generalize our data structure to support processing of a stream of integers in $\{0,1,\ldots,\ell\}$, where upon a query for some $i\le n$ we provide a $Δ$-additive approximation for the sum of the \emph{last} $i$ elements. We show that this too can be done using $\mathcal B_{\ell,n,Δ}(1+o(1))$ bits and in constant time. This yields the first sub linear space algorithm that computes approximate sliding window sums in $O(1)$ time, where the window size is given at the query time; additionally, it requires only $(1+o(1))$ more space than is needed for a fixed window size.

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

↑