Proceedings

From Approximate to Optimal Solutions: A Case Study of Number Partitioning

Download BibTeX Cite

Proceedings of the Fourteenth International Joint Conference on Artificial Intelligence. Automated Reasoning. Pages 266-271.

© 1995 International Joint Conferences on Artificial Intelligence

Abstract

Given a set of numbers, the two-way partitioning problem is to divide them into two subsets, so that the sum of the numbers in each subset are as nearly equal as possible. The problem is NP-complete, and is contained in many scheduling applications. Based on a polynomial-time heuristic due to Karmarkar and Karp, we present a new algorithm, called Complete Karmarkar Karp (CKK), that optimally solves the general number-partitioning problem. CKK significantly outperforms the best previously-known algorithms for this problem. By restricting the numbers to twelve significant digits, we can optimally solve two-way partitioning problems of arbitrary size in practice. CKK first returns the Karmarkar-Karp solution, then continues to find better solutions as time allows. Almost five orders of magnitude improvement in solution quality is obtained within a minute of running time. Rather than building a single solution one element at a time, CKK constructs subsolutions, and combines them in all possible ways. CKK is directly applicable to the 0/1 knapsack problem, since it can be reduced to number partitioning. This general approach may also be applicable to other NP-hard problems as well.

  1. Garey, M.R., and D.S. Johnson, Computers and Intractability: A Guide to the Theory of NP- Completeness, W.H. Freeman, San Francisco, 1979.
  2. Johnson, D.S., C.R. Aragon, L.A. McGeoch , and C. Schevon, Optimization by simulated annealing: An experimental evaluation; Part II, graph coloring and number partitioning, Operations Research, Vol. 39, No.3, 1991, pp . 378-406.
  3. Jones, D.R., and M.A. Beltramo, Solving parti- tioning problems with genetic algorithms, in Belew , R.K., and L.B. Booker (Eds.), Proceedings of the Fourth International Conference on Genetic Algo- rithms, Morgan Kaufmann, San Mateo, Ca., 1991 , pp. 442-449.
  4. Kahng, A., personal communication, 1993.
  5. Karmarkar, N., and R.M. Karp, The differenc- ing method of set partitioning, Technical Report UCB/CSD 82/113, Computer Science Division , University of California, Berkeley, Ca., 1982.
  6. Ruml, W., J.T. Ngo, J . Marks, S. Shieber, Easily searched encodings for number partitioning, Techni- cal Report TR-10-94, Center for Research in Com- puting Technology, Harvard University, Cambridge, Mass., 1994.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards