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

改进的基于小枝模式的匹配算法——cTwigStack
引用本文:姚全珠,郭祯,房美君.改进的基于小枝模式的匹配算法——cTwigStack[J].计算机应用,2011,31(10):2782-2785.
作者姓名:姚全珠  郭祯  房美君
作者单位:西安理工大学 计算机科学与工程学院,西安 710048
摘    要:给定一个小枝模式查询,如何快速地在XML数据集中找到所有感兴趣的信息,已成为当前研究的热点。针对TwigStack算法在处理含有父子节点的情况下会产生大量的中间结果等问题,通过栈来对非叶子节点缓存和对叶子节点延迟输出的思想,提出了一种改进的小枝模式匹配算法--cTwigStack。采用Treebank数据集进行测验,结果表明该算法不仅仅在处理祖孙/后继节点时能使输出结果的准确性达到最优,而且在处理父子节点时,相对目前提出的算法,也是非常高效的。

关 键 词:小枝模式匹配  XML数据库  XML模式匹配  XML文档  XPath  
收稿时间:2011-02-21
修稿时间:2011-04-22

cTwigStack: Improved twig pattern matching algorithm
YAO Quan-zhu,GUO Zhen,FANG Mei-jun.cTwigStack: Improved twig pattern matching algorithm[J].journal of Computer Applications,2011,31(10):2782-2785.
Authors:YAO Quan-zhu  GUO Zhen  FANG Mei-jun
Affiliation:School of Computer Science and Engineering, Xi'an University of Technology, Xi'an Shaanxi 710048, China
Abstract:How to quickly locate the interested information in the XML database under a certain twig pattern is a popular research topic. To solve the problem that the TwigStack algorithm for handling the case with parent-child nodes would come out with massive intermediate results, an improved twig pattern query algorithm of cTwigStack was proposed, which was based on caching the non-leaf nodes and delaying the leaf nodes output. The experimental results on Treebank dataset indicate that the proposed algorithm can achieve the most accurate results of the queries that contain the ancestor-descendant relationships below branching nodes. Besides, compared with the present algorithm, it is also highly effective when processing parent-child relationships below branching nodes.
Keywords:twig pattern matching                                                                                                                          XML database                                                                                                                          XML pattern matching                                                                                                                          XML document                                                                                                                          XPath
本文献已被 CNKI 等数据库收录!
点击此处可从《计算机应用》浏览原始摘要信息
点击此处可从《计算机应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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

京公网安备 11010802026262号