MCP
arXivarXiv
Preprint
Published: July 2, 2022
cs.DS
v2

Sum-of-Max Partition under a Knapsack Constraint

Abstract
Sequence partition problems arise in many fields, such as sequential data analysis, information transmission, and parallel computing. In this paper, we study the following partition problem variant: given a sequence of nn items 1,…,n1,\ldots,n, where each item ii is associated with weight wiw_i and another parameter sis_i, partition the sequence into several consecutive subsequences, so that the total weight of each subsequence is no more than a threshold w0w_0, and the sum of the largest sis_i in each subsequence is minimized. This problem admits a straightforward solution based on dynamic programming, which costs O(n2)O(n^2) time and can be improved to O(nlog⁡n)O(n\log n) time easily. Our contribution is an O(n)O(n) time algorithm, which is nontrivial yet easy to implement. We also study the corresponding tree partition problem. We prove that the problem on the tree is NP-complete and we present an O(w0n2)O(w_0 n^2) time (O(w02n2)O(w_0^2n^2) time, respectively) algorithm for the unit weight (integer weight, respectively) case.
0
AI overview
Reviews
Citation graph
Structured
This paper does not have an AI preview yet
Rating
No ratings yet
Rate
Community rating
—
/ 5
No ratings yet
Rating
—
Soundness
—
Presentation
—
Contribution
—
Confidence
—
Discussion
Top
Newest
Questions
Replication
Author
No comments yet — be the first