[Paper Review] Finding Smallest Witnesses for Conjunctive Queries
This paper studies the smallest witness problem (SWP) for conjunctive queries (CQs) without self-joins, establishing a dichotomy: SWP is solvable in polynomial time if and only if the query has the head-cluster property. For approximation, it identifies head-domination as the key property—queries with it admit constant-factor approximation, while those without cannot be approximated within a logarithmic factor unless P = NP. The paper further provides approximation algorithms for specific CQ classes, including greedy and reduction-based methods, and establishes strong inapproximability bounds.
A witness is a sub-database that preserves the query results of the original database but of much smaller size. It has wide applications in query rewriting and debugging, query explanation, IoT analytics, multi-layer network routing, etc. In this paper, we study the smallest witness problem (SWP) for the class of conjunctive queries (CQs) without self-joins. We first establish the dichotomy that SWP for a CQ can be computed in polynomial time if and only if it has head-cluster property, unless P = NP. We next turn to the approximated version by relaxing the size of a witness from being minimum. We surprisingly find that the head-domination property - that has been identified for the deletion propagation problem [Kimelfeld et al., 2012] - can also precisely capture the hardness of the approximated smallest witness problem. In polynomial time, SWP for any CQ with head-domination property can be approximated within a constant factor, while SWP for any CQ without such a property cannot be approximated within a logarithmic factor, unless P = NP. We further explore efficient approximation algorithms for CQs without head-domination property: (1) we show a trivial algorithm which achieves a polynomially large approximation ratio for general CQs; (2) for any CQ with only one non-output attribute, such as star CQs, we show a greedy algorithm with a logarithmic approximation ratio; (3) for line CQs, which contain at least two non-output attributes, we relate SWP problem to the directed steiner forest problem, whose algorithms can be applied to line CQs directly. Meanwhile, we establish a much higher lower bound, exponentially larger than the logarithmic lower bound obtained above. It remains open to close the gap between the lower and upper bound of the approximated SWP for CQs without head-domination property.
Motivation & Objective
- To determine the exact tractability boundary for computing the smallest witness in conjunctive queries without self-joins.
- To characterize the approximability of the smallest witness problem using the head-domination property.
- To develop efficient approximation algorithms for CQs lacking head-domination, especially for star and line CQs.
- To establish tight inapproximability lower bounds for the approximated SWP problem.
- To explore connections between SWP and other problems such as directed Steiner forest and partial set cover.
Proposed method
- Prove a dichotomy: SWP is in P iff the query has the head-cluster property, under the assumption P ≠ NP.
- Introduce the head-domination property as a precise characterization for approximability: constant-factor approximation is possible iff head-domination holds.
- Propose a trivial approximation algorithm with polynomial approximation ratio for general CQs.
- Design a greedy algorithm achieving a logarithmic approximation ratio for CQs with only one non-output attribute (e.g., star CQs).
- Reduce SWP for line CQs to the directed Steiner forest (DSF) problem, enabling application of existing DSF algorithms.
- Establish a super-polynomial inapproximability lower bound via a direct reduction from label cover to SWP for line CQs, showing Ω(2(log N)^{1−ϵ}) inapproximability.
Experimental results
Research questions
- RQ1When is the smallest witness problem (SWP) for a conjunctive query solvable in polynomial time?
- RQ2What structural property of a conjunctive query determines whether SWP admits a constant-factor approximation?
- RQ3Can we design efficient approximation algorithms for CQs that lack the head-domination property?
- RQ4What are the strongest possible inapproximability bounds for SWP in CQs without head-domination?
- RQ5How does SWP relate to other fundamental problems like directed Steiner forest and partial set cover?
Key findings
- SWP for a conjunctive query is solvable in polynomial time if and only if the query has the head-cluster property, assuming P ≠ NP.
- The head-domination property precisely captures the approximability of SWP: constant-factor approximation is possible iff head-domination holds.
- For CQs without head-domination, no polynomial-time algorithm can achieve a logarithmic approximation ratio unless P = NP.
- A greedy algorithm achieves a logarithmic approximation ratio for CQs with a single non-output attribute, such as star CQs.
- For line CQs, SWP can be reduced to the directed Steiner forest problem, enabling approximation within O(min{|Q(D)|^{1/2+o(1)}, dom^{0.5778}, N^{1/2}}).
- An exponential inapproximability lower bound of Ω(2(log N)^{1−ϵ}) is established for SWP on line CQs, under the assumption P ≠ NP.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.