Papers
Topics
Authors
Recent
Search
2000 character limit reached

Box Covers and Domain Orderings for Beyond Worst-Case Join Processing

Published 26 Sep 2019 in cs.DB | (1909.12102v3)

Abstract: Recent beyond worst-case optimal join algorithms Minesweeper and its generalization Tetris have brought the theory of indexing and join processing together by developing a geometric framework for joins. These algorithms take as input an index B\mathcal{B}, referred to as a box cover, that stores output gaps that can be inferred from traditional indexes, such as B+ trees or tries, on the input relations. The performances of these algorithms highly depend on the certificate of B\mathcal{B}, which is the smallest subset of gaps in B\mathcal{B} whose union covers all of the gaps in the output space of a query QQ. We study how to generate box covers that contain small size certificates to guarantee efficient runtimes for these algorithms. First, given a query QQ over a set of relations of size NN and a fixed set of domain orderings for the attributes, we give a O~(N)\tilde{O}(N)-time algorithm called GAMB which generates a box cover for QQ that is guaranteed to contain the smallest size certificate across any box cover for QQ. Second, we show that finding a domain ordering to minimize the box cover size and certificate is NP-hard through a reduction from the 2 consecutive block minimization problem on boolean matrices. Our third contribution is a O~(N)\tilde{O}(N)-time approximation algorithm called ADORA to compute domain orderings, under which one can compute a box cover of size O~(K<sup>r)\tilde{O}(K<sup>r), where KK is the minimum box cover for QQ under any domain ordering and rr is the maximum arity of any relation. This guarantees certificates of size O~(K<sup>r)\tilde{O}(K<sup>r). We combine ADORA and GAMB with Tetris to form a new algorithm we call TetrisReordered, which provides several new beyond worst-case bounds. On infinite families of queries, TetrisReordered's runtimes are unboundedly better than the bounds stated in prior work.

Citations (14)

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.