A coarse-grained parallel algorithm for the all-substrings longest common subsequence problem

被引:18
作者
Alves, Carlos E. R. [1 ]
Caceres, Edson N.
Song, Siang Wun
机构
[1] Univ Sao Judas Tadeu, Fac Tecnol & Ciencias Exatas, Sao Paulo, Brazil
[2] Univ Fed Mato Grosso Sul, Campo Grande, MS USA
[3] Univ Sao Paulo, Sao Paulo, Brazil
关键词
parallel algorithm; longest common subsequence; BSP; CGM; LCS; all-substrings LCS;
D O I
10.1007/s00453-006-1216-z
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Given two strings A and B of lengths n(a) and n(b), respectively, the All-substrings Longest Common Subsequence (ALCS) problem obtains, for any substring B' of B, the length of the longest string that is a subsequence of both A and B'. The sequential algorithm for this problem takes O(n(a)n(b)) time and O(n(b)) space. We present a parallel algorithm for the ALCS problem on the Coarse-Grained Multicomputer (BSP/CGM) model with p < root n(a) processors, that takes O(n(a)n(b)/p) time, O(log p) communication rounds and O(n(b)root n(a)) space per processor. The proposed algorithm also solves the basic Longest Common Subsequence (LCS) problem that finds the longest string ( and not only its length) that is a subsequence of both A and B. To our knowledge, this is the best BSP/CGM algorithm in the literature for the LCS and ALCS problems.
引用
收藏
页码:301 / 335
页数:35
相关论文
共 24 条
[1]   GEOMETRIC APPLICATIONS OF A MATRIX-SEARCHING ALGORITHM [J].
AGGARWAL, A ;
KLAWE, MM ;
MORAN, S ;
SHOR, P ;
WILBER, R .
ALGORITHMICA, 1987, 2 (02) :195-208
[2]  
Alves C E R, 2002, P ACM SPAA, P275
[3]  
Alves C.E.R., 2005, ELECT NOTES DISCRETE, V19, P133
[4]  
ALVES CER, 2003, RTMAC200303 I MAT ES
[5]  
ALVES CER, 2003, P 17 IEEE INT PAR DI, P22
[6]  
[Anonymous], 1997, ALGORITHMS STRINGS T, DOI DOI 10.1017/CBO9780511574931
[7]   THE LONGEST COMMON SUBSEQUENCE PROBLEM REVISITED [J].
APOSTOLICO, A ;
GUERRA, C .
ALGORITHMICA, 1987, 2 (03) :315-336
[8]  
Dehne F, 1999, ALGORITHMICA, V24, P173
[9]  
Dehne F, 1993, P ACM 9 ANN COMP GEO, P298
[10]  
Griffiths A., 1996, INTRO GENETIC ANAL