Back to Search Start Over

BSP/CGM Algorithms for Maximum Subsequence and Maximum Subarray

Authors :
Edson Norberto Cáceres
Siang Wun Song
Carlos Eduardo Rodrigues Alves
Source :
Recent Advances in Parallel Virtual Machine and Message Passing Interface ISBN: 9783540231639, PVM/MPI
Publication Year :
2004
Publisher :
Springer Berlin Heidelberg, 2004.

Abstract

The maximum subsequence problem finds the contiguous subsequence of n real numbers with the highest sum. This problem appears in the analysis of DNA or protein sequences. It can be solved sequentially in O(n) time. In the 2-D version, given an n × n array A, the maximum subarray of A is the contiguous subarray that has the maximum sum. The sequential algorithm for the maximum subarray problem takes O(n 3) time. We present efficient BSP/CGM parallel algorithms that require a constant number of communication rounds for both problems. In the first algorithm, the sequence stored on each processor is reduced to only five numbers, so that the resulting values can be concentrated on a single processor which runs an adaptation of the sequential algorithm to obtain the result. The parallel algorithm requires O(n/p) computing time. In the second algorithm, the input array is partitioned equally among the processors and we first reduce each subarray to a sequence, and then apply the first algorithm to solve it. The parallel algorithm takes O(n 3/p) computing time. The good performance of the parallel algorithms is confirmed by experimental results run on a 64-node Beowulf parallel computer.

Details

ISBN :
978-3-540-23163-9
ISBNs :
9783540231639
Database :
OpenAIRE
Journal :
Recent Advances in Parallel Virtual Machine and Message Passing Interface ISBN: 9783540231639, PVM/MPI
Accession number :
edsair.doi...........5bde6b4d44d643a5c3e20cf87014103f
Full Text :
https://doi.org/10.1007/978-3-540-30218-6_24