Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations

被引:0
|
作者
Focke, Jacob [1 ]
Goldberg, Leslie ann [2 ]
Roth, Marc [3 ]
Zivny, Stanislav [1 ,2 ]
机构
[1] CISPA Helmholtz Ctr Informat Secur, Saarbrucken, Germany
[2] Univ Oxford, Dept Comp Sci, Oxford, England
[3] Queen Mary Univ London, Sch Elect Engn & Comp Sci, London, England
基金
欧洲研究理事会;
关键词
approximate counting; conjunctive queries; fully polynomial randomised approximation scheme (FPRAS); fixed-parameter tractable randomised approximation scheme (FPTRAS); COMPLEXITY; HOMOMORPHISMS;
D O I
10.1145/3689634
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We study the complexity of approximating the number of answers to a small query q in a large database D. We establish an exhaustive classification into tractable and intractable cases if q is a conjunctive query possibly including disequalities and negations: - If there is a constant bound on the arity of q , and if the randomised Exponential Time Hypothesis (rETH) holds, then the problem has a fixed-parameter tractable approximation scheme (FPTRAS) if and only if the treewidth of q is bounded. - If the arity is unbounded and q does not have negations, then the problem has an FPTRAS if and only if the adaptive width of q (a width measure strictly more general than treewidth) is bounded; the lower bound relies on the rETH as well. Additionally we show that our results cannot be strengthened to achieve a fully polynomial randomised approximation scheme (FPRAS): We observe that, unless NP = RP, there is no FPRAS even if the treewidth (and the adaptive width) is 1. However, if there are neither disequalities nor negations, we prove the existence of an FPRAS for queries of bounded fractional hypertreewidth, strictly generalising the recently established FPRAS for conjunctive queries with bounded hypertreewidth due to Arenas, Croquevielle, Jayaram and Riveros (STOC 2021).
引用
收藏
页数:29
相关论文
共 50 条
  • [21] ORDERING CONJUNCTIVE QUERIES
    SMITH, DE
    GENESERETH, MR
    ARTIFICIAL INTELLIGENCE, 1985, 26 (02) : 171 - 215
  • [22] Dynamic conjunctive queries
    Zeume, Thomas
    Schwentick, Thomas
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2017, 88 : 3 - 26
  • [23] Bounded Conjunctive Queries
    Cao, Yang
    Fani, Wenfei
    Wo, Tianyu
    Yu, Wenyuan
    PROCEEDINGS OF THE VLDB ENDOWMENT, 2014, 7 (12): : 1231 - 1242
  • [24] On Horn Conjunctive Queries
    Alfonso, Enrique Matos
    Stamou, Giorgos
    RULES AND REASONING (RULEML+RR 2018), 2018, 11092 : 115 - 130
  • [25] On the containment of conjunctive queries
    Lausen, G
    Wei, F
    COMPUTER SCIENCE IN PERSPECTIVE: ESSAYS DEDICATED TO THOMAS OTTMANN, 2003, 2598 : 231 - 244
  • [26] Conjunctive Queries with Comparisons
    Wang, Qichen
    Yi, Ke
    SIGMOD RECORD, 2023, 52 (01) : 54 - 62
  • [27] On the First-order Expressibility of Computing Certain Answers to Conjunctive Queries over Uncertain Databases
    Wijsen, Jef
    PODS 2010: PROCEEDINGS OF THE TWENTY-NINTH ACM SIGMOD-SIGACT-SIGART SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS, 2010, : 179 - 189
  • [28] Answering Conjunctive Queries with Inequalities
    Koutris, Paraschos
    Milo, Tova
    Roy, Sudeepa
    Suciu, Dan
    THEORY OF COMPUTING SYSTEMS, 2017, 61 (01) : 2 - 30
  • [29] Answering Conjunctive Queries with Inequalities
    Paraschos Koutris
    Tova Milo
    Sudeepa Roy
    Dan Suciu
    Theory of Computing Systems, 2017, 61 : 2 - 30
  • [30] Fitting Algorithms for Conjunctive Queries
    ten Cate, Balder
    Funk, Maurice
    Jung, Jean Christoph
    Lutz, Carsten
    SIGMOD RECORD, 2023, 52 (04) : 6 - 18