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 k ≤ n. 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 }})\).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
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)
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)
Bentley, J.: Programming Pearls: Algorithm Design Techniques. Communications of the ACM, 865–871 (1984)
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)
Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to Algorithms, 2nd edn., pp. 185–196. The MIT Press, Cambridge (1999)
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)
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)
Grenander, U.: Pattern Analysis. Springer, Heidelberg (1978)
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)
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)
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)
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)
Takaoka, T.: Efficient Algorithms for the Maximum Subarray Problem by Distance Matrix Multiplication. Electronic Notes in Theoretical Computer Science 61, 1–10 (2002)
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)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)