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

带有限存储空间的滑动窗

Sliding Windows with Limited Storage

Paul Beame, Raphael Clifford, Widad Machmouchi

摘要:

我们考虑时间-空间的权衡,精确计算频率矩和顺序统计滑动窗口。给定长度为2n-1的输入,任务是输出长度为n的每个窗口的函数,总共给出n个输出。滑动窗口上的计算与直和问题有关,只是输入到实例几乎完全重叠。我们给出了一个平均情况和随机时空权衡的TS在Omega(n^2)中的下界,用于多路分支程序,因此是标准RAM和字RAM模型,以计算字母表[n]上滑动窗口中不同元素的数量F_0。对于计算F_0的低阶位和计算k不等于1的任何频率矩F_k,同样的下界成立。我们用\tilde中的TS来补充这个下界,以精确计算滑动窗口中的F_k,其时间复杂度为O(n^2).我们展示了滑动窗口元素清晰度的复杂性和滑动窗口$F_0\bmod 2$计算的复杂性之间的时空分离。特别是对于alphabet [n],有一个非常简单的无错误的滑动窗口算法,用于元素的独特性,平均运行时间为O(n),使用O(log{n})空间。我们表明,任何算法的一个单一的元素distinctness实例可以扩展到一个算法的滑动窗口版本的元素distinctness与最多的时间-空间积的多对数增加。最后,我们证明了顺序统计量(如最大值和最小值)的滑动窗口计算可以在时间上仅以对数增长来计算,但对于顺序统计量(如中值)的滑动窗口计算,TS在Omega(n^2)的下限成立,当空间很小时,时间几乎线性增长。

英文摘要:

We consider time-space tradeoffs for exactly computing frequency moments and order statistics over sliding windows. Given an input of length 2n-1, the task is to output the function of each window of length n, giving n outputs in total. Computations over sliding windows are related to direct sum problems except that inputs to instances almost completely overlap. We show an average case and randomized time-space tradeoff lower bound of TS in Omega(n^2) for multi-way branching programs, and hence standard RAM and word-RAM models, to compute the number of distinct elements, F_0, in sliding windows over alphabet [n]. The same lower bound holds for computing the low-order bit of F_0 and computing any frequency moment F_k for k not equal to 1. We complement this lower bound with a TS in \tilde O(n^2) deterministic RAM algorithm for exactly computing F_k in sliding windows. We show time-space separations between the complexity of sliding-window element distinctness and that of sliding-window $F_0\bmod 2$ computation. In particular for alphabet [n] there is a very simple errorless sliding-window algorithm for element distinctness that runs in O(n) time on average and uses O(log{n}) space. We show that any algorithm for a single element distinctness instance can be extended to an algorithm for the sliding-window version of element distinctness with at most a polylogarithmic increase in the time-space product. Finally, we show that the sliding-window computation of order statistics such as the maximum and minimum can be computed with only a logarithmic increase in time, but that a TS in Omega(n^2) lower bound holds for sliding-window computation of order statistics such as the median, a nearly linear increase in time when space is small.

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

↑