Hypertree Decompositions and Tractable Queries

12/28/1998
by   G. Gottlob, et al.
0

Several important decision problems on conjunctive queries (CQs) are NP-complete in general but become tractable, and actually highly parallelizable, if restricted to acyclic or nearly acyclic queries. Examples are the evaluation of Boolean CQs and query containment. These problems were shown tractable for conjunctive queries of bounded treewidth and of bounded degree of cyclicity. The so far most general concept of nearly acyclic queries was the notion of queries of bounded query-width introduced by Chekuri and Rajaraman (1997). While CQs of bounded query width are tractable, it remained unclear whether such queries are efficiently recognizable. Chekuri and Rajaraman stated as an open problem whether for each constant k it can be determined in polynomial time if a query has query width less than or equal to k. We give a negative answer by proving this problem NP-complete (specifically, for k=4). In order to circumvent this difficulty, we introduce the new concept of hypertree decomposition of a query and the corresponding notion of hypertree width. We prove: (a) for each k, the class of queries with query width bounded by k is properly contained in the class of queries whose hypertree width is bounded by k; (b) unlike query width, constant hypertree-width is efficiently recognizable; (c) Boolean queries of constant hypertree width can be efficiently evaluated.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/02/2020

Constant delay enumeration with FPT-preprocessing for conjunctive queries of bounded submodular width

Marx (STOC 2010, J. ACM 2013) introduced the notion of submodular width ...
research
12/23/2017

The tractability frontier of well-designed SPARQL queries

We study the complexity of query evaluation of SPARQL queries. We focus ...
research
03/23/2021

Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations

We study the complexity of approximating the number of answers to a smal...
research
07/17/2020

Tractability Beyond β-Acyclicity for Conjunctive Queries with Negation

Numerous fundamental database and reasoning problems are known to be NP-...
research
04/01/2019

A More General Theory of Static Approximations for Conjunctive Queries

Conjunctive query (CQ) evaluation is NP-complete, but becomes tractable ...
research
08/14/2018

Evaluating Datalog via Tree Automata and Cycluits

We investigate parameterizations of both database instances and queries ...
research
01/13/2022

Rewriting with Acyclic Queries: Mind your Head

The paper studies the rewriting problem, that is, the decision problem w...

Please sign up or login with your details

Forgot password? Click here to reset