{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,19]],"date-time":"2026-11-19T08:13:04Z","timestamp":1795075984949,"version":"4.10.2"},"reference-count":17,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"6","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[2002,1]]},"abstract":"<jats:p>\n                    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(\\frac{1}{\\epsilon} \\log^2 N)$ bits of memory, we can estimate the number of 1's to within a factor of $1 + \\epsilon$. We also give a matching lower bound of $\\Omega(\\frac{1}{\\epsilon}\\log^2 N)$ memory bits for any deterministic or randomized algorithms. We extend our scheme to maintain the sum of the last N positive integers and provide matching upper and lower bounds for this more general problem as well. We also show how to efficiently compute the L\n                    <jats:sub>p<\/jats:sub>\n                    norms ($p \\in [1,2]$) of vectors in the sliding window model using our techniques. Using our algorithm, one can adapt many other techniques to work for the sliding window model with a multiplicative overhead of $O(\\frac{1}{\\epsilon}\\log N)$ in memory and a $1 +\\epsilon$ factor loss in accuracy. These include maintaining approximate histograms, hash tables, and statistics or aggregates such as sum and averages.\n                  <\/jats:p>","DOI":"10.1137\/s0097539701398363","type":"journal-article","created":{"date-parts":[[2003,6,11]],"date-time":"2003-06-11T11:12:06Z","timestamp":1055329926000},"page":"1794-1813","source":"Crossref","is-referenced-by-count":515,"title":["Maintaining Stream Statistics over Sliding Windows"],"prefix":"10.1137","volume":"31","author":[{"given":"Mayur","family":"Datar","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Aristides","family":"Gionis","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Piotr","family":"Indyk","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Rajeev","family":"Motwani","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2012,2,17]]},"reference":[{"key":"R1","unstructured":"Noga Alon, Yossi Matias, Mario Szegedy, The space complexity of approximating the frequency moments, ACM, New York, 1996, 20\u2013291427494"},{"key":"R2","unstructured":"C. Cortes, K. Fisher, D. Pregibon, and A. Rogers,\n                      Hancock: A language for extracting signatures from data streams\n                      , in Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ACM, New York, 2000, pp. 9\u201317."},{"key":"R3","unstructured":"S. Chaudhuri, R. Motwani, and V. R. Narasayya,\n                      On random sampling over joins\n                      , in Proceedings of the ACM SIGMOD International Conference on Management of Data, ACM, New York, 1999, pp. 263\u2013274."},{"key":"R4","unstructured":"M. Fang, H. Garcia\u2010Molina, R. Motwani, N. Shivakumar, and J. D. Ullman,\n                      Computing iceberg queries efficiently\n                      , in Proceedings of the 24th International Conference on Very Large Data Bases, New York, NY, 1998, pp. 299\u2013310."},{"key":"R5","unstructured":"J. Feigenbaum, S. Kannan, M. Strauss, M. Viswanathan, An approximate L1\u2010difference algorithm for massive data streams (extended abstract), IEEE Computer Soc., Los Alamitos, CA, 1999, 501\u20135111917590"},{"key":"R6","unstructured":"P. Flajolet and G. Martin,\n                      Probabilistic counting\n                      , in Proceedings of the 24th IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, Los Alamitos, CA, 1983, pp. 76\u201382."},{"key":"R7","unstructured":"C. Fraleigh, S. Moon, C. Diot, B. Lyles, and F. Tobagi,\n                      Architecture of a Passive Monitoring System for Backbone IP Networks\n                      , Technical report TR00\u2010ATL\u2010101\u2010801, Sprint Advanced Technology Laboratories, Burlingame, CA, 2000."},{"key":"R8","unstructured":"A. Gilbert, Y. Kotidis, S. Muthukrishnan, and M. Strauss,\n                      Surfing wavelets on streams: One\u2010pass summaries for approximate aggregate queries\n                      , in Proceedings of the 27th International Conference on Very Large Data Bases, Rome, Italy, 2001, pp. 79\u201388."},{"key":"R9","unstructured":"S. Guha and N. Koudas,\n                      Approximating a data stream for querying and estimation: Algorithms and performance evaluation\n                      , in Proceedings of the Eighteenth International Conference on Data Engineering, San Jose, CA, 2002, pp. 567\u2013576."},{"key":"R10","unstructured":"S. Guha and N. Koudas,\n                      Data\u2010streams and histograms\n                      , in Proceedings of the Thirty\u2010Third Annual ACM Symposium on Theory of Computing, ACM, New York, 2001, pp. 471\u2013475."},{"key":"R11","unstructured":"S. Guha, N. Mishra, R. Motwani, and L. O\u2019Callaghan,\n                      Clustering data streams\n                      , in Proceedings of the 41st Annual IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, Los Alamitos, CA, 2000, pp. 359\u2013366."},{"key":"R12","unstructured":"M. R. Henzinger, P. Raghavan, and S. Rajagopalan,\n                      Computing on Data Streams\n                      , Technical report TR 1998\u2010011, Compaq Systems Research Center, Palo Alto, CA, 1998."},{"key":"R13","unstructured":"P. Indyk,\n                      Stable distributions, pseudorandom generators, embeddings and data stream computation\n                      , in Proceedings of the 41st IEEE Symposium on Foundations of Computer Science, IEEE Computer Society, Los Alamitos, CA, 2000, pp. 189\u2013197."},{"key":"R14","unstructured":"H. V. Jagadish, N. Koudas, S. Muthukrishnan, V. Poosala, K. Sevcik, and T. Suel,\n                      Optimal histograms with quality guarantees\n                      , in Proceedings of the 24th International Conference on Very Large Data Bases, New York, NY, 1998, pp. 275\u2013286."},{"key":"R15","doi-asserted-by":"publisher","DOI":"10.1017\/CBO9780511814075"},{"key":"R16","unstructured":"Cisco Systems,\n                      Netflow Services and Applications\n                      , White paper, Cisco Systems, San Jose, CA, 2000;"},{"key":"R16","unstructured":"also available online from http:\/\/www.cisco.com\/warp\/public\/cc\/pd\/iosw\/ioft\/neflct\/tech\/napps_wp.htm."}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/S0097539701398363","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:21:03Z","timestamp":1787336463000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/S0097539701398363"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2002,1]]},"references-count":17,"journal-issue":{"issue":"6","published-print":{"date-parts":[[2002,1]]}},"alternative-id":["10.1137\/S0097539701398363"],"URL":"https:\/\/doi.org\/10.1137\/s0097539701398363","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[2002,1]]}}}