Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Chen, Hubie, Greco, Gianluigi, Mengel, Stefan, Scarcello, Francesco
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912022238593024
author Chen, Hubie
Greco, Gianluigi
Mengel, Stefan
Scarcello, Francesco
author_facet Chen, Hubie
Greco, Gianluigi
Mengel, Stefan
Scarcello, Francesco
contents Counting the number of answers to conjunctive queries is a fundamental problem in databases that, under standard assumptions, does not have an efficient solution. The issue is inherently #P-hard, extending even to classes of acyclic instances. To address this, we pinpoint tractable classes by examining the structural properties of instances and introducing the novel concept of #-hypertree decomposition. We establish the feasibility of counting answers in polynomial time for classes of queries featuring bounded #-hypertree width. Additionally, employing novel techniques from the realm of fixed-parameter computational complexity, we prove that, for bounded arity queries, the bounded #-hypertree width property precisely delineates the frontier of tractability for the counting problem. This result closes an important gap in our understanding of the complexity of such a basic problem for conjunctive queries and, equivalently, for constraint satisfaction problems (CSPs). Drawing upon #-hypertree decompositions, a ''hybrid'' decomposition method emerges. This approach leverages both the structural characteristics of the query and properties intrinsic to the input database, including keys or other (weaker) degree constraints that limit the permissible combinations of values. Intuitively, these features may introduce distinct structural properties that elude identification through the ''worst-possible database'' perspective inherent in purely structural methods.
format Preprint
id arxiv_https___arxiv_org_abs_2311_14579
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability
Chen, Hubie
Greco, Gianluigi
Mengel, Stefan
Scarcello, Francesco
Databases
Artificial Intelligence
H.2.4; F.2.2
Counting the number of answers to conjunctive queries is a fundamental problem in databases that, under standard assumptions, does not have an efficient solution. The issue is inherently #P-hard, extending even to classes of acyclic instances. To address this, we pinpoint tractable classes by examining the structural properties of instances and introducing the novel concept of #-hypertree decomposition. We establish the feasibility of counting answers in polynomial time for classes of queries featuring bounded #-hypertree width. Additionally, employing novel techniques from the realm of fixed-parameter computational complexity, we prove that, for bounded arity queries, the bounded #-hypertree width property precisely delineates the frontier of tractability for the counting problem. This result closes an important gap in our understanding of the complexity of such a basic problem for conjunctive queries and, equivalently, for constraint satisfaction problems (CSPs). Drawing upon #-hypertree decompositions, a ''hybrid'' decomposition method emerges. This approach leverages both the structural characteristics of the query and properties intrinsic to the input database, including keys or other (weaker) degree constraints that limit the permissible combinations of values. Intuitively, these features may introduce distinct structural properties that elude identification through the ''worst-possible database'' perspective inherent in purely structural methods.
title Counting Solutions to Conjunctive Queries: Structural and Hybrid Tractability
topic Databases
Artificial Intelligence
H.2.4; F.2.2
url https://arxiv.org/abs/2311.14579