English

Faster Update Time for Turnstile Streaming Algorithms

Data Structures and Algorithms 2019-11-05 v1

Abstract

In this paper, we present a new algorithm for maintaining linear sketches in turnstile streams with faster update time. As an application, we show that logn\log n \texttt{Count} sketches or \texttt{CountMin} sketches with a constant number of columns (i.e., buckets) can be implicitly maintained in \emph{worst-case} O(log0.582n)O(\log^{0.582} n) update time using O(logn)O(\log n) words of space, on a standard word RAM with word-size w=Θ(logn)w=\Theta(\log n). The exponent 0.5822ω/310.582\approx 2\omega/3-1, where ω\omega is the current matrix multiplication exponent. Due to the numerous applications of linear sketches, our algorithm improves the update time for many streaming problems in turnstile streams, in the high success probability setting, without using more space, including 2\ell_2 norm estimation, 2\ell_2 heavy hitters, point query with 1\ell_1 or 2\ell_2 error, etc. Our algorithm generalizes, with the same update time and space, to maintaining logn\log n linear sketches, where each sketch partitions the coordinates into k<logo(1)nk<\log^{o(1)} n buckets using a cc-wise independent hash function for constant cc, and maintains the sum of coordinates for each bucket. Moreover, if arbitrary word operations are allowed, the update time can be further improved to O(log0.187n)O(\log^{0.187} n), where 0.187ω/210.187\approx \omega/2-1. Our update algorithm is adaptive, and it circumvents the non-adaptive cell-probe lower bounds for turnstile streaming algorithms by Larsen, Nelson and Nguy{\^{e}}n (STOC'15). On the other hand, our result also shows that proving unconditional cell-probe lower bound for the update time seems very difficult, even if the space is restricted to be (nearly) the optimum. If ω=2\omega=2, the cell-probe update time of our algorithm would be logo(1)n\log^{o(1)} n. Hence, proving any higher lower bound would imply ω>2\omega>2.

Keywords

Cite

@article{arxiv.1911.01351,
  title  = {Faster Update Time for Turnstile Streaming Algorithms},
  author = {Josh Alman and Huacheng Yu},
  journal= {arXiv preprint arXiv:1911.01351},
  year   = {2019}
}

Comments

To appear in SODA 2020

R2 v1 2026-06-23T12:04:20.619Z