Back to Search Start Over

A Coarse-Grained Parallel Algorithm for the All-Substrings Longest Common Subsequence Problem

Authors :
Carlos Eduardo Rodrigues Alves
Siang Wun Song
Edson Norberto Cáceres
Source :
Repositório Institucional da USP (Biblioteca Digital da Produção Intelectual), Universidade de São Paulo (USP), instacron:USP
Publication Year :
2006
Publisher :
Springer Science and Business Media LLC, 2006.

Abstract

Given two strings A and B of lengths na and nb, 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(na nb) time and O(nb) space. We present a parallel algorithm for the ALCS problem on the Coarse-Grained Multicomputer (BSP/CGM) model with p < √na processors, that takes O(na nb/p) time, O(log p) communication rounds and O(nb √na) 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.

Details

ISSN :
14320541 and 01784617
Volume :
45
Database :
OpenAIRE
Journal :
Algorithmica
Accession number :
edsair.doi.dedup.....7729c17f2764bde16dfcf373a4bc2eb5
Full Text :
https://doi.org/10.1007/s00453-006-1216-z