保证连接上均匀采样和 OUT 大小估计的 Õ(AGM/OUT) 运行时间
Guaranteeing the Õ(AGM/OUT) Runtime for Uniform Sampling and OUT Size Estimation over Joins
AI总结:
提出一种用于估计连接查询答案数量和均匀采样的新方法,支持任意查询并在 Õ(AGM/OUT) 时间内保证高概率小误差,并利用广义超树分解优化小输出时的复杂度。
摘要:
我们提出了一种新方法,用于估计大型数据库 D 中小型连接查询 Q 的答案数量 OUT,以及进行连接上的均匀采样。我们的方法是首个满足以下所有条件的方法:- 支持任意 Q,既可以是无环的也可以是有环的,并包含二元和非二元关系。- 始终在 Õ(AGM/OUT) 时间内以高概率保证任意小的误差,其中 AGM 是 AGM bound OUT(OUT 的上界),Õ 隐藏了输入大小的多对数因子。我们还在统一框架中解释了以前的连接大小估计器。包括我们方法在内的所有方法都依赖于 D 中关系的某些索引,这些索引需要线性时间离线构建。此外,我们使用广义超树分解(GHDs)扩展了我们的方法,以在 OUT 较小时实现低于 Õ(AGM/OUT) 的复杂度,并提出了提高估计效率和准确性的优化技术。
英文摘要:
We propose a new method for estimating the number of answers OUT of a small join query Q in a large database D, and for uniform sampling over joins. Our method is the first to satisfy all the following statements. - Support arbitrary Q, which can be either acyclic or cyclic, and contain binary and non-binary relations. - Guarantee an arbitrary small error with a high probability always in Õ(AGM/OUT) time, where AGM is the AGM bound OUT (an upper bound of OUT), and Õ hides the polylogarithmic factor of input size. We also explain previous join size estimators in a unified framework. All methods including ours rely on certain indexes on relations in D, which take linear time to build offline. Additionally, we extend our method using generalized hypertree decompositions (GHDs) to achieve a lower complexity than Õ(AGM/OUT) when OUT is small, and present optimization techniques for improving estimation efficiency and accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。