Succinct Summing over Sliding Windows

Ran Ben Basat, Gil Einziger, Roy Friedman, Yaron Kassner

Research output: Contribution to journalArticlepeer-review

1 Scopus citations

Abstract

This paper considers the problem of estimating the sum the last W elements of a stream of integers in { 0 , 1 , … , R}. Specifically, we study the memory requirements for computing a RWε-additive approximation for the window’s sum. We derive a lower bound of Wlog⌊12Wε+1⌋ bits when ε≤ 1 / 2 W and show a matching succinct algorithm that uses (1+o(1))(Wlog⌊12Wε+1⌋) bits. Next, we prove a (1 - o(1)) ε - 1 / 2 bits lower bound when ε= ω(W - 1 ) ∧ ε= o(log - 1 W) and provide a succinct algorithm that requires (1 + o(1)) ε - 1 / 2 bits. We show that when ε= Ω(log - 1 W) any solution to the problem must consume at least (1 - o(1)) · (ε - 1 / 2 + log W) bits, while our algorithm needs (1 + o(1)) · (ε - 1 / 2 + 2 log W) bits. Finally, we show that our lower bounds generalize to randomized algorithms as well, while our algorithms are deterministic and can process elements and answer queries in O(1) worst-case time.

Original languageEnglish
Pages (from-to)2072-2091
Number of pages20
JournalAlgorithmica
Volume81
Issue number5
DOIs
StatePublished - 15 May 2019
Externally publishedYes

Keywords

  • Additive approximation
  • Approximate counting
  • Basic summing
  • Counting
  • Sliding window

Fingerprint

Dive into the research topics of 'Succinct Summing over Sliding Windows'. Together they form a unique fingerprint.

Cite this