单遍、单散列n-Gram统计量估计
One-Pass, One-Hash n-Gram Statistics Estimation
摘要:
在多媒体、文本或生物信息学数据库中,应用程序查询称为n-gram的n个连续符号的序列。估计不同n-gram的数量是视图大小估计问题。虽然视图大小可以通过统计假设下的采样来估计,但我们希望有一个具有普遍有效精度界限的不起眼的算法。大多数相关工作都集中在重复散列数据上,这对于大型数据源来说是禁止的。我们证明了一个一遍一哈希算法是足够的准确估计,如果哈希是足够独立的。为了进一步降低成本,我们研究递归随机哈希算法,并表明它们在实践中是足够独立的。我们比较我们的运行时间与使用后缀数组的确切计数,并表明,虽然我们几乎不使用任何存储,我们是一个数量级更快。该方法进一步扩展到n-gram熵和冰山计数的一次通过/一次散列计算。实验使用了大量来自古腾堡计划的英文文本以及合成数据。
英文摘要:
In multimedia, text or bioinformatics databases, applications query sequences of n consecutive symbols called n-grams. Estimating the number of distinct n-grams is a view-size estimation problem. While view sizes can be estimated by sampling under statistical assumptions, we desire an unassuming algorithm with universally valid accuracy bounds. Most related work has focused on repeatedly hashing the data, which is prohibitive for large data sources. We prove that a one-pass one-hash algorithm is sufficient for accurate estimates if the hashing is sufficiently independent. To reduce costs further, we investigate recursive random hashing algorithms and show that they are sufficiently independent in practice. We compare our running times with exact counts using suffix arrays and show that, while we use hardly any storage, we are an order of magnitude faster. The approach further is extended to a one-pass/one-hash computation of n-gram entropy and iceberg counts. The experiments use a large collection of English text from the Gutenberg Project as well as synthetic data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。