Skip to main content

BSP/CGM Algorithms for Maximum Subsequence and Maximum Subarray

  • Conference paper
Recent Advances in Parallel Virtual Machine and Message Passing Interface (EuroPVM/MPI 2004)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 3241))

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.

Partially supported by FINEP-PRONEX-SAI Proc. No. 76.97.1022.00, FAPESP Proc. No. 1997/10982-0, CNPq Proc. No. 55.2028/02-9, 30.5218/03-4, 47.0163/03-8, FUNDECT-MS.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Alves, C.E.R., Cáceres, E.N., Song, S.W.: Computing maximum subsequence in parallel. In: Proceedings II Brazilian Workshop on Bioinformatics - WOB 2003, December 2003, pp. 80–87 (2003)

    Google Scholar 

  2. Bates, J.L., Constable, R.L.: Proofs as programs. ACM Transactions on Programming Languages and Systems 7(1), 113–136 (1985)

    Article  MATH  Google Scholar 

  3. Bentley, J.: Programming Pearls. Addison-Wesley, Reading (1986)

    Google Scholar 

  4. Dehne, F., Fabri, A., Rau-Chaplin, A.: Scalable parallel geometric algorithms for coarse grained multicomputers. In: Proc. ACM 9th Annual Computational Geometry, pp. 298–307 (1993)

    Google Scholar 

  5. Karlin, S., Brendel, V.: Chance and significance in protein and dna sequence analysis. Science 257, 39–49 (1992)

    Article  Google Scholar 

  6. Perumalla, K., Deo, N.: Parallel algorithms for maximum subsequence and maximum subarray. Parallel Processing Letters 5(3), 367–373 (1995)

    Article  Google Scholar 

  7. Qiu, K., Akl, S.G.: Parallel maximum sum algorithms on interconnection networks. Technical report, Queen’s Unversity, Department of Computer and Information Science, No. 99-431 (1999)

    Google Scholar 

  8. Ruzzo, W.L., Tompa, M.: A linear time algorithm for finding all maximal scoring subsequences. In: Proceedings of the Seventh International Conference on Intelligent Systems for Molecular Biology, August 1999, pp. 234–241. AAAI Press, Menlo Park (1999)

    Google Scholar 

  9. Smith, D.R.: Applications of a strategy for designing divide-and-conquer algorithms. Sci. Comput. Programs 8, 213–229 (1987)

    Article  MATH  Google Scholar 

  10. Snustad, D.P., Simmons, M.J.: Principles of Genetics. John Wiley and Sons, Chichester (2000)

    Google Scholar 

  11. Valiant, L.: A bridging model for parallel computation. Communication of the ACM 33(8), 103–111 (1990)

    Article  Google Scholar 

  12. Wen, Z.: Fast parallel algorithm for the maximum sum problem. Parallel Computing 21, 461–466 (1995)

    Article  MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2004 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Alves, C.E.R., Cáceres, E.N., Song, S.W. (2004). BSP/CGM Algorithms for Maximum Subsequence and Maximum Subarray. In: Kranzlmüller, D., Kacsuk, P., Dongarra, J. (eds) Recent Advances in Parallel Virtual Machine and Message Passing Interface. EuroPVM/MPI 2004. Lecture Notes in Computer Science, vol 3241. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30218-6_24

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-30218-6_24

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-23163-9

  • Online ISBN: 978-3-540-30218-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics