An Improved Interactive Streaming Algorithm for the Distinct Elements Problem

preprint2014arXivOpen access

Abstract

The exact computation of the number of distinct elements (frequency moment F0F_0) is a fundamental problem in the study of data streaming algorithms. We denote the length of the stream by nn where each symbol is drawn from a universe of size mm. While it is well known that the moments F0,F1,F2F_0,F_1,F_2 can be approximated by efficient streaming algorithms, it is easy to see that exact computation of F0,F2F_0,F_2 requires space Ω(m)Ω(m). In previous work, Cormode et al. therefore considered a model where the data stream is also processed by a powerful helper, who provides an interactive proof of the result. They gave such protocols with a polylogarithmic number of rounds of communication between helper and verifier for all functions in NC. This number of rounds (O(log⁡2m)  in the case of  F0)\left(O(\log^2 m) \;\text{in the case of} \;F_0 \right) can quickly make such protocols impractical. Cormode et al. also gave a protocol with log⁡m+1\log m +1 rounds for the exact computation of F0F_0 where the space complexity is O(log⁡mlog⁡n+log⁡2m)O\left(\log m \log n+\log^2 m\right) but the total communication O(nlog⁡m(log⁡n+log⁡m))O\left(\sqrt{n}\log m\left(\log n+ \log m \right)\right). They managed to give log⁡m\log m round protocols with polylog⁡(m,n)\operatorname{polylog}(m,n) complexity for many other interesting problems including F2F_2, Inner product, and Range-sum, but computing F0F_0 exactly with polylogarithmic space and communication and O(log⁡m)O(\log m) rounds remained open. In this work, we give a streaming interactive protocol with log⁡m\log m rounds for exact computation of F0F_0 using O(log⁡m( log⁡n+log⁡mlog⁡log⁡m ))O\left(\log m \left(\,\log n + \log m \log\log m\,\right)\right) bits of space and the communication is O(log⁡m( log⁡n+log⁡3m(log⁡log⁡m)2 ))O\left( \log m \left(\,\log n +\log^3 m (\log\log m)^2 \,\right)\right). The update time of the verifier per symbol received is O(log⁡2m)O(\log^2 m).

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.