Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
The complexity of evaluating relational queries
Cosmadakis S. Information and Control58 (1-3):101-112,1984.Type:Article
Date Reviewed: Feb 1 1985

This paper is highly theoretical and is concerned with the characterization of the complexity of problems related to the evaluation of relational queries, consisting of projections and natural joins.

Relational queries are expressed using relational algebra, which has been shown elsewhere to be equivalent to a version of first-order logic. The results of this paper imply that, unlike in ordinary algebra of integer operations (with exponentiation), intermediate results can be inherently much larger than both input (relations) and the results.

Specifically, it is shown that testing whether the result of a given query in a given relation equals some other given relation is DP-complete [1]. Testing a inclusion or equivalence of queries with respect to a fixed relation (or of relations with respect to a fixed query) is found to be &pgr; p2 - complete [2]. Furthermore, the complexity of estimating or bounding the number of tuples of the answer is examined. In essence, these problems are very precisely characterized in terms of where they fall in the polynomial-time hierarchy.

The complexity results are proved by reduction of the appropriate complete satisfiability problem [2] to the problem in question. A construction extensively used in the proofs is reminiscent of that used, for example, in [3].

Reviewer:  V. V. Raghavan Review #: CR108775
1) Papadimitriou, C. H.; and Yannaakis, M.The complexity of facets (and some facets of complexity), in Proc. of the 14th annual ACM symposium on the theory of computing (San Francisco, CA., May 1982), 1982, 255-260.
2) Garey, M. R.; and Johnson, D. S. Computers and intractability: a guide to the theory of NP-completeness, W. H. Freeman, San Francisco, 1979, See <CR> 21, 12 (Dec. 1980), Rev. 37,225.
3) Aho, A. V. Sagiv, Y.; and Ullman, J. D. Equivalences among relational expressions, SIAM J. Comput.8, (1979), 218-246.
Bookmark and Share
 
Query Processing (H.2.4 ... )
 
 
Nonnumerical Algorithms And Problems (F.2.2 )
 
Would you recommend this review?
yes
no
Other reviews under "Query Processing": Date
A correction of the termination conditions of the Henschen-Naqvi technique
Briggs D. Journal of the ACM 31(4): 711-719, 1984. Type: Article
Sep 1 1992
A compression technique to materialize transitive closure
Jagadish H. (ed) ACM Transactions on Database Systems 15(3): 558-598, 1990. Type: Article
Oct 1 1992
Efficient and optimal query answering on independent schemes
Atzeni P. (ed), Chan E. Theoretical Computer Science 77(3): 291-308, 1990. Type: Article
Nov 1 1991
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy