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

单元清晰度、频率矩和滑动窗口

Element Distinctness, Frequency Moments, and Sliding Windows

Paul Beame, Raphael Clifford, Widad Machmouchi

摘要:

我们推导出新的时空折衷下界和算法,用于精确计算输入数据的统计量,包括频率矩,元素独特性和顺序统计量,这是简单的排序数据计算。我们开发了一个随机算法的时间T和空间S满足T在O(n^{3/2}/S^{1/2}),小于以前的下限比较为基础的算法的元素独特性问题,表明元素独特性严格比排序随机分支程序更容易。该算法是基于一个新的时间和空间有效的算法,从一个有限的集合中找到所有的函数f的碰撞,从一组给定的起始点迭代f可到达。我们进一步表明,我们的元素的独特性算法可以扩展到只有一个多对数因子的成本,以解决滑动窗口的元素独特性问题,其中的任务是采取长度为2n-1的输入,并产生一个输出为每个窗口的长度为n,给出n个输出。与此相反,我们在Omega(n^2/S)中给出了随机分支程序计算滑动窗口上不同元素个数的时空折衷下界。对于计算F_0的低阶比特和计算任何频率矩F_k,k neq 1,相同的下界成立。这表明这些频率矩和决策问题F_0 mod 2比元素区分度严格困难。我们用一个基于T in O(n^2/S)比较的确定性RAM算法来精确计算滑动窗口上的F_k,几乎匹配我们的滑动窗口版本的下限和基于比较的单窗口版本的下限。我们进一步给出了滑动窗上F_0的一个量子算法,其中T在O(n^{3/2}/S^{1/2})内.最后,我们考虑了滑动窗口上顺序统计量的计算。

英文摘要:

We derive new time-space tradeoff lower bounds and algorithms for exactly computing statistics of input data, including frequency moments, element distinctness, and order statistics, that are simple to calculate for sorted data. We develop a randomized algorithm for the element distinctness problem whose time T and space S satisfy T in O (n^{3/2}/S^{1/2}), smaller than previous lower bounds for comparison-based algorithms, showing that element distinctness is strictly easier than sorting for randomized branching programs. This algorithm is based on a new time and space efficient algorithm for finding all collisions of a function f from a finite set to itself that are reachable by iterating f from a given set of starting points. We further show that our element distinctness algorithm can be extended at only a polylogarithmic factor cost to solve the element distinctness problem over sliding windows, where the task is to take an input of length 2n-1 and produce an output for each window of length n, giving n outputs in total. In contrast, we show a time-space tradeoff lower bound of T in Omega(n^2/S) for randomized branching programs to compute the number of distinct elements over sliding windows. The same lower bound holds for computing the low-order bit of F_0 and computing any frequency moment F_k, k neq 1. This shows that those frequency moments and the decision problem F_0 mod 2 are strictly harder than element distinctness. We complement this lower bound with a T in O(n^2/S) comparison-based deterministic RAM algorithm for exactly computing F_k over sliding windows, nearly matching both our lower bound for the sliding-window version and the comparison-based lower bounds for the single-window version. We further exhibit a quantum algorithm for F_0 over sliding windows with T in O(n^{3/2}/S^{1/2}). Finally, we consider the computations of order statistics over sliding windows.

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

↑