[Paper Review] A complete anytime algorithm for balanced number partitioning
This paper presents a complete anytime algorithm for the balanced number partitioning problem, combining the balanced largest differencing method (BLDM) with Korf's complete Karmarkar-Karp algorithm. It first returns the BLDM solution and progressively improves it, optimally solving instances with up to 12 significant digits in practice, while handling higher-precision numbers by continuing to refine solutions over time.
Given a set of numbers, the balanced partioning problem is to divide them into two subsets, so that the sum of the numbers in each subset are as nearly equal as possible, subject to the constraint that the cardinalities of the subsets be within one of each other. We combine the balanced largest differencing method (BLDM) and Korf's complete Karmarkar-Karp algorithm to get a new algorithm that optimally solves the balanced partitioning problem. For numbers with twelve significant digits or less, the algorithm can optimally solve balanced partioning problems of arbitrary size in practice. For numbers with greater precision, it first returns the BLDM solution, then continues to find better solutions as time allows.
Motivation & Objective
- To address the balanced number partitioning problem, where numbers must be split into two subsets with nearly equal sums and nearly equal cardinalities.
- To develop an algorithm that is both complete (guarantees optimal solution) and anytime (improves solution over time).
- To handle high-precision numbers effectively by initially returning a good heuristic solution and refining it progressively.
- To combine the efficiency of BLDM with the optimality of the Karmarkar-Karp algorithm for superior performance.
Proposed method
- Integrates the balanced largest differencing method (BLDM) as an initial heuristic to generate a feasible solution quickly.
- Uses Korf's complete Karmarkar-Karp algorithm to systematically explore the solution space and guarantee optimality.
- Maintains a priority queue of partial partitions, prioritizing those with the smallest difference in subset sums.
- Applies the Karmarkar-Karp differencing technique recursively to reduce the problem size and improve solution quality.
- Continues refining solutions beyond the initial BLDM output, especially for high-precision inputs.
- Employs a hybrid strategy where BLDM provides a fast starting point and Karmarkar-Karp ensures completeness and optimality.
Experimental results
Research questions
- RQ1Can a complete anytime algorithm be designed for balanced number partitioning that guarantees optimality while improving solutions over time?
- RQ2How can the efficiency of BLDM be combined with the completeness of the Karmarkar-Karp algorithm to solve large instances effectively?
- RQ3What is the performance limit of such a hybrid algorithm for numbers with up to 12 significant digits?
- RQ4How does the algorithm behave on high-precision inputs where optimal solutions are harder to compute?
- RQ5What is the trade-off between solution quality and computation time in the anytime refinement process?
Key findings
- The algorithm optimally solves balanced partitioning problems with numbers having up to 12 significant digits in practice.
- For inputs with higher precision, the algorithm returns the BLDM solution initially and continues to improve it over time.
- The combination of BLDM and Karmarkar-Karp ensures both fast initial performance and eventual optimality.
- The algorithm is complete, meaning it will eventually find the optimal solution regardless of input size or precision.
- The anytime nature allows users to stop the computation at any time and receive the best solution found so far.
- The method effectively balances solution quality and computational effort, making it suitable for real-world applications with varying time constraints.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.