Efficient Algorithm for Deterministic Search of Hot Elements

03/28/2022
by   Dariusz R. Kowalski, et al.
0

When facing a very large stream of data, it is often desirable to extract most important statistics online in a short time and using small memory. For example, one may want to quickly find the most influential users generating posts online or check if the stream contains many identical elements. In this paper, we study streams containing insertions and deletions of elements from a possibly large set N of size |N| = n, that are being processed by online deterministic algorithms. At any point in the stream the algorithm may be queried to output elements of certain frequency in the already processed stream. More precisely, the most frequent elements in the stream so far. The output is considered correct if the returned elements it contains all elements with frequency greater than a given parameter φ and no element with frequency smaller than φ-ϵ. We present an efficient online deterministic algorithm for solving this problem using O(min(n, polylog(n)/ϵ)) memory and O(polylog(n)) time per processing and outputting an element. It is the first such algorithm as the previous algorithms were either randomized, or processed elements in substantially larger time Ω(min(n, log n/ϵ)), or handled only insertions and required two passes over the stream (i.e., were not truly online). Our solution is almost-optimally scalable (with only a polylogarithmic overhead) and does not require randomness or scanning twice through the stream. We complement the algorithm analysis with a lower bound Ω(min(n, 1/ϵ)) on required memory.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
04/04/2023

Tight Space Lower Bound for Pseudo-Deterministic Approximate Counting

We investigate one of the most basic problems in streaming algorithms: a...
research
09/11/2022

An Improved Algorithm For Online Reranking

We study a fundamental model of online preference aggregation, where an ...
research
11/09/2022

Streaming algorithms for the missing item finding problem

Many problems on data streams have been studied at two extremes of diffi...
research
06/27/2023

Randomized vs. Deterministic Separation in Time-Space Tradeoffs of Multi-Output Functions

We prove the first polynomial separation between randomized and determin...
research
06/23/2022

Taking snapshots from a stream

This work is devoted to a certain class of probabilistic snapshots for e...
research
02/18/2020

Managing multiple data streams in R

It is often useful to tap secondary information from a running R script....
research
03/28/2019

Optimal Random Sampling from Distributed Streams Revisited

We give an improved algorithm for drawing a random sample from a large d...

Please sign up or login with your details

Forgot password? Click here to reset