首页 | 官方网站   微博 | 高级检索  
     

存在完整性约束时最小化树模式查询的算法
引用本文:张凡,熊志平,胡运发.存在完整性约束时最小化树模式查询的算法[J].计算机工程,2006,32(10):66-67,70.
作者姓名:张凡  熊志平  胡运发
作者单位:1. 复旦大学计算机与信息技术系,上海,200433
2. 赛贝斯软件(中国)有限公司,上海,200001
摘    要:树模式是查询树型结构数据如XML和LDAP的天然模型。在一个给定的数据库上进行查询,查询的效率很大程度上依赖于查询的大小。因此,在查询前删除查询中的冗余分支,使查询最小化是非常重要的。在树型结构数据库中,存在孩子必需、后代必需和子类3种完整性约束是十分普遍的。针对存在这3种完整性约束的情况,基于扩展的模拟概念提出了一种复杂度为O(n^2)的最小化树模式查询算法(n为树模式查询的节点数)。分析结果表明这个算法的效率要远高于同类算法。

关 键 词:XML查询  树模式查询  完整性约束  查询最小化  模拟
文章编号:1000-3428(2006)10-0066-02
收稿时间:2005-06-30
修稿时间:2005-06-30

An Efficient Algorithm for Minimizing Tree Pattern Queries in the Presence of Integrity Constrains
ZHANG Fan,XIONG Zhiping,HU Yunfa.An Efficient Algorithm for Minimizing Tree Pattern Queries in the Presence of Integrity Constrains[J].Computer Engineering,2006,32(10):66-67,70.
Authors:ZHANG Fan  XIONG Zhiping  HU Yunfa
Affiliation:1. Dept. of Computer and Information Technology, Fudan University, Shanghai 200433; 2. Sybase Software (China
Abstract:Tree pattern is the natural model to query tree-structured data such as XML and LDAP-style network directories. The efficiency of finding the result of a query on a given input database depends on the size of the query. So, it's important to minimize the query before attempting to compute the result of the query. Required-child, required-descendant and subtype integrity constrains all prevail in tree-structured databases. An O(n2) algorithm called MinTPQ for minimizing tree pattern queries on the tree-structured database is introduced in the presence of the three kinds of integrity constraints; n is the number of the nodes of the tree pattern queries. The algorithm is based on the concept of extended simulation. Analytical result shows the effectiveness of the tree pattern minimization technique.
Keywords:XML queries  Tree pattern queries  Integrity constraints  Query minimization  Simulation
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号