Let's say we have a set of n
integers. I'm trying to find a way to partition this set into m
subsets (empty subsets are not allowed), so that the maximum subset-sum gets minimized. for example, let's say we have the following set and m = 2
:
{11, 5, 11, 5, 10}
the optimal partitioning will be as follows:
{5, 5, 11}, {10, 11}
where the maximum of subset-sums is 21 (no other partition reaches a smaller maximum subset-sum).
The brute force approach will generate all such partitions and find the minimum max sum among them. But is there a better approach to solve this? I was thinking of a backtracking algorithm but I have no idea where to start. I'm only interested in the minimum maximum sum among all partitions and not the partition itself.