A Dichotomy for the Generalized Model Counting Problem for Unions of Conjunctive Queries

被引:2
|
作者
Kenig, Batya [1 ]
Suciu, Dan [1 ]
机构
[1] Univ Washington, Seattle, WA 98195 USA
关键词
Model counting; Tuple-Independent Databases; #P-hardness;
D O I
10.1145/3452021.3458313
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We study the generalized model counting problem, defined as follows: given a database, and a set of deterministic tuples, count the number of subsets of the database that include all deterministic tuples and satisfy the query. This problem is computationally equivalent to the evaluation of the query over a tuple-independent probabilistic database where all tuples have probabilities in {0, 1/2, 1}. Previous work has established a dichotomy for Unions of Conjunctive Queries (UCQ) when the probabilities are arbitrary rational numbers, showing that, for each query, its complexity is either in polynomial time or #P-hard. The query is called safe in the first case, and unsafe in the second case. Here, we strengthen the hardness proof, by proving that an unsafe UCQ query remains #P-hard even if the probabilities are restricted to {0, 1/2, 1}. This requires a complete redesign of the hardness proof, using new techniques. A related problem is the model counting problem, which asks for the probability of the query when the input probabilities are restricted to {0, 1/2}. While our result does not extend to model counting for all unsafe UCQs, we prove that model counting is #P-hard for a class of unsafe queries called Type-I forbidden queries.
引用
收藏
页码:312 / 324
页数:13
相关论文
共 50 条
  • [1] The Dichotomy of Probabilistic Inference for Unions of Conjunctive Queries
    Dalvi, Nilesh
    Suciu, Dan
    [J]. JOURNAL OF THE ACM, 2012, 59 (06)
  • [2] On the Enumeration Complexity of Unions of Conjunctive Queries
    Carmeli, Nofar
    Kroell, Markus
    [J]. PROCEEDINGS OF THE 38TH ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS (PODS '19), 2019, : 134 - 148
  • [3] On the Enumeration Complexity of Unions of Conjunctive Queries
    Carmeli, Nofar
    Kroell, Markus
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2021, 46 (02):
  • [4] Tractable counting of the answers to conjunctive queries
    Pichler, Reinhard
    Skritek, Sebastian
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2013, 79 (06) : 984 - 1001
  • [5] On preservation under homomorphisms and unions of conjunctive queries
    Atserias, Albert
    Dawar, Anuj
    Kolaitis, Phokion G.
    [J]. JOURNAL OF THE ACM, 2006, 53 (02) : 208 - 237
  • [6] The complexity of weighted counting for acyclic conjunctive queries
    Durand, Arnaud
    Mengel, Stefan
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2014, 80 (01) : 277 - 296
  • [7] When Is Approximate Counting for Conjunctive Queries Tractable?
    Arenas, Marcelo
    Alberto Croquevielle, Luis
    Jayaram, Rajesh
    Riveros, Cristian
    [J]. STOC '21: PROCEEDINGS OF THE 53RD ANNUAL ACM SIGACT SYMPOSIUM ON THEORY OF COMPUTING, 2021, : 1015 - 1027
  • [8] Structural Tractability of Counting of Solutions to Conjunctive Queries
    Durand, Arnaud
    Mengel, Stefan
    [J]. THEORY OF COMPUTING SYSTEMS, 2015, 57 (04) : 1202 - 1249
  • [9] Structural Tractability of Counting of Solutions to Conjunctive Queries
    Arnaud Durand
    Stefan Mengel
    [J]. Theory of Computing Systems, 2015, 57 : 1202 - 1249
  • [10] Rewriting unions of general conjunctive queries using views
    Wang, JH
    Maher, M
    Topor, R
    [J]. ADVANCES IN DATABASE TECHNOLOGY - EDBT 2002, 2002, 2287 : 52 - 69