arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1203.1952cs.DBcs.DSmath.CO
收藏

最坏情况下的最优连接算法

Worst-case Optimal Join Algorithms

Hung Q. Ngo, Ely Porat, Christopher Ré, Atri Rudra

摘要:

有效的连接处理是数据库研究中最基本和研究最多的任务之一。在这项工作中,我们研究算法的自然连接查询在许多关系,并描述了一种新的算法来处理这些查询最佳的最坏情况下的数据复杂性。我们的结果建立在Atserias、Grohe和Marx最近的工作基础上,他们根据查询主体中各个关系的大小给出了完整合取查询大小的界限。然而,这些界限不是建设性的:它们依赖于希勒的熵不等式,这是信息论的。因此,以前的结果留下开放的问题,是否存在算法的运行时间达到这些最佳的界限。这个问题的答案可能是有趣的数据库实践,因为它是已知的,通常在RDBMS中采用的传统的选择-项目-连接风格的计划的基础上的任何算法是渐近慢于某些查询的最佳。我们构造了一个算法,其运行时间是最坏情况下的所有自然连接查询的最优。我们的结果可能是独立的利益,因为我们的算法也产生了一个建设性的证明一般分数覆盖范围由Atserias,Grohe,马克思不使用希勒不等式。这个界包含了两个著名的几何不等式:Loomis-Whitney不等式和Bollobás-Escherason不等式。因此,我们的结果也证明了这些不等式。最后,我们将讨论如何使用我们的算法来计算一个宽松的连接概念。

英文摘要:

Efficient join processing is one of the most fundamental and well-studied tasks in database research. In this work, we examine algorithms for natural join queries over many relations and describe a novel algorithm to process these queries optimally in terms of worst-case data complexity. Our result builds on recent work by Atserias, Grohe, and Marx, who gave bounds on the size of a full conjunctive query in terms of the sizes of the individual relations in the body of the query. These bounds, however, are not constructive: they rely on Shearer's entropy inequality which is information-theoretic. Thus, the previous results leave open the question of whether there exist algorithms whose running time achieve these optimal bounds. An answer to this question may be interesting to database practice, as it is known that any algorithm based on the traditional select-project-join style plans typically employed in an RDBMS are asymptotically slower than the optimal for some queries. We construct an algorithm whose running time is worst-case optimal for all natural join queries. Our result may be of independent interest, as our algorithm also yields a constructive proof of the general fractional cover bound by Atserias, Grohe, and Marx without using Shearer's inequality. This bound implies two famous inequalities in geometry: the Loomis-Whitney inequality and the Bollobás-Thomason inequality. Hence, our results algorithmically prove these inequalities as well. Finally, we discuss how our algorithm can be used to compute a relaxed notion of joins.

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

↑