Efficient algorithms for the block-edit problems

被引:14
|
作者
Ann, Hsing-Yen [1 ]
Yang, Chang-Biau [1 ]
Peng, Yung-Hsing [1 ]
Liaw, Bern-Cherng [2 ]
机构
[1] Natl Sun Yat Sen Univ, Dept Comp Sci & Engn, Kaohsiung 80424, Taiwan
[2] Natl Pingtung Inst Commence, Dept Finance & Banking, Pingtung, Taiwan
关键词
Design of algorithms; String edit distance; Block-edit; Similarity; Dynamic programming; LONGEST COMMON SUBSEQUENCE; DISTANCE; OPERATIONS; SEQUENCES; STRINGS;
D O I
10.1016/j.ic.2009.12.001
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this paper, we focus on the edit distance between two given strings where block-edit operations are allowed and better fitting to the human natural edit behaviors. Previous results showed that this problem is NP-hard when block moves are allowed. Various approximations to this problem have been proposed in recent years. However, this problem can be solved by the polynomial-time optimization algorithms if some reasonable restructions are applied The restricted variations which we consider involve character insertions, character deletions, block copies and block deletions In this paper. three problems are defined with different measuring functions, which are P(EIS, C), P(EI, L) and P(EI, N) Then we show that with some preprocessing, the minimum block edit distances of these three problems can be obtained by dynamic programming in O(nm), O(nm log m) and O(nm(2)) time, respectively. where n and m are the lengths of the two input strings. (C) 2009 Elsevier Inc All rights reserved
引用
收藏
页码:221 / 229
页数:9
相关论文
共 50 条