DiffS:不同版本SVG格式地图差异匹配算法

DiffS:Matching Algorithm to Different Version Maps Based on SVG

  • 摘要: 提出了一种不同版本SVG/XML格式的地图差异匹配算法DiffS。该算法以SVG解析树为依据,通过定义宏元素对解析树遍历,并以动态数组为数据结构进行匹配,得到差异脚本,脚本记录了前一个版本到后一个版本的更新操作。应用实验验证算法是有效的。

     

    Abstract: We propose a new DiffS algorithm which is suitable for detecting difference between different version SVG/XML format maps.The algorithm reduces the sum of nodes and levels of parsing tree by defining macro element.By defining dynamic array as data structure and then using top-down level-order traversal approach to match two different version parsing trees,the result of DiffS is an edit script which records the update operations from the first version of SVG map to the second version.The algorithm time complexity of DiffS is low.The application verification shows that the algorithm is effective.

     

/

返回文章
返回