@740340735
2016-01-01T07:02:29.000000Z
字数 526
阅读 515
算法设计与分析
We consider another streaming problem:
Given a data stream , compute the number of distinct elements. That is, compute .
Show that any deterministric algorithm solving the above problem requires at least bits of memory.
As we are going to compute , each element in the the data stream should be count at least once.
That is, each element in could exactly have state: existed or empty.
Thus, we must have at least different states to solve this problem, i.e. the algorithm requires at least bits of memory.
