|
ABSTRACT
Hypertree width [22, 25] is a measure of the degree of cyclicity of hypergraphs. A number of relevant problems from different areas, e.g., the evaluation of conjunctive queries in database theory or the constraint satisfaction in AI, are tractable when their underlying hypergraphs have bounded hypertree width. However, in practical contexts like the evaluation of database queries, we have more information besides the structure of queries. For instance, we know the number of tuples in relations, the selectivity of attributes and so on. In fact, all commercial query-optimizers are based on quantitative methods and do not care about structural properties.In this paper, we define the notion of weighted hypertree decomposition, in order to combine structural decomposition methods with quantitative approaches. Weighted hypertree decompositions are equipped with cost functions, that can be used for modelling many situations where we have further information on the given problem, besides its hypergraph representation. We analyze the complexity of computing the hypertree decompositions having the smallest weights, called minimal hypertree decompositions. We show that, in many cases, adding weights we loose tractability. However, we prove that, under some - not very severe - restrictions on the allowed cost functions and on the target hypertrees, optimal weighted hypertree decompositions can be computed in polynomial time. For some easier hypertree weighting functions, this problem is also highly parallelizable. Then, we provide a cost function that models query evaluation costs and show how to exploit weighted hypertree decompositions for determining (logical) query plans for answering conjunctive queries. Finally, we present the results of an experimental comparison of this query optimization technique with the query optimization of a commercial DBMS. These preliminary results are very promising, as for some large queries (with many joins) our hybrid technique clearly outperforms the commercial optimizer.
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
|
|
 |
2
|
|
 |
3
|
|
| |
4
|
P. A. Bernstein and N. Goodman. The power of natural semijoins. SIAM Journal on Computing, 10(4), pp. 751--771, 1981.
|
| |
5
|
|
 |
6
|
Jin-Yi Cai , Venkatesan T. Chakaravarthy , Raghav Kaushik , Jeffrey F. Naughton, On the complexity of join predicates, Proceedings of the twentieth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, p.207-214, May 2001, Santa Barbara, California, United States
[doi> 10.1145/375551.375592]
|
 |
7
|
|
 |
8
|
|
| |
9
|
|
| |
10
|
R. Dechter. Constraint networks. In Stuart C. Shapiro, editor, Encyclopedia of Artificial Intelligence, pp. 276--285. Wiley, 1992. Volume 1, second edition.
|
| |
11
|
|
 |
12
|
|
 |
13
|
|
 |
14
|
|
 |
15
|
|
| |
16
|
|
| |
17
|
|
| |
18
|
Y. E. Ioannidis. Query Optimization. The Computer Science and Engineering Handbook, pp. 1038--1057, 1997.
|
| |
19
|
Y. E. Ioannidis. The History of Histograms (abridged). In In Proc. of VLDB'03, Berlin, Germany, pp. 19--30, 2003.
|
| |
20
|
|
 |
21
|
|
| |
22
|
G. Gottlob, N. Leone, and F. Scarcello. Hypertree decompositions and tractable queries. Journal of Computer and System Sciences, 64(3), pp. 579--627, 2002.
|
| |
23
|
|
 |
24
|
|
| |
25
|
|
| |
26
|
|
| |
27
|
S. H. Greibach. The Hardest Context-Free Language. SIAM Journal on Computing, 2(4):304--310, 1973.
|
| |
28
|
|
 |
29
|
|
| |
30
|
|
| |
31
|
|
| |
32
|
|
| |
33
|
|
 |
34
|
|
| |
35
|
J. Pearson and P. G. Jeavons. A Survey of Tractable Constraint Satisfaction Problems, CSD-TR-97-15, Royal Holloway, Univ. of London, 1997.
|
| |
36
|
N. Robertson and P. D. Seymour. Graph minors ii. algorithmic aspects of tree width. Journal of Algorithms, 7, pp. 309--322, 1986.
|
| |
37
|
W. L. Ruzzo. Tree-size bounded alternation. Journal of Computer and System Sciences, 21, pp. 218--235, 1980.
|
 |
38
|
|
 |
39
|
|
| |
40
|
I. H. Sudborough. Time and Tape Bounded Auxiliary Pushdown Automata. In Mathematical Foundations of Computer Science (MFCS'77), LNCS 53, Springer-Verlag, pp.493--503, 1977.
|
| |
41
|
Francesco Scarcello and Alfredo Mazzitelli. The hypertree decompositions homepage, since 2002. http://wwwinfo.deis.unical.it/~frank/Hypertrees/
|
| |
42
|
|
 |
43
|
|
 |
44
|
|
| |
45
|
M. Yannakakis. Algorithms for acyclic database schemes. In Proc. of VLDB'81, Cannes, France, pp. 82--94, 1981.
|
| |
46
|
C. T. Yu and M. Z. Özsoyoǧlu. On determining tree-query membership of a distributed query. Infor, 22(3), pp. 261--282, 1984.
|
| |
47
|
|
|