Skip to main content
QUICK REVIEW

[Paper Review] Streaming sums in sublinear space.

Vladimir Braverman, Stephen R. Chestnut|arXiv (Cornell University)|Aug 21, 2014
Complexity and Algorithms in GraphsComputer Science1 references4 citations
TL;DR

This paper presents a sublinear space algorithm for approximating streaming frequency sums of the form $\sum g(f_i)$, where $g$ is a function of element frequencies $f_i$ in a data stream. It provides a complete classification of space complexity for periodic and decreasing functions up to polylogarithmic factors, and offers the first sublinear-space approximation for non-monotone functions under a simple sufficient condition, significantly advancing prior work since 2010.

ABSTRACT

Given a stream $S$ of length $m$ with element frequencies $f_i$, $i\in[n]$, and a function ${g:\mathbb{N} o\mathbb{R}}$, we consider the problem computing a $(1\pm\epsilon)$-approximation to $\sum g(f_i)$. Most previous efforts have focused on specific functions, for example the $p$-th moment $g(x)=|x|^p$ or other norms. The main contributions of this paper are the complete classification of the space necessary for approximating periodic and decreasing functions, up to polylogarithmic factors, and a sublinear space algorithm for non-monotone functions satisfying a relatively simple sufficient condition. This is the first streaming complexity characterization for functions that are not just monotonically increasing, and it is the first improvement on the complexity of general streaming frequency sums since 2010. Our sharpest results characterize nonincreasing functions in terms of the domain size \emph{and} stream length. In contrast to approximations of the frequency moments, it turns out the storage required to approximate a decreasing function depends delicately on the length of the stream. We apply our results to derive the first sublinear-space approximations to the harmonic mean, geometric mean, and the cumulative histogram of the frequencies.

Motivation & Objective

  • To characterize the space complexity of approximating $\sum g(f_i)$ for decreasing and periodic functions in the streaming model.
  • To extend prior work on frequency moment approximations to non-monotonic functions, particularly those that are not just increasing.
  • To develop a sublinear space algorithm for non-monotone functions satisfying a simple sufficient condition.
  • To derive the first sublinear-space approximations for the harmonic mean, geometric mean, and cumulative histogram of frequencies.
  • To provide a complete classification of space complexity up to polylogarithmic factors for a broad class of functions.

Proposed method

  • The authors classify functions based on their behavior—periodic, decreasing, or non-monotone—and derive space complexity bounds using structural analysis of frequency distributions.
  • They introduce a novel sampling and estimation framework that adapts to the function's shape and stream length, enabling sublinear space usage.
  • For non-monotone functions, they identify a sufficient condition under which sublinear space approximation is possible, leveraging function symmetry and frequency distribution properties.
  • The method uses frequency moment approximation techniques as a foundation but extends them to handle non-monotonicity through tailored sampling strategies.
  • The analysis incorporates both domain size $n$ and stream length $m$, showing that storage depends critically on $m$ for decreasing functions.
  • They apply the framework to derive concrete approximations for the harmonic mean, geometric mean, and cumulative histogram, proving sublinear space bounds for each.

Experimental results

Research questions

  • RQ1What is the space complexity of approximating $\sum g(f_i)$ for decreasing functions, and how does it depend on stream length $m$ and domain size $n$?
  • RQ2Can sublinear space approximation be achieved for non-monotone functions, and what structural conditions on $g$ enable this?
  • RQ3How does the space complexity of approximating periodic functions compare to that of monotonic functions in the streaming model?
  • RQ4What are the tightest possible space bounds for approximating the harmonic mean and geometric mean of frequencies in a stream?
  • RQ5Can the cumulative histogram of frequencies be approximated in sublinear space, and under what conditions?

Key findings

  • The space complexity for approximating decreasing functions depends critically on both the domain size $n$ and the stream length $m$, unlike monotonic functions where $m$ plays a lesser role.
  • A complete classification of space complexity is provided for periodic and decreasing functions, up to polylogarithmic factors.
  • The paper presents the first sublinear space algorithm for non-monotone functions satisfying a simple sufficient condition, marking a significant advancement since 2010.
  • Sublinear space approximations are derived for the harmonic mean, geometric mean, and cumulative histogram of frequencies, resolving open problems in streaming complexity.
  • The results show that for decreasing functions, the required storage increases with $m$, indicating a fundamental dependence on stream length not seen in earlier work.
  • The framework enables tighter space bounds than previous methods by incorporating both $n$ and $m$ in the analysis, particularly for non-increasing functions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.