Charting the tractability frontier of certain conjunctive query answering
Author:
Open Access
- 22 June 2013
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 189-200
Abstract
An uncertain database is defined as a relational database in which primary keys need not be satisfied. A repair (or possible world) of such database is obtained by selecting a maximal number of tuples without ever selecting two distinct tuples with the same primary key value. For a Boolean query q, the decision problem CERTAINTY(q) takes as input an uncertain database db and asks whether q is satisfied by every repair of db. Our main focus is on acyclic Boolean conjunctive queries without self-join. Previous work has introduced the notion of (directed) attack graph of such queries, and has proved that CERTAINTY(q) is first-order expressible if and only if the attack graph of q is acyclic. The current paper investigates the boundary between tractability and intractability of CERTAINTY(q). We first classify cycles in attack graphs as either weak or strong, and then prove among others the following. If the attack graph of a query q contains a strong cycle, then CERTAINTY(q) is coNP-complete. If the attack graph of q contains no strong cycle and every weak cycle is terminal (i.e., no edge leads from a vertex in the cycle to a vertex outside the cycle), then CERTAINTY(q) is in P. We then partially address the only remaining open case, i.e., when the attack graph contains some nonterminal cycle and no strong cycle. Finally, we establish a relationship between the complexities of CERTAINTY(q) and evaluating q on probabilistic databases.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- A dichotomy in the complexity of counting database repairsJournal of Computer and System Sciences, 2013
- Certain conjunctive query answering in first-order logicACM Transactions on Database Systems, 2012
- A dichotomy in the complexity of consistent query answering for queries with two atomsInformation Processing Letters, 2012
- A remark on the complexity of consistent conjunctive query answering under primary key violationsInformation Processing Letters, 2010
- On the consistent rewriting of conjunctive queries under primary key constraintsInformation Systems, 2009
- Probabilistic databasesCommunications of the ACM, 2009
- First-order query rewriting for inconsistent databasesJournal of Computer and System Sciences, 2007
- Hypertree Decompositions and Tractable QueriesJournal of Computer and System Sciences, 2002
- On the Desirability of Acyclic Database SchemesJournal of the ACM, 1983
- On the Structure of Polynomial Time ReducibilityJournal of the ACM, 1975