2002 · 256 citations · 9 references
ComputingComputer ScienceMathematicsAlgorithmsDiscrete MathematicsInformation TheoryCounting StatisticsInteger ProgrammingRandomized ComputationSpace ComplexityStream ProcessingStreaming AlgorithmsApproximate CountingLower Bound ComputationLower Bound TechniquesLower BoundsSliding Window AlgorithmsSliding WindowsStreaming Lower BoundsWindowed Aggregation
The paper studies maintaining aggregates over data streams in the sliding window model, specifically counting the number of 1's in the last N elements. The authors aim to extend this counting scheme to maintain the sum of the last N positive integers. They adapt the counting algorithm to compute sums, Lp norms (p∈[1,2]), histograms, hash tables, and other aggregates with an O(1/elog N) memory overhead and a 1+ε accuracy loss. They establish tight O(1/ε log N) memory upper and lower bounds for counting 1's and for the generalized sum problem, achieving 1+ε accuracy.
We consider the problem of maintaining aggregates and statistics over data streams, with respect to the last N data elements seen so far. We refer to this model as the sliding window model. We consider the following basic problem: Given a stream of bits, maintain a count of the number of 1's in the last N elements seen from the stream. We show that using O(1/e log2N) bits of memory, we can estimate the number of 1's to within a factor of 1 + e. We also give a matching lower bound of Ω(1/e log2N) memory bits for any deterministic or randomized algorithms. We extend our scheme to maintain the sum of the last N positive integers. We provide matching upper and lower bounds for this more general problem as well. We apply our techniques to obtain efficient algorithms for the Lp norms (for p e [1, 2]) of vectors under the sliding window model. Using the algorithm for the basic counting problem, one can adapt many other techniques to work for the sliding window model, with a multiplicative overhead of O(1/elog N) in memory and a 1 + e factor loss in accuracy. These include maintaining approximate histograms, hash tables, and statistics or aggregates such as sum and averages.
9
The space complexity of approximating the frequency moments
Noga Alon, Yossi Matias, Márió Szegedy · 1996 · 847 citations
Suvajyoti Guha, Nita Mishra, R. Motwani et al. · 2002 · 632 citations
Optimal Histograms with Quality Guarantees
H. V. Jagadish, Nick Koudas, S. Muthukrishnan et al. · 1998 · 382 citations
Computing Iceberg Queries Efficiently
Min Fang, Narayanan Shivakumar, Héctor García-Molina et al. · 1998 · 342 citations
Surajit Chaudhuri, Rajeev Motwani, Vivek Narasayya · ACM SIGMOD Record · 1999 · 303 citations · Full text