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


Computing a longest common subsequence for a set of strings
Authors:W. J. Hsu  M. W. Du
Affiliation:(1) Institute of Computer Engineering, National Chiao Tung University, 1001 Ta Hseuh Road, Hsinchu, Taiwan, Republic of China
Abstract:The known 2-string LCS problem is generalized to finding a Longest Common Subsequence (LCS) for a set of strings. A new, general approach that systematically enumerates common subsequences is proposed for the solution. Assuming a finite symbol set, it is shown that the presented scheme requires a preprocessing time that grows linearly with the total length of the input strings and a processing time that grows linearly with (K), the number of strings, and (parPopfpar) the number of matches among them. The only previous algorithm for the generalized LCS problem takesO(K·|S1|·|S2|·...|Sk|) execution time, where |Si| denotes the length of the stringSi. Since typically parPopfpar is a very small percentage of |S1|·|S2|·...·|Sk|, the proposed method may be considered to be much more efficient than the straightforward dynamic programming approach.
Keywords:Analysis of Algorithms  String Merging Problems  LCS Problem
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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