|
ABSTRACT
We investigate the complexity of various optimization techniques for logic databases. In particular, we provide polynomial-time algorithms for restricted versions of common program transformations, and show that a minor relaxation of these restrictions leads to NP-hardness. To this end, we define the k-containment problem on conjunctive queries, and show that while the 2-containment problem is in P, the 3-containment problem is NP-complete. These results provide a complete description of the complexity of conjunctive query containment. We also extend these results to provide a natural characterization of certain optimization problems in logic databases, such as the detection of sequencability and commutativity among pairs of Linear rules, the detection of 1-boundedness in sirups, and the detection of ZYT-linearizability in simple nonlinear recursions.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Aho, A. V., Y. Sagiv and :I. D. Ulllational expressions," SIAM J. Comp. 8, pp. 218-246.
|
 |
2
|
|
 |
3
|
Francois Bancilhon , David Maier , Yehoshua Sagiv , Jeffrey D Ullman, Magic sets and other strange ways to implement logic programs (extended abstract), Proceedings of the fifth ACM SIGACT-SIGMOD symposium on Principles of database systems, p.1-15, March 24-26, 1986, Cambridge, Massachusetts, United States
[doi> 10.1145/6012.15399]
|
 |
4
|
|
 |
5
|
|
| |
6
|
Ioannidis, Y.E. {1989a}. "Towards an algebraic theory of recursion," TR-801, Dept. of C.S., University of Wisconsin. ._
|
| |
7
|
ioannidis, Y.E. {19895}. "C0mmutativity and its role in the processing of linear recursion," TR-804, Dept. of C.S., University of Wisconsin.
|
| |
8
|
Johnson, D. S. and A. Klug {1983}. "Optimizing conjunctive queries that contain untyped variables," SIAM J. Comp. 12, pp. 616-640.
|
| |
9
|
|
 |
10
|
|
 |
11
|
R. Ramakrishnan , Y. Sagiv , J. D. Ullman , M. Y Vardi, Proof-tree transformation theorems and their applications, Proceedings of the eighth ACM SIGACT-SIGMOD-SIGART symposium on Principles of database systems, p.172-181, March 1989, Philadelphia, Pennsylvania, United States
[doi> 10.1145/73721.73739]
|
 |
12
|
|
 |
13
|
|
 |
14
|
|
| |
15
|
Unman, J. D. {1989}. Principles of Database and Knowledgebase Systems, V01. II, Computer Science Press, Rockville, Md.
|
 |
16
|
|
| |
17
|
Zhang, W., C.T. Yu and D. Troy, "A necessary and sufficient condition to linearize doubly recursive programs in logic databases," unpublished manuscript, Dept. of EECS, University of Illinois at Chicago.
|
|