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 条
  • [31] Semantic Optimization of Conjunctive Queries
    Barcelo, Pablo
    Figueira, Diego
    Gottlob, Georg
    Pieris, Andreas
    JOURNAL OF THE ACM, 2020, 67 (06)
  • [32] ON CONJUNCTIVE QUERIES CONTAINING INEQUALITIES
    KLUG, A
    JOURNAL OF THE ACM, 1988, 35 (01) : 146 - 160
  • [33] Learnability of Solutions to Conjunctive Queries
    Chen, Hubie
    Valeriote, Matthew
    JOURNAL OF MACHINE LEARNING RESEARCH, 2019, 20
  • [34] The resilience of conjunctive queries with inequalities
    Qin, Biao
    Li, Deying
    Zhou, Chunlai
    INFORMATION SCIENCES, 2022, 613 : 982 - 1002
  • [35] The complexity of acyclic conjunctive queries
    Gottlob, G
    Leone, N
    Scarcello, F
    39TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1998, : 706 - 715
  • [36] EFFICIENT APPROXIMATIONS OF CONJUNCTIVE QUERIES
    Barcelo, Pablo
    Libkin, Leonid
    Romero, Miguel
    SIAM JOURNAL ON COMPUTING, 2014, 43 (03) : 1085 - 1130
  • [37] OPTIMIZATION OF A SUBCLASS OF CONJUNCTIVE QUERIES
    DUBLISH, P
    BISKUP, J
    SAGIV, Y
    LECTURE NOTES IN COMPUTER SCIENCE, 1990, 470 : 455 - 469
  • [38] OPTIMIZATION OF A SUBCLASS OF CONJUNCTIVE QUERIES
    BISKUP, J
    DUBLISH, P
    SAGIV, Y
    ACTA INFORMATICA, 1995, 32 (01) : 1 - 26
  • [39] ORDERING CONJUNCTIVE QUERIES.
    Smith, David E.
    Genesereth, Michael R.
    1600, (26):
  • [40] PROLOG, CONJUNCTIVE QUERIES AND RULES
    MASSART, DL
    DESMET, M
    TRAC-TRENDS IN ANALYTICAL CHEMISTRY, 1985, 4 (05) : 111 - 112