arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1611.01853cs.DBcs.DS
收藏

小样本集表达式基数精确估计的MTS框架

MTS Sketch for Accurate Estimation of Set-Expression Cardinalities from Small Samples

Reuven Cohen, Liran Katzir, Aviv Yehezkel

摘要:

基于草图的流算法允许有效处理大数据。这些算法使用小的固定大小的存储器来存储输入数据的概要(“草图”),并且使用概率算法来估计期望的量。然而,在许多实际应用中,收集和处理整个数据流是不切实际的,因此通常的做法是只对其中的一小部分进行采样和处理。虽然采样对于处理海量数据集至关重要,但它可能会降低准确性。在本文中,我们提出了一个新的框架,可以准确地估计基数的任何集合表达式之间的任何数量的流只使用一个小样本的每个流。建议的框架包括一个新的草图,称为最大项与子样本(MTS),和一个家庭的算法,使用这个草图。可以使用所提出的草图来有效地回答的可能的查询的示例是,有多少不同的元组出现在表$T_1$和$T_2$中,但不在$T_3$中?本文提出的算法准确地回答这样的查询,只处理每个表中的元组的一小部分样本,并使用恒定的内存量。这样的估计是有用的查询在非常大的数据库系统的优化。我们表明,我们所有的算法是无偏的,我们分析了它们的渐近方差。

英文摘要:

Sketch-based streaming algorithms allow efficient processing of big data. These algorithms use small fixed-size storage to store a summary ("sketch") of the input data, and use probabilistic algorithms to estimate the desired quantity. However, in many real-world applications it is impractical to collect and process the entire data stream, the common practice is thus to sample and process only a small part of it. While sampling is crucial for handling massive data sets, it may reduce accuracy. In this paper we present a new framework that can accurately estimate the cardinality of any set expression between any number of streams using only a small sample of each stream. The proposed framework consists of a new sketch, called Maximal-Term with Subsample (MTS), and a family of algorithms that use this sketch. An example of a possible query that can be efficiently answered using the proposed sketch is, How many distinct tuples appear in tables $T_1$ and $T_2$, but not in $T_3$? The algorithms presented in this paper answer such queries accurately, processing only a small sample of the tuples in each table and using a constant amount of memory. Such estimations are useful for the optimization of queries over very large database systems. We show that all our algorithms are unbiased, and we analyze their asymptotic variance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑