[关闭]
@740340735 2016-01-01T07:02:29.000000Z 字数 526 阅读 515

Exercise 6.1

算法设计与分析


Problem
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.
Proof:

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.


添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注