Balanced number partitioning is a variant of multiway number partitioning in which there are constraints on the number of items allocated to each set. The input to the problem is a set of n items of different sizes, and two integers m, k. The output is a partition of the items into m subsets, such that the number of items in each subset is at most k. Subject to this, it is required that the sums of sizes in the m subsets are as similar as possible. An example application is identical-machines scheduling where each machine has a job-queue that can hold at most k jobs. The problem has applications also in manufacturing of VLSI chips, and in assigning tools to machines in flexible manufacturing systems. In the standard three-field notation for optimal job scheduling problems, the problem of minimizing the largest sum is sometimes denoted by "P | # ≤ k | Cmax". The middle field "# ≤ k" denotes that the number of jobs in each machine should be at most k. This is in contrast to the unconstrained version, which is denoted by "P∥Cmax".
Two-way balanced partitioning A common special case called two-way balanced partitioning is when there should be two subsets (m = 2). The two subsets should contain floor(n/2) and ceiling(n/2) items. It is a variant of the partition problem. It is NP-hard to decide whether there exists a partition in which the sums in the two subsets are equal; see problem [SP12]. There are many algorithms that aim to find a balanced partition in which the sum is as nearly-equal as possible.
Coffman, Frederickson and Lueker present a restricted version of the LPT algorithm (called RLPT), in which inputs are assigned in pairs. When inputs are uniformly-distributed random variables, the expected largest sum of RLPT is exactly n4+12n+2. The expected work-difference (difference between largest and smallest sum) is Θ(1/n). Lueker presents a variant of the LDM algorithm (called the pairwise differencing method (PDM)). Its expected work-difference is Θ(1/n). Tsai presents an algorithm called Restricted Largest Difference (RLD). Its work-difference is O(logn/n2) almost surely. Yakir presents a balanced variant of the LDM algorithm for m = 2, called BLDM. Its expected work-difference is n−Θ(logn). Mertens presents a complete anytime algorithm for balanced two-way partitioning. It combines the BLDM algorithm with the complete-Karmarkar–Karp algorithm.
Balanced triplet partitioning Another special case called 3-partitioning is when the number of items in each subset should be at most 3 (k = 3). Deciding whether there exists such a partition with equal sums is exactly the 3-partition problem, which is known to be strongly NP-hard. There are approximation algorithms that aim to find a partition in which the sum is as nearly-equal as possible.
Kellerer and Woeginger adapt the LPT algorithm to triplet partitioning (where there are at most 3*m items, and each subset should contain at most 3 items). Their algorithm is called modified-LPT or MLPT. It orders the items from large to small, and puts each item in turn into the bin with the smallest sum among those bins that contain fewer than 3 items. They show that the MLPT algorithm attains at most 4m−13m of the minimum largest sum, which is the same approximation ratio that LPT attains for the unconstrained problem. The bound is tight for MLPT. Chen, He and Lin show that, for the same problem, MLPT attains at least 3m−14m−2 of the maximum smallest sum, which is again the same ratio that LPT attains for the unconstrained problem. Kellerer and Kotov present a different algorithm (for the case with exactly 3*m items), that attains at most 7/6 of the minimum largest sum.
Balanced partitioning with larger cardinalities A more general case, called k-partitioning, is when the number of items in each subset should be at most k, where k can be any positive integer..
… excerpt ends here. Continue reading the full article.