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 () 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 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 等数据库收录! |
|