计算机应用 ›› 2010, Vol. 30 ›› Issue (9): 2324-2328.

• 数据库与知识工程 • 上一篇    下一篇

XML数据更新编码机制——ITBI

庄灿伟1,冯少荣1,林子雨2,张东站3   

  1. 1. 厦门大学
    2.
    3. 厦门大学计算机科学系
  • 收稿日期:2010-03-10 修回日期:2010-04-09 发布日期:2010-09-03 出版日期:2010-09-01
  • 通讯作者: 庄灿伟
  • 基金资助:
    国家自然科学基金资助项目

ITBI: Labeling scheme for XML data update

  • Received:2010-03-10 Revised:2010-04-09 Online:2010-09-03 Published:2010-09-01

摘要: 编码技术是可扩展标记语言(XML)查询处理的基础,传统编码技术利用自然数进行编码,很难支持XML动态更新。提出了更新支持的编码方法——ITBI,该方法将整数映射到完全二叉树,利用二叉树的中序遍历定义整数新的序关系,通过新的序关系重排自然数序列将静态编码转化为动态编码。同时,基于ITBI前驱、后继、距离等定义,设计了最短位长动态编码分配算法,有效控制更新过程中编码位长的增加。最后通过实验验证了编码的有效性。

关键词: 可扩展标记语言, 动态更新, 编码技术

Abstract: Labeling scheme is the basis for Extensible Markup Language (XML) query processing. The traditional labeling schemes use numbers based on natural order, which is hard to support XML updating. A new labeling scheme, called ITBI (Inorder Traversal Based Integer), was proposed. ITBI created a mapping between integer and complete binary tree, and a new partial order based on inorder traversal of binary tree was defined, which just needed reordering the natural numbers to support dynamic XML. Meanwhile, based on the conceptions of previous ITBI, next ITBI, ITBI distance, the algorithm for assigning dynamic labels with the smallest size was presented, which controlled the increase in label size efficiently. The experimental results verify the validity of the proposed method.

Key words: eXtensible Markup Language (XML), dynamic update, labeling scheme

中图分类号: