I am looking at the following problem. Given an interval I, and a function f over that interval, find sub-intervals for which:
- The sum of the length of the sub-intervals is < k;
- The sub-intervals are mutually disjoint;
- The sum of the integrals over the sub-intervals is maximum.
I think this problem is NP-complete. But I am not sure about it. Any resources about this problem? Thanks.