k-Maximum Subarrays for Small k: Divide-and-Conquer made simpler
Hemant Malik, Ovidiu Daescu

TL;DR
This paper introduces a simplified divide-and-conquer algorithm for the k-maximum subarray problem that is efficient for small k, along with a novel sublinear time method for finding the k largest sums of two sorted arrays.
Contribution
It presents a simpler, more implementable divide-and-conquer solution for small k-maximum subarrays and a novel sublinear algorithm for sum selection.
Findings
Efficient divide-and-conquer algorithm with simplified combine phase.
First sublinear time algorithm for finding k largest sums of two sorted arrays.
Excellent performance demonstrated on test data.
Abstract
Given an array A of n real numbers, the maximum subarray problem is to find a contiguous subarray which has the largest sum. The k-maximum subarrays problem is to find k such subarrays with the largest sums. For the 1-maximum subarray the well known divide-and-conquer algorithm, presented in most textbooks, although suboptimal, is easy to implement and can be made optimal with a simple change that speeds up the combine phase. On the other hand, the only known divide-and-conquer algorithm for k > 1, that is efficient for small values of k, is difficult to implement, due to the intricacies of the combine phase. In this paper we give a divide- and-conquer solution for the k-maximum subarray problem that simplifies the combine phase considerably while preserving the overall running time. In the process of designing the combine phase of the algorithm we provide a simple, sublinear,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Genome Rearrangement Algorithms · graph theory and CDMA systems
