Balanced number partitioning
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 k, c. The output is a partition of the items into k subsets, such that the number of items in each subset is at most c. Subject to this, it is required that the sums of sizes in the k subsets are as similar as possible. The problem has applications, for example, in manufacturing of VLSI chips, and in assigning tools to machines in flexible manufacturing systems.[1]
Two-way balanced partitioning
A common special case is when there are two sets (k=2). The goal is to partition the n items into two subsets of 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 [2] 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[3] 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 . The expected work-difference (difference between largest and smallest sum) is .[4]
- Lueker[5] presents a variant of the LDM algorithm (called Pairwise Differencing Method or PDM). Its expected work-difference is .
- Tsai[4] presents an algorithm called Restricted Largest Difference (RLD). Its work-difference is almost surely.
- Yakir[6] presents a balanced variant of the LDM algorithm for k=2, called BLDM. Its expected work-difference is .
- Mertens[7] 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 is when the number of items in each subset should be at most 3 (c=3). Deciding whether there exists such a partition with equal sums is 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[8] adapt the LPT algorithm to triplet partitioning (where there are at most 3*k 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 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[9] show that, for the same problem, MLPT attains at least of the maximum smallest sum, which is again the same ratio that LPT attains for the unconstrained problem.
- Kellerer and Kotov[10] present a different algorithm (for the case with exactly 3*k items), that attains at most of the minimum largest sum.
General cardinality constraints
A more general case is when the number of items in each subset should be at most c, where c can be any positive integer.
- Babel, Kellerer and Kotov[11] study a variant in which there are c*k items (for some integer c), and each of the k sets must contain exactly c items. They present several heuristic algorithms for approximating the minimum largest sum:
- Folding algorithm: optimal for k=2, and in general has tight approximation ratio .
- Exchange algorithm: tight approximation ratio . It is not known if it runs in polynomial time.
- Primal-dual algorithm (a combination of LPT and MultiFit): approximation ratio at most . It is not known if this is tight.
- The also conjecture that Modified-LPT has an approximation ratio . Currently, this conjecture is known to be true only for c=3.[8]
- Michiels, Korst, Aarts, van Leeuwen[12] and Spieksma[13] study a variant in which each of the k sets must contain either ceiling(n/k) or floor(n/k) items (so c=ceiling(n/k)). They prove that the approximation ratio of Balanced-LDM (BLDM), for the minimum largest sum, is exactly 4/3 for c=3, 19/12 for c=4, 103/60 for c=5, 643/360 for c=6, and 4603/2520 for c=7. The ratios were found by solving a mixed integer linear program. In general (for any c), the approximation ratio is at least and at most . When the parameter is the number of subsets (k), the approximation ratio is exactly .
- When c is fixed, a PTAS of Hochbaum and Shmoys[14] can be used for balanced partitioning.[13] When c is part of the input, no PTAS is currently known.[13]
Kernel balanced partitioning
The kernel balanced-partitioning problem is a variant of balanced partitioning in which some k pre-specified items are kernels, and each of the k subsets must contain a single kernel.
- Chen, He and Yao[15] prove that the problem is NP-hard even for c=3 (for c=2 it can be solved efficiently by finding a maximum weight matching). They then present an algorithm called Kernel-LPT (KLPT): it assigns a kernel to each subset, and then runs the modified LPT algorithm (puts each item into the subset with the smallest sum among those that have fewer than c items). They prove that, with c=3, KLPT has an approximation ratio for the minimum largest sum.[15]: 3 However, Chen, He and Lin[9]: 2 claim that its tight approximation ratio is for the minimum largest sum,[clarification needed] and for the maximum smallest sum.
Relations between balanced and unconstrained problems
There are some general relations between approximations to the balanced partition problem and the standard (unconstrained) partition problem.
- Babel, Kellerer and Kotov[11] prove that the ratio between the unconstrained optimum and the constrained optimum is at most , and it is tight.
- Kellerer and Kotov[10] prove that every heuristic for balanced partitioning with capacity c and approximation-ratio r (for the minimum largest sum) can be employed to obtain a heuristic for unconstrained partitioning with approximation-ratio . In particular, their -approximation algorithm for triplet partitioning (c=3) can be used to obtain a heuristic for unconstrained partitioning with approximation-ratio .
Matroid constraints
The cardinality constraints can be generalized to matroid constraints. A fixed matroid is given as a parameter, and each of the k subsets should be an independent set or a base of this matroid. Cardinality constraints are special cases of matroid constraints in which the matroid is a uniform matroid. Cardinality+kernel constraints are a special case in which the matroid is a partition matroid.
- Burkard and Yao[16] derive conditions for cases in which the problem can be solved optimally by a greedy algorithm.
References
- ^ Tsai, Li-Hui (1992-02-01). "Asymptotic Analysis of an Algorithm for Balanced Parallel Processor Scheduling". SIAM Journal on Computing. 21 (1): 59–64. doi:10.1137/0221007. ISSN 0097-5397.
- ^ Garey, Michael; Johnson, David (1979). Computers and Intractability; A Guide to the Theory of NP-Completeness. pp. 96–105. ISBN 978-0-7167-1045-5.
- ^ Coffman, E. G.; Frederickson, G. N.; Lueker, G. S. (1984-05-01). "A Note on Expected Makespans for Largest-First Sequences of Independent Tasks on Two Processors". Mathematics of Operations Research. 9 (2): 260–266. doi:10.1287/moor.9.2.260. ISSN 0364-765X.
- ^ a b Tsai, Li-Hui (1992-02-01). "Asymptotic Analysis of an Algorithm for Balanced Parallel Processor Scheduling". SIAM Journal on Computing. 21 (1): 59–64. doi:10.1137/0221007. ISSN 0097-5397.
- ^ Lueker, George S (1987-12-01). "A note on the average-case behavior of a simple differencing method for partitioning". Operations Research Letters. 6 (6): 285–287. doi:10.1016/0167-6377(87)90044-7. ISSN 0167-6377.
- ^ Yakir, Benjamin (1996-02-01). "The Differencing Algorithm LDM for Partitioning: A Proof of a Conjecture of Karmarkar and Karp". Mathematics of Operations Research. 21 (1): 85–99. doi:10.1287/moor.21.1.85. ISSN 0364-765X.
- ^ Mertens, Stephan (1999-03-11). "A complete anytime algorithm for balanced number partitioning". arXiv:cs/9903011.
- ^ a b Kellerer, Hans; Woeginger, Gerhard (1993-09-07). "A tight bound for 3-partitioning". Discrete Applied Mathematics. 45 (3): 249–259. doi:10.1016/0166-218X(93)90013-E. ISSN 0166-218X.
- ^ a b Chen, Shi Ping; He, Yong; Lin, Guohui (2002-03-01). "3-Partitioning Problems for Maximizing the Minimum Load". Journal of Combinatorial Optimization. 6 (1): 67–80. doi:10.1023/A:1013370208101. ISSN 1573-2886.
- ^ a b Kellerer, Hans; Kotov, Vladimir (1999-02-01). "A 7/6–Approximation Algorithm For 3-Partitioning And Its Application To Multiprocessor Scheduling". INFOR: Information Systems and Operational Research. 37 (1): 48–56. doi:10.1080/03155986.1999.11732368. ISSN 0315-5986.
- ^ a b Babel, Luitpold; Kellerer, Hans; Kotov, Vladimir (1998-02-01). "The k-partitioning problem". Mathematical Methods of Operations Research. 47 (1): 59–82. doi:10.1007/BF01193837. ISSN 1432-5217.
- ^ Michiels, Wil; Korst, Jan; Aarts, Emile; van Leeuwen, Jan (2003), "Performance Ratios for the Differencing Method Applied to the Balanced Number Partitioning Problem", Lecture Notes in Computer Science, Berlin, Heidelberg: Springer Berlin Heidelberg, pp. 583–595, doi:10.1007/3-540-36494-3_51, retrieved 2021-10-15
- ^ a b c Michiels, W.; Aarts, E.; Korst, J.; van Leeuwen, J.; Spieksma, F. C. R. (2012-02-01). "Computer-assisted proof of performance ratios for the Differencing Method". Discrete Optimization. 9 (1): 1–16. doi:10.1016/j.disopt.2011.10.001. ISSN 1572-5286.
- ^ Hochbaum, Dorit S.; Shmoys, David B. (1987-01-01). "Using dual approximation algorithms for scheduling problems theoretical and practical results". Journal of the ACM. 34 (1): 144–162. doi:10.1145/7531.7535. ISSN 0004-5411. S2CID 9739129.
- ^ a b Chen, S. -P.; He, Y.; Yao, E. -Y. (1996-09-01). "Three-partitioning containing kernels: Complexity and heuristic". Computing. 57 (3): 255–271. doi:10.1007/bf02247409. ISSN 0010-485X.
- ^ Burkard, Rainer E.; Yao, En-Yu (1990-07-01). "Constrained partitioning problems". Discrete Applied Mathematics. 28 (1): 21–34. doi:10.1016/0166-218X(90)90091-P. ISSN 0166-218X.