Skip to main navigation Skip to search Skip to main content

Beyond worst-case analysis for joins with Minesweeper

  • Hung Q. Ngo
  • , Dung T. Nguyen
  • , Christopher Ré
  • , Atri Rudra
  • SUNY Buffalo
  • Stanford University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

47 Scopus citations

Abstract

We describe a new algorithm, Minesweeper, that is able to satisfy stronger runtime guarantees than previous join algorithms (colloquially, 'beyond worst-case guarantees') for data in indexed search trees. Our first contribution is developing a framework to measure this stronger notion of complexity, which we call certificate complexity, that extends notions of Barbay et al. and Demaine et al.; a certificate is a set of propositional formulae that certifies that the output is correct. This notion captures a natural class of join algorithms. In addition, the certificate allows us to define a strictly stronger notion of runtime complexity than traditional worst-case guarantees. Our second contribution is to develop a dichotomy theorem for the certificate-based notion of complexity. Roughly, we show that Minesweeper evaluates β-acyclic queries in time linear in the certificate plus the output size, while for any β-cyclic query there is some instance that takes superlinear time in the certificate (and for which the output is no larger than the certificate size). We also extend our certificate-complexity analysis to queries with bounded treewidth and the triangle query. We present empirical results that certificates can be much smaller than the input size, which suggests that ideas in minesweeper might lead to faster algorithms in practice.

Original languageEnglish
Title of host publicationPODS 2014 - Proceedings of the 33rd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems
PublisherAssociation for Computing Machinery
Pages234-245
Number of pages12
ISBN (Print)9781450323758, 9781450323758
DOIs
StatePublished - Jun 18 2014
Event33rd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS 2014 - Snowbird, UT, United States
Duration: Jun 22 2014Jun 27 2014

Publication series

NameProceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems
ISSN (Print)1055-6338

Conference

Conference33rd ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS 2014
Country/TerritoryUnited States
CitySnowbird, UT
Period06/22/1406/27/14

Keywords

  • Adaptive algorithm
  • Beta-acyclic queries
  • Bounded treewidth
  • Certificate
  • Instance optimality
  • Join algorithms
  • Triangle query

Fingerprint

Dive into the research topics of 'Beyond worst-case analysis for joins with Minesweeper'. Together they form a unique fingerprint.

Cite this