A complete anytime algorithm for number partitioning

被引:114
作者
Korf, RE [1 ]
机构
[1] Univ Calif Los Angeles, Dept Comp Sci, Los Angeles, CA 90095 USA
基金
美国国家科学基金会;
关键词
number partitioning; anytime algorithm; NP-complete;
D O I
10.1016/S0004-3702(98)00086-1
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Given a set of numbers, the two-way number 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. 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, and significantly outperforms the best previously-known algorithms for large problem instances. For numbers with twelve significant digits or less, CKK can optimally solve two-way partitioning problems of arbitrary size in practice. For numbers with greater precision, CKK first returns the Karmarkar-Karp solution, then continues to find better solutions as time allows. Over seven orders of magnitude improvement in solution quality is obtained in less than an hour of running time. Rather than building a single solution one element at a time, or modifying a complete solution, CKK constructs subsolutions, and combines them together in all possible ways. This approach may be effective for other NP-hard problems as well. (C) 1998 Elsevier Science B.V. All rights reserved.
引用
收藏
页码:181 / 203
页数:23
相关论文
共 21 条
[1]  
[Anonymous], 1991, P 4 ICGA
[2]  
BODDY M, 1989, P 11 INT JOINT C ART, P979
[3]  
BRIGHT J, 1994, PROCEEDINGS OF THE TWELFTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOLS 1 AND 2, P1341
[4]  
Carey M., 1979, COMPUTER INTRACTABIL
[5]  
Cheeseman P C., 1991, INT JOINT C ARTIFICI, V91, P331
[6]  
Gent I., 1995, RR95185 U STRATHCL D
[7]  
GENT IP, 1997, P IJCAI 97, P1396
[8]  
HARVEY WD, 1995, P 14 INT JOINT C ART, P607
[9]   COMPUTING PARTITIONS WITH APPLICATIONS TO KNAPSACK PROBLEM [J].
HOROWITZ, E ;
SAHNI, S .
JOURNAL OF THE ACM, 1974, 21 (02) :277-292
[10]   PHASE-TRANSITIONS IN ARTIFICIAL-INTELLIGENCE SYSTEMS [J].
HUBERMAN, BA ;
HOGG, T .
ARTIFICIAL INTELLIGENCE, 1987, 33 (02) :155-171