The complexity of acyclic conjunctive queries
- 1 May 2001
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 48 (3) , 431-498
- https://doi.org/10.1145/382780.382783
Abstract
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 AC1 and NC2, the evaluation problem of acyclic Boolean conjunctive queries is highly parallelizable. We present a parallel database algorithm solving this problem with alogarithmic 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 AI 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 tree width and to other relevant query classes which are more general than the acyclic queries.Keywords
This publication has 51 references indexed in Scilit:
- Conjunctive-Query Containment and Constraint SatisfactionJournal of Computer and System Sciences, 2000
- Bounded Tree-Width and LOGCFLJournal of Algorithms, 1994
- Optimization of parallel query execution plans in XPRSDistributed and Parallel Databases, 1993
- Effectiveness of parallel joinsIEEE Transactions on Knowledge and Data Engineering, 1990
- Problems complete for deterministic logarithmic spaceJournal of Algorithms, 1987
- Graph minors. II. Algorithmic aspects of tree-widthJournal of Algorithms, 1986
- On the sequential nature of unificationThe Journal of Logic Programming, 1984
- Acyclic join dependency and data base projectionsJournal of Computer and System Sciences, 1983
- Tree queriesACM Transactions on Database Systems, 1982
- Using Semi-Joins to Solve Relational QueriesJournal of the ACM, 1981