The complexity of acyclic conjunctive queries

被引:102
|
作者
Gottlob, G [1 ]
Leone, N
Scarcello, F
机构
[1] Vienna Univ Technol, Inst Informat Syst, A-1040 Vienna, Austria
[2] Univ Calabria, Dept Math, I-87030 Arcavacata Di Rende, Italy
[3] Univ Calabria, DEIS, I-87030 Arcavacata Di Rende, Italy
关键词
theory; acyclic hypergraph; algorithm; bounded treewidth; conjunctive query; constraint; constraint satisfaction problem; CSP; database theory; degree of cyclicity; hinge; join tree; LOGCFL; parallel algorithm; query containment; query-width; subsumption; tree query;
D O I
10.1145/382780.382783
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This paper deals with the evaluation of acyclic Boolean conjunctive queries in relational databases. By well-known results of Yannakakis [1981], this problem is solvable in polynomial time, its precise complexity, however, has not been pinpointed so far, We show that the problem of evaluating acyclic Boolean conjunctive queries is complete for LOGCFL, the class of decision problems that are logspace-reducible to a context-free language. Since LOGCFL is contained in AC(1) and NC(2). the evaluation problem of acyclic Boolean conjunctive queries is highly parallelizable, We present a parallel database algorithm solving this problem with a logarithmic number of parallel join operations. The algorithm is generalized to computing the output of relevant classes of non-Boolean queries. We also show that the acyclic versions of the following well-known database and Al problems are all LOGCFL-complete: The Query Output Tuple problem for conjunctive queries. Conjunctive Query Containment, Clause Subsumption, and Constraint Satisfaction. The LOGCFL-completeness result is extended to the class of queries of bounded treewidth and to other relevant query classes which are more general than the acyclic queries.
引用
收藏
页码:431 / 498
页数:68
相关论文
共 50 条
  • [1] The complexity of acyclic conjunctive queries
    Gottlob, G
    Leone, N
    Scarcello, F
    [J]. 39TH ANNUAL SYMPOSIUM ON FOUNDATIONS OF COMPUTER SCIENCE, PROCEEDINGS, 1998, : 706 - 715
  • [2] 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
  • [3] On the hardness of learning acyclic conjunctive queries
    Hirata, K
    [J]. ALGORITHMIC LEARNING THEORY, PROCEEDINGS, 2000, 1968 : 238 - 251
  • [4] On acyclic conjunctive queries and constant delay enumeration
    Bagan, Guillaume
    Durand, Arnaud
    Grandjean, Etienne
    [J]. COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2007, 4646 : 208 - +
  • [5] Prediction-hardness of acyclic conjunctive queries
    Hirata, K
    [J]. THEORETICAL COMPUTER SCIENCE, 2005, 348 (01) : 84 - 94
  • [6] 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
  • [7] The Complexity of Conjunctive Queries with Degree 2
    Lanzinger, Matthias
    [J]. PROCEEDINGS OF THE 41ST ACM SIGMOD-SIGACT-SIGAI SYMPOSIUM ON PRINCIPLES OF DATABASE SYSTEMS (PODS '22), 2022, : 91 - 102
  • [8] On the Enumeration Complexity of Unions of Conjunctive Queries
    Carmeli, Nofar
    Kroell, Markus
    [J]. ACM TRANSACTIONS ON DATABASE SYSTEMS, 2021, 46 (02):
  • [9] Semantically Acyclic Conjunctive Queries under Functional Dependencies
    Figueira, Diego
    [J]. PROCEEDINGS OF THE 31ST ANNUAL ACM-IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS 2016), 2016, : 847 - 856
  • [10] Incrementally computing ordered answers of acyclic conjunctive queries
    Kimelfeld, Benny
    Sagiv, Yehoshua
    [J]. NEXT GENERATION INFORMATION TECHNOLOGIES AND SYSTEMS, PROCEEDINGS, 2006, 4032 : 141 - 152