|
ABSTRACT
Satisfiability, implication, and equivalence problems involving conjunctive inequalities are important and widely encountered database problems that need to be efficiently and effectively processed. In this article we consider two popular types of arithmetic inequalities, (XopY) and (X op C), where X and Y are attributes, C is a constant of the domain or X, and op ∈{<, ≤, =, ≠, >, ≥). These inequalities are most frequently used in a database system, inasmuch as the former type of inequality represents a 0-join, and the latter is a selection. We study the satisfiability and implication problems under the integer domain and the real domain, as well as under two different operator sets ({<, ≤, =, ≥, >} and {<, ≤, =, ≠, ≥, >}). Our results show that solutions under different domains and/or different operator sets are quite different. Out of these eight cases, excluding two cases that had been shown to be NP-hard, we either report the first necessary and sufficient conditions for these problems as well as their efficient algorithms with complexity analysis (for four cases), or provide an improved algorithm (for two cases). These iff conditions and algorithms are essential to database designers, practitioners, and researchers. These algorithms have been implemented and an experimental study comparing the proposed algorithms and those previously known is conducted. Our experiments show that the proposed algorithms are more efficient than previously known algorithms even for small input. The C++ code can be obtained by an anonymous ftp from <archive.fiu.edu>.
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
|
Alfred V. Aho , John E. Hopcroft , Jeffrey Ullman , J. D. Ullman , J. E. Hopcroft, Data Structures and Algorithms, Addison-Wesley Longman Publishing Co., Inc., Boston, MA, 1983
|
| |
2
|
AHO, A. V., SAGIV, Y., AND ULLMAN, J.n. 1979a. Equivalences among relational expressions. SIAM J. Comput. 8, 2 (May), 218-246.
|
 |
3
|
|
 |
4
|
M. M. Astrahan , M. W. Blasgen , D. D. Chamberlin , K. P. Eswaran , J. N. Gray , P. P. Griffiths , W. F. King , R. A. Lorie , P. R. McJones , J. W. Mehl , G. R. Putzolu , I. L. Traiger , B. W. Wade , V. Watson, System R: relational approach to database management, ACM Transactions on Database Systems (TODS), v.1 n.2, p.97-137, June 1976
[doi> 10.1145/320455.320457]
|
| |
5
|
|
 |
6
|
Jose A. Blakeley , Per-Ake Larson , Frank Wm Tompa, Efficiently updating materialized views, Proceedings of the 1986 ACM SIGMOD international conference on Management of data, p.61-71, May 28-30, 1986, Washington, D.C., United States
|
| |
7
|
|
 |
8
|
|
 |
9
|
|
| |
10
|
|
 |
11
|
|
 |
12
|
|
| |
13
|
GAREY, M., JOHNSON, D., AND STOCKMEYER, L. 1976. Some simplified NP-complete problems. Theor. Comput. Sci. 1, 237-267.
|
| |
14
|
|
 |
15
|
|
| |
16
|
JOHNSON, D. AND KLUG, A. 1984. Testing containment of conjunctive queries under functional and inclusion dependencies. J. Comput. Syst. Sci. 28, I (Feb.), 167-189.
|
| |
17
|
JOHNSON, D. AND KLUG, A. 1983. Optimizing conjunctive queries that contain untyped variables. SIAM J. Comput. 12, 4 (Nov.), 616-640.
|
| |
18
|
KIM, W. 1984. Global optimization of relational queries: A first step. In Query Processing in Database Systems, W. Kim, D. Reiner, and D. Batory, Eds., Springer, New York.
|
| |
19
|
KING, J.J. 1986. Quist: A system for semantic query optimization in relational databases. In Proceedings of the Seventh International Conference on Very Large Databases (Kyoto, Japan), 510-517.
|
 |
20
|
|
| |
21
|
|
| |
22
|
|
 |
23
|
|
| |
24
|
ROSENKaANTZ, D. J. AND HUNT, H. B. III 1980. Processing conjunctive predicates and queries. In Proceedings of the Sixth International Conference on Very Large Databases, 64 -72.
|
 |
25
|
|
 |
26
|
|
| |
27
|
STONEBRAKER, M. AND NEUHOLD, E. 1977. A distributed database version of INGRES. In Proceedings of the Second Berkeley Workshop on Distributed Data Management and Computer Networks, (May), 19-36.
|
| |
28
|
|
| |
29
|
|
| |
30
|
|
| |
31
|
|
| |
32
|
TARJAN, R. 1972. Depth-first search and linear graph algorithms. SIAM J. Comput. 1, 2 (June), 146-160.
|
| |
33
|
|
| |
34
|
|
 |
35
|
|
 |
36
|
|
| |
37
|
|
REVIEW
"Adina Magda Florea : Reviewer"
Efficient algorithms for solving the satisfiability, implication,
and equivalence problems involving conjunctive inequalities in databases
are presented. The authors study the satisfiability and implication
problems (equivalence is reduced to
more...
|