作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (23): 59-62. doi: 10.3969/j.issn.1000-3428.2010.23.020

• 软件技术与数据库 • 上一篇    下一篇

基于LCA的高效XML关键字检索算法

韩萌,陈群,王鹏   

  1. (西北工业大学计算机学院, 西安 710129)
  • 出版日期:2010-12-05 发布日期:2010-12-14
  • 作者简介:韩萌(1984-),男,硕士研究生,主研方向:信息检索,XML数据管理;陈群,教授、博士生导师;王鹏,硕士研究生
  • 基金资助:
    国家“863”计划基金资助重点项目(2009AA1Z134);国家自然科学基金资助项目(60803043,60720106001)

Highefficient XML Keyword Retrieval Algorithm Based on LCA

HAN Meng,CHEN Qun,WANG Peng   

  1. (School of Computer Science and Technology, Northwestern Polytechnical University, Xi'an 710129, China)
  • Online:2010-12-05 Published:2010-12-14

摘要: 以ELCA的语义为基础,分析ELCA的诸多性质,给出ELCA结果查找算法复杂度高的原因。在其基础上提出BHFA算法,包括2种实现算法BHFA I和BHFA II。该算法计算出分布在各层的LCA,根据ELCA的性质由底向上、向左向右筛选并获取结果。实验结果表明,该算法的查询性能在绝大多数情况下优于现有算法。

关键词: XML检索算法, 关键字检索, 最小公共祖先

Abstract: This paper gives and analyzes some properties of Exdusive Lowest Common Ancestors(ELCA) based on the semantics of ELCA. It also introduces an XML keyword retrieval algorithm, Bottomup Hierarchical Filtering Algorithm(BHFA), on the basis of the properties above. There are two instances following the BHFA idea, called BHFA I and BHFA II respectively. This algorithm looks for each hierarchical Lowest Common Ancestors(LCA), and gets results through layer by layer selection according to the properties of ELCA. Experimental results show that BHFA outperforms the existing mainstream algorithms in most case.

Key words: XML retrieval algorithm, keyword retrieval, Lowest Common Ancestors(LCA)

中图分类号: