加载中…
Estimating the second frequency moment of a stream up to multiplicative error requires at most bits of space, due to a seminal result of Alon, Matias, and Szegedy. It is also known that at least space is needed. We prove an optimal lower bound of for all . Note that when , where , our lower bound matches the classic upper bound of AMS. For smaller values of we also introduce a revised algorithm that improves the classic AMS bound and matches our lower bound.

生成讲解博客的中文版本

生成AI智能校验的中文版本