Skip to main content
QUICK REVIEW

[Paper Review] Charting the Tractability Frontier of Certain Conjunctive Query Answering

Jef Wijsen|arXiv (Cornell University)|Jan 6, 2013
Data Management and AlgorithmsComputer Science16 references5 citations
TL;DR

This paper establishes a precise tractability frontier for certain conjunctive query answering in uncertain databases by analyzing the structure of attack graphs derived from acyclic Boolean conjunctive queries. It proves that ${\mathsf{CERTAINTY}}({q})$ is coNP-complete if the attack graph contains a strong cycle, and is in P if it has no strong cycles and all weak cycles are terminal; the remaining case—nonterminal weak cycles without strong cycles—remains partially open, with implications for the complexity of probabilistic query evaluation.

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 of it 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.

Motivation & Objective

  • To determine the boundary between tractability (P) and intractability (coNP-complete) for ${\mathsf{CERTAINTY}}({q})$ in acyclic Boolean conjunctive queries without self-join.
  • To classify cycles in attack graphs as weak or strong, and analyze their impact on query complexity.
  • To resolve the complexity of ${\mathsf{CERTAINTY}}({q})$ for queries whose attack graphs contain nonterminal weak cycles and no strong cycles, a previously open case.
  • To clarify the relationship between the complexity of ${\mathsf{CERTAINTY}}({q})$ and probabilistic query evaluation on block-independent-disjoint (BID) databases.

Proposed method

  • The paper introduces a directed attack graph for acyclic Boolean conjunctive queries, where vertices represent query atoms and edges represent key conflicts between tuples.
  • It classifies cycles in the attack graph as weak or strong based on structural constraints in the query’s primary key dependencies.
  • It applies graph-theoretic techniques to analyze reachability and cycle structure, particularly focusing on terminal and nonterminal cycles.
  • It uses reductions to prove coNP-completeness when strong cycles are present, and constructs polynomial-time algorithms for cases with only terminal weak cycles.
  • It leverages results from prior work on first-order expressibility and probabilistic query complexity to contextualize the open case.
  • It conjectures that the remaining open case—nonterminal weak cycles without strong cycles—defines a P-coNP dichotomy, though a full proof remains elusive.

Experimental results

Research questions

  • RQ1When does ${\mathsf{CERTAINTY}}({q})$ become coNP-complete for acyclic conjunctive queries?
  • RQ2Under what structural conditions on the attack graph is ${\mathsf{CERTAINTY}}({q})$ tractable (i.e., in P)?
  • RQ3What is the complexity of ${\mathsf{CERTAINTY}}({q})$ when the attack graph contains nonterminal weak cycles and no strong cycles?
  • RQ4How does the complexity of ${\mathsf{CERTAINTY}}({q})$ relate to the complexity of probabilistic query evaluation on BID databases?

Key findings

  • If the attack graph of an acyclic query $q$ contains a strong cycle, then ${\mathsf{CERTAINTY}}({q})$ is coNP-complete.
  • If the attack graph contains no strong cycle and all weak cycles are terminal, then ${\mathsf{CERTAINTY}}({q})$ is in P.
  • The only remaining open case is when the attack graph contains nonterminal weak cycles and no strong cycles, where the complexity of ${\mathsf{CERTAINTY}}({q})$ is not yet fully resolved.
  • For queries in this open case, ${\mathsf{CERTAINTY}}({q})$ is not first-order expressible, implying that ${\mathsf{PROBABILITY}}({q})$ is $\natural$P-hard.
  • The results suggest that the tractability frontier of ${\mathsf{CERTAINTY}}({q})$ is more complex than that of probabilistic query evaluation, as the former requires sophisticated polynomial-time algorithms even in restricted cases.
  • The paper conjectures that the class of ${\mathsf{CERTAINTY}}({q})$ for acyclic queries exhibits an effective P-coNP dichotomy, but proving this remains a significant challenge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.