Worst-case Optimal Join Algorithms

被引:71
|
作者
Ngo, Hung Q. [1 ,4 ]
Porat, Ely [2 ]
Re, Christopher [3 ,5 ]
Rudra, Atri [1 ,4 ]
机构
[1] Univ Buffalo SUNY, Buffalo, NY 14260 USA
[2] Bar Ilan Univ, IL-5290002 Ramat Gan, Israel
[3] Stanford Univ, Stanford, CA 94305 USA
[4] Univ Buffalo, 338 Davis Hall, Buffalo, NY 14214 USA
[5] Gates Comp Sci Bldg,353 Serra Mall, Stanford, CA 94305 USA
基金
美国国家科学基金会;
关键词
Join Algorithms; fractional cover bound; Loomis-Whitney inequality; Bollobas-Thomason inequality; QUERY EVALUATION; NUMBER; BOUNDS; SETS;
D O I
10.1145/3180143
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
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 new 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 natural join 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 runtimes achieve these optimal bounds. An answer to this question may be interesting to database practice, as we show in this article that any project-join style plans, such as ones typically employed in a relational database management system, are asymptotically slower than the optimal for some queries. We present an algorithm whose runtime 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 its generalization, the Bollobas-Thomason inequality. Hence, our results algorithmically prove these inequalities as well. Finally, we discuss how our algorithm can be used to evaluate full conjunctive queries optimally, to compute a relaxed notion of joins and to optimally (in the worst-case) enumerate all induced copies of a fixed subgraph inside of a given large graph.
引用
收藏
页数:40
相关论文
共 50 条
  • [21] On the worst-case disturbance of minimax optimal control
    Yoon, MG
    Ugrinovskii, VA
    Petersen, IR
    PROCEEDINGS OF THE 41ST IEEE CONFERENCE ON DECISION AND CONTROL, VOLS 1-4, 2002, : 604 - 609
  • [22] Worst-case optimal exploration of terrains with obstacles
    Czyzowicz, Jurek
    Ilcinkas, David
    Labourel, Arnaud
    Pelc, Andrzej
    INFORMATION AND COMPUTATION, 2013, 225 : 16 - 28
  • [23] Worst-Case Optimal Adaptive Prefix Coding
    Gagie, Travis
    Nekrich, Yakov
    ALGORITHMS AND DATA STRUCTURES, 2009, 5664 : 315 - +
  • [24] Worst-case complexity of the optimal LLL algorithm
    Akhavi, A
    LATIN 2000: THEORETICAL INFORMATICS, 2000, 1776 : 355 - 366
  • [25] Worst-Case Optimal Redistribution of VCG Payments
    Guo, Mingyu
    Conitzer, Vincent
    EC'07: PROCEEDINGS OF THE EIGHTH ANNUAL CONFERENCE ON ELECTRONIC COMMERCE, 2007, : 30 - 39
  • [26] WORST-CASE OPTIMAL SQUARES PACKING INTO DISKS
    Fekete, Sandor P.
    Gurunathan, Vijaykrishna
    Juneja, Kushagra
    Keldenich, Phillip
    Kleist, Linda
    Scheffer, Christian
    JOURNAL OF COMPUTATIONAL GEOMETRY, 2021, 12 (02) : 149 - 175
  • [27] Worst-case optimal approximation algorithms for maximizing triplet consistency within phylogenetic networks
    Centrum voor Wiskunde en Informatica, Kruislaan 413, NL-1098 SJ Amsterdam, Netherlands
    不详
    不详
    不详
    J. Discrete Algorithms, 1 (65-75):
  • [28] Worst-case optimal approximation algorithms for maximizing triplet consistency within phylogenetic networks
    Byrka, Jaroslaw
    Gawrychowski, Pawel
    Huber, Katharina T.
    Kelk, Steven
    JOURNAL OF DISCRETE ALGORITHMS, 2010, 8 (01) : 65 - 75
  • [29] Worst-Case Optimal Covering of Rectangles by Disks
    Fekete, Sandor P.
    Gupta, Utkarsh
    Keldenich, Phillip
    Shah, Sahil
    Scheffer, Christian
    DISCRETE & COMPUTATIONAL GEOMETRY, 2024, 72 (03) : 1232 - 1283
  • [30] WORST-CASE OPTIMAL SQUARES PACKING INTO DISKS
    Fekete, Sandor P.
    Gurunathan, Vijaykrishna
    Juneja, Kushagra
    Keldenich, Phillip
    Kleist, Linda
    Scheffer, Christian
    JOURNAL OF COMPUTATIONAL GEOMETRY, 2022, 13 (02) : 3 - 29