A subquadratic sequence alignment algorithm for unrestricted scoring matrices

被引:75
作者
Crochemore, M
Landau, GM
Ziv-Ukelson, M
机构
[1] Univ Marne la Vallee, Inst Gaspard Monge, F-77454 Marne La Vallee 2, France
[2] Kings Coll London, Dept Comp Sci, London WC2R 2LS, England
[3] Univ Haifa, Dept Comp Sci, IL-31905 Haifa, Israel
[4] Polytech Univ, Dept Comp & Informat Sci, Brooklyn, NY 11201 USA
基金
美国国家科学基金会;
关键词
alignment; dynamic programming; text compression; run length;
D O I
10.1137/S0097539702402007
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
Given two strings of size n over a constant alphabet, the classical algorithm for computing the similarity between two sequences [D. Sankoff and J. B. Kruskal, eds., Time Warps, String Edits, and Macromolecules; Addison - Wesley, Reading, MA, 1983; T. F. Smith and M. S. Waterman, J. Molec. Biol., 147 (1981), pp. 195 - 197] uses a dynamic programming matrix and compares the two strings in O(n(2)) time. We address the challenge of computing the similarity of two strings in subquadratic time for metrics which use a scoring matrix of unrestricted weights. Our algorithm applies to both local and global similarity computations. The speed-up is achieved by dividing the dynamic programming matrix into variable sized blocks, as induced by Lempel-Ziv parsing of both strings, and utilizing the inherent periodic nature of both strings. This leads to an O(n(2)/log n), algorithm for an input of constant alphabet size. For most texts, the time complexity is actually O(hn(2)/log n), where h less than or equal to 1 is the entropy of the text. We also present an algorithm for comparing two run-length encoded strings of length m and n, compressed into m' and n' runs, respectively, in O(m' n + n' m) complexity. This result extends to all distance or similarity scoring schemes that use an additive gap penalty.
引用
收藏
页码:1654 / 1673
页数:20
相关论文
共 54 条
[51]  
WELCH TA, 1984, COMPUTER, V17, P8, DOI 10.1109/MC.1984.1659158
[52]   UNIVERSAL ALGORITHM FOR SEQUENTIAL DATA COMPRESSION [J].
ZIV, J ;
LEMPEL, A .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1977, 23 (03) :337-343
[53]   COMPRESSION OF INDIVIDUAL SEQUENCES VIA VARIABLE-RATE CODING [J].
ZIV, J ;
LEMPEL, A .
IEEE TRANSACTIONS ON INFORMATION THEORY, 1978, 24 (05) :530-536
[54]  
[No title captured]