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 条
  • [1] Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations
    Focke, Jacob
    Goldberg, Leslie Ann
    Roth, Marc
    Zivny, Stanislav
    PROCEEDINGS OF THE 41ST ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS (PODS '22), 2022, : 315 - 324
  • [2] Tractable counting of the answers to conjunctive queries
    Pichler, Reinhard
    Skritek, Sebastian
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2013, 79 (06) : 984 - 1001
  • [3] Direct Access for Conjunctive Queries with Negations
    Capelli, Florent
    Irwin, Oliver
    27TH INTERNATIONAL CONFERENCE ON DATABASE THEORY, ICDT 2024, 2024, 290
  • [4] DIVERSITY OF ANSWERS TO CONJUNCTIVE QUERIES
    Merkl, Timo camillo
    Pichler, Reinhard
    Skritek, Sebastian
    LOGICAL METHODS IN COMPUTER SCIENCE, 2025, 21 (01) : 1 - 35
  • [5] Generalizing Conjunctive Queries for Informative Answers
    Inoue, Katsumi
    Wiese, Lena
    FLEXIBLE QUERY ANSWERING SYSTEMS, 2011, 7022 : 1 - 12
  • [6] Direct Access for Answers to Conjunctive Queries with Aggregation
    Eldar, Idan
    Carmeli, Nofar
    Kimelfeld, Benny
    27TH INTERNATIONAL CONFERENCE ON DATABASE THEORY, ICDT 2024, 2024, 290
  • [7] Structural Tractability of Counting of Solutions to Conjunctive Queries
    Durand, Arnaud
    Mengel, Stefan
    THEORY OF COMPUTING SYSTEMS, 2015, 57 (04) : 1202 - 1249
  • [8] The complexity of weighted counting for acyclic conjunctive queries
    Durand, Arnaud
    Mengel, Stefan
    JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 2014, 80 (01) : 277 - 296
  • [9] When Is Approximate Counting for Conjunctive Queries Tractable?
    Arenas, Marcelo
    Alberto Croquevielle, Luis
    Jayaram, Rajesh
    Riveros, Cristian
    STOC '21: PROCEEDINGS OF THE 53RD ANNUAL ACM SIGACT SYMPOSIUM ON THEORY OF COMPUTING, 2021, : 1015 - 1027
  • [10] Structural Tractability of Counting of Solutions to Conjunctive Queries
    Arnaud Durand
    Stefan Mengel
    Theory of Computing Systems, 2015, 57 : 1202 - 1249