数据流中的不同元素:一个教科书级算法
Distinct Elements in Streams: An Algorithm for the (Text) Book
AI总结:
针对数据流中估计不同元素数量的问题,现有最优算法因依赖两两独立等复杂概念而难以进入本科教材。本文提出了一种简单直观、基于采样且空间高效的算法,其描述与证明仅要求基础概率论知识,适合本科生学习。
摘要:
给定一个包含 $m$ 个元素的数据流 $\mathcal{A} = \langle a_1, a_2, \ldots, a_m \rangle$,其中每个 $a_i \in [n]$,Distinct Elements 问题旨在估计 $\mathcal{A}$ 中不同元素的数量。过去四十年间,Distinct Elements 一直是理论与实证研究的课题,并由此产生了空间最优算法。然而,所有当前的最先进算法都超出了本科教材的范围,因为它们依赖于两两独立和通用哈希函数等概念。我们提出了一种简单、直观、基于采样且空间高效的算法,其描述和证明对于具备基础概率论知识的本科生而言是易于理解的。
英文摘要:
Given a data stream $\mathcal{A} = \langle a_1, a_2, \ldots, a_m \rangle$ of $m$ elements where each $a_i \in [n]$, the Distinct Elements problem is to estimate the number of distinct elements in $\mathcal{A}$.Distinct Elements has been a subject of theoretical and empirical investigations over the past four decades resulting in space optimal algorithms for it.All the current state-of-the-art algorithms are, however, beyond the reach of an undergraduate textbook owing to their reliance on the usage of notions such as pairwise independence and universal hash functions. We present a simple, intuitive, sampling-based space-efficient algorithm whose description and the proof are accessible to undergraduates with the knowledge of basic probability theory.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。