Skip to main content

Improved Algorithms for the k Maximum-Sums Problems

  • Conference paper
Algorithms and Computation (ISAAC 2005)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 3827))

Included in the following conference series:

Abstract

Given a sequence of n real numbers and an integer k, \(1 \leq k \leq {1 \over 2}n(n - 1)\), the k maximum-sum segments problem is to locate the k segments whose sums are the k largest among all possible segment sums. Recently, Bengtsson and Chen gave an \(O({\rm min}\{k+n{\rm log}^{2}n,n\sqrt{k}\})\)-time algorithm for this problem. In this paper, we propose an O(n + k log(min{n, k}))-time algorithm for the same problem which is superior to Bengtsson and Chen’s when k is o(nlog n). We also give the first optimal algorithm for delivering the k maximum-sum segments in non-decreasing order if kn. Then we develop an O(n 2d − 1 + k logmin{n, k})–time algorithm for the d-dimensional version of the problem, where d>1 and each dimension, without loss of generality, is of the same size n. This improves the best previously known O(n 2d − 1 C)-time algorithm, also by Bengtsson and Chen, where \(C = {\rm min}\{k + n {\rm log}^{2} n, n{\sqrt{k}}\}\). It should be pointed out that, given a two-dimensional array of size m × n, our algorithm for finding the k maximum-sum subarrays is the first one achieving cubic time provided that k is \(O({{m^{2}n} \over {{\rm log} n }})\).

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 169.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

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. Bae, S.E., Takaoka, T.: Algorithms for the Problem of k Maximum Sums and a VLSI Algorithm for the k Maximum Subarrays Problem. In: Proceedings of the 7th International Symposium on Parallel Architectures, Algorithms and Networks, pp. 247–253 (2004)

    Google Scholar 

  2. Bengtsson, F., Chen, J.: Efficient Algorithms for k Maximum Sums. In: Fleischer, R., Trippen, G. (eds.) ISAAC 2004. LNCS, vol. 3341, pp. 137–148. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  3. Bentley, J.: Programming Pearls: Algorithm Design Techniques. Communications of the ACM, 865–871 (1984)

    Google Scholar 

  4. Chen, K.-Y., Chao, K.-M.: On the Range Maximum-Sum Segment Query Problem. In: Fleischer, R., Trippen, G. (eds.) ISAAC 2004. LNCS, vol. 3341, pp. 294–305. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  5. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 2nd edn., pp. 185–196. The MIT Press, Cambridge (1999)

    Google Scholar 

  6. Fan, T.-H., Lee, S., Lu, H.-I., Tsou, T.-S., Wang, T.-C., Yao, A.: An Optimal Algorithm for Maximum-Sum Segment and Its Application in Bioinformatics. In: Ibarra, O.H., Dang, Z. (eds.) CIAA 2003. LNCS, vol. 2759, pp. 251–257. Springer, Heidelberg (2003)

    Chapter  Google Scholar 

  7. Fukuda, T., Morimoto, Y., Morishita, S., Tokuyama, T.: Data Mining Using Two-Dimensional Optimized Association Rules: Scheme, Algorithms, and Visualization. In: Proceedings of the 1996 ACM SIGMOD International Conference on Management of Data, pp. 13–23 (1996)

    Google Scholar 

  8. Grenander, U.: Pattern Analysis. Springer, Heidelberg (1978)

    MATH  Google Scholar 

  9. Huang, X.: An Algorithm for Identifying Regions of a DNA Sequence that Satisfy a Content Requirement. Computer Applications in the Biosciences 10, 219–225 (1994)

    Google Scholar 

  10. Lin, Y.-L., Huang, X., Jiang, T., Chao, K.-M.: MAVG: Locating Non-Overlapping Maximum Average Segments in a Given Sequence. Bioinformatics 19, 151–152 (2003)

    Article  Google Scholar 

  11. Lin, Y.-L., Jiang, T., Chao, K.-M.: Efficient Algorithms for Locating the Length-constrained Heaviest Segments with Applications to Biomolecular Sequence Analysis. Journal of Computer and System Sciences 65, 570–586 (2002)

    Article  MATH  MathSciNet  Google Scholar 

  12. Ruzzo, W.L., Tompa, M.: A Linear Time Algorithm for Finding All Maximal Scoring Subsequences. In: Proceedings of the 7th International Conference on Intelligent Systems for Molecular Biology, pp. 234–241 (1999)

    Google Scholar 

  13. Takaoka, T.: Efficient Algorithms for the Maximum Subarray Problem by Distance Matrix Multiplication. Electronic Notes in Theoretical Computer Science 61, 1–10 (2002)

    Article  Google Scholar 

  14. Tamaki, T., Tokuyama, T.: Algorithms for the Maximum Subarray Problem Based on Matrix Multiplication. In: Proceedings of the Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pp. 446–452 (1998)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Cheng, CH., Chen, KY., Tien, WC., Chao, KM. (2005). Improved Algorithms for the k Maximum-Sums Problems. In: Deng, X., Du, DZ. (eds) Algorithms and Computation. ISAAC 2005. Lecture Notes in Computer Science, vol 3827. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11602613_80

Download citation

  • DOI: https://doi.org/10.1007/11602613_80

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-30935-2

  • Online ISBN: 978-3-540-32426-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics