arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.00111cs.DBcs.DScs.ITmath.IT
收藏

用函数相似性计算连接图

Computing Join Queries with Functional Dependencies

Mahmoud Abo Khamis, Hung Q. Ngo, Dan Suciu

摘要:

最近,Gottlob,Lee,Valiant,和Valiant(GLVV)提出了一个输出大小界的连接查询与功能依赖(FD),基于线性规划的polymatroids。GLVV界严格地概括了Atserias,Grohe和Marx(AGM)对于没有FD的查询的界,在这种情况下,存在在AGM界内运行的已知算法,因此是最坏情况下的最优算法。本文的一个主要结果是一个算法计算连接查询FD,运行在GLVV绑定到一个多日志因子。特别是,我们的算法是最坏情况下的最佳任何查询的GLVV界是紧的。作为一个意想不到的副产品,我们的算法设法解决一个更难的问题,其中(一些)输入关系可能有规定的最大程度的界限,其中函数依赖关系和基数界限是特殊情况。我们扩展了Gottlob等人的框架,用闭集的格替换所有变量子集(在给定的FD下)。这给了我们新的见解的结构的最坏情况的界限和最坏情况的情况下。虽然一般情况下GLVV界是否是紧的还没有定论,但我们证明了它在分配格和其他一些简单格上是紧的。分布格捕获没有FD和具有简单FD的查询的严格超集。我们还提出了两个更简单的算法,也是最坏情况下的最佳分配格内的一个单一的$\log$因素,但他们不匹配的GLVV约束上的一般格。我们的算法是基于一个新的原则设计的:我们把一个基于多项式的输出大小绑定到一个算法的证明。

英文摘要:

Recently, Gottlob, Lee, Valiant, and Valiant (GLVV) presented an output size bound for join queries with functional dependencies (FD), based on a linear program on polymatroids. GLVV bound strictly generalizes the bound of Atserias, Grohe and Marx (AGM) for queries with no FD, in which case there are known algorithms running within AGM bound and thus are worst-case optimal. A main result of this paper is an algorithm for computing join queries with FDs, running within GLVV bound up to a poly-log factor. In particular, our algorithm is worst-case optimal for any query where the GLVV bound is tight. As an unexpected by-product, our algorithm manages to solve a harder problem, where (some) input relations may have prescribed maximum degree bounds, of which both functional dependencies and cardinality bounds are special cases. We extend Gottlob et al. framework by replacing all variable subsets with the lattice of closed sets (under the given FDs). This gives us new insights into the structure of the worst-case bound and worst-case instances. While it is still open whether GLVV bound is tight in general, we show that it is tight on distributive lattices and some other simple lattices. Distributive lattices capture a strict superset of queries with no FD and with simple FDs. We also present two simpler algorithms which are also worst-case optimal on distributive lattices within a single-$\log$ factor, but they do not match GLVV bound on a general lattice. Our algorithms are designed based on a novel principle: we turn a proof of a polymatroid-based output size bound into an algorithm.

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

↑