Tree pattern query minimization

被引:56
作者
Amer-Yahia, S
Cho, S
Lakshmanan, LVS
Srivastava, D
机构
[1] AT&T Labs Res, Florham Pk, NJ 07932 USA
[2] Stevens Inst Technol, Hoboken, NJ 07030 USA
[3] Univ British Columbia, Vancouver, BC V6T 1Z4, Canada
关键词
tree patterns; XML; query minimization;
D O I
10.1007/s00778-002-0076-7
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Tree patterns form a natural basis to query tree-structured data such as XML and LDAR To improve the efficiency of tree pattern matching, it is essential to quickly identify and eliminate redundant nodes in the pattern. In this paper, we study tree pattern minimization both in the absence and in the presence of integrity constraints (ICs) on the underlying tree-structured database. In the absence of ICs, we develop a polynomial-time query minimization algorithm called CIM, whose efficiency stems from two key properties: (i) a node cannot be redundant unless its children are; and (ii) the order of elimination of redundant nodes is immaterial. When ICs are considered for minimization, we develop a technique for query minimization based on three fundamental operations: augmentation (an adaptation of the well-known chase procedure), minimization (based on homomorphism techniques), and reduction. We show the surprising result that the algorithm, referred to as ACIM, obtained by first augmenting the tree pattern using ICs, and then applying CIM, always finds the unique minimal equivalent query. While ACIM is polynomial time, it can be expensive in practice because of its inherent non-locality. We then present a fast algorithm, CDM, that identifies and eliminates local redundancies due to ICs, based on propagating "information labels" up the tree pattern. CDM can be applied prior to ACIM for improving the minimization efficiency. We complement our analytical results with an experimental study that shows the effectiveness of our tree pattern minimization techniques.
引用
收藏
页码:315 / 331
页数:17
相关论文
共 28 条
[1]   BOUNDEDNESS IS UNDECIDABLE FOR DATALOG PROGRAMS WITH A SINGLE RECURSIVE RULE [J].
ABITEBOUL, S .
INFORMATION PROCESSING LETTERS, 1989, 32 (06) :281-287
[2]  
AMERYAHIA S, 2001, MINIMIZATION TREE PA, P497
[3]  
Boag S., XQUERY 1 0 XML QUERY
[4]  
CALVANESE D, 1998, DECIDABILITY QUERY C, P149
[5]  
Chakravathy S., 1988, FDN SEMANTIC QUERY O, P243
[6]  
Chamberlin DD., 2000, QUILT XML QUERY LANG, P1
[7]  
CHAN EPF, 1992, CONTAINMENT MINIMIZA, P202
[8]  
Chandra A. K., 1977, OPTIMAL IMPLEMENTATI, P77
[9]  
CHRISTOPHIDES V, 2000, WRAPPING QUERY LANGU, P141
[10]   A query language for XML [J].
Deutsch, A ;
Fernandez, M ;
Florescu, D ;
Levy, A ;
Suciu, D .
COMPUTER NETWORKS-THE INTERNATIONAL JOURNAL OF COMPUTER AND TELECOMMUNICATIONS NETWORKING, 1999, 31 (11-16) :1155-1169