首页 | 本学科首页   官方微博 | 高级检索  
     

基于代价模型的不一致XML 数据修复启发式计算
引用本文:吴爱华,王先胜,谈子敬,汪卫.基于代价模型的不一致XML 数据修复启发式计算[J].软件学报,2009,20(4):918-929.
作者姓名:吴爱华  王先胜  谈子敬  汪卫
作者单位:1. 复旦大学,计算机信息与技术系,上海,200072;上海海事大学,计算机科学系,上海,200135
2. 复旦大学,计算机信息与技术系,上海,200072
基金项目:Supported by the National Natural Science Foundation of China under Grant No.60603043 (国家自然科学基金)
摘    要:在实际应用中,为不一致的XML 文档计算最优修复意义重大.但求解最优修复是一个NP 完全问题,特别是在XML 文档同时违反函数依赖约束和主键约束时.提出一个基于代价模型的、可以在多项式时间内完成的启发式修复求解算法.该算法首先借助索引表,在一遍扫描原始XML 文档的情况下寻找不一致数据集,然后为每一类约束的不一致数据集构造候选修复,同时计算其修复代价,最后启发式地求解一个代价最小的修复方案.实验结果表明,该算法的时间复杂度不超过冲突类的3 次方,即便是在不一致数据量很大、噪声比例很大以及涉及多类语义约束时,也能较快地完成修复.

关 键 词:不一致性  不一致数据  修复  一致的查询回答  XML数据清洗  不完整数据库
收稿时间:2007/8/22 0:00:00
修稿时间:2007/11/2 0:00:00

A Cost-Based Heuristic Algorithm for Repairing Inconsistent XML Document
WU Ai-Hu,WANG Xian-Sheng,TAN Zi-Jing and WANG Wei.A Cost-Based Heuristic Algorithm for Repairing Inconsistent XML Document[J].Journal of Software,2009,20(4):918-929.
Authors:WU Ai-Hu  WANG Xian-Sheng  TAN Zi-Jing and WANG Wei
Affiliation:Department of Computer Information Technology;Fudan University;Shanghai 200072;China;Department of Computer Science;Shanghai Maritime University;Shanghai 200135;China
Abstract:Computing a repair for inconsistent XML documents is significant in applications. But getting an optimum repair is a NP complete problem, especially when XML documents violate both the function dependence and the key constraints. This paper proposes a cost-based heuristic algorithm, which can find a repair with the lowest cost in polynomial time. It first scans the original XML documents once to get the inconsistent data. Then it computes the general candidate repairs for each inconsistent data, and gets a whole document repair heuristicallybased on its cost. The experimental evaluation show that even when XML documents are large, with high percent of dirty elements, and against many different constraints, the algorithm can still run in less than O(n3) w.r.t. the size of inconsistent elements.
Keywords:inconsistency  inconsistent data  repair  consistent answer  XML data cleaning  incomplete database
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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