On Fast and Simple Algorithms for Finding Maximal Subarrays and Applications in Learning Theory

Consider the following problem SUB(k, n). Given an array A = (a1,..., an) of real elements ai and a natural number k, find (at most) k disjoint subarrays A1,...,Ak in A such that the sum of the elements contained in the subarrays is maximum.