A Unifying Algorithm for Hierarchical Queries
Mahmoud Abo Khamis, Jesse Comer, Phokion Kolaitis, Sudeepa Roy, Val Tannen

TL;DR
This paper introduces a unifying polynomial-time algorithm for multiple problems related to hierarchical queries, extending the known tractability boundary to a new bag-set maximization problem.
Contribution
It establishes that hierarchical queries define the boundary of tractability for a new bag-set maximization problem and provides a unified algebraic algorithm for related problems.
Findings
Hierarchical queries allow a polynomial-time solution for several complex problems.
Non-hierarchical queries lead to NP-complete bag-set maximization.
A single algebraic framework unifies solutions for probabilistic evaluation, Shapley value, and bag-set maximization.
Abstract
The class of hierarchical queries is known to define the boundary of the dichotomy between tractability and intractability for the following two extensively studied problems about self-join free Boolean conjunctive queries (SJF-BCQ): (i) evaluating a SJF-BCQ on a tuple-independent probabilistic database; (ii) computing the Shapley value of a fact in a database on which a SJF-BCQ evaluates to true. Here, we establish that hierarchical queries define also the boundary of the dichotomy between tractability and intractability for a different natural algorithmic problem, which we call the "bag-set maximization" problem. The bag-set maximization problem associated with a SJF-BCQ asks: given a database , find the biggest value that takes under bag semantics on a database obtained from by adding at most facts from another given database .…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsConstraint Satisfaction and Optimization · Logic, Reasoning, and Knowledge · Advanced Database Systems and Queries
