Solution-Hashing Search Based on Layout-Graph Transformation for Unequal Circle Packing

Jianrong Zhou, Jiyao He, Kun He · DOI

Abstract

The Packing Unequal Circles in a Circle (PUCC) problem is a challenging NP-hard task in computational geometry with significant industrial applications. This paper presents the Iterative Solution-Hashing Search (I-SHS) algorithm, which utilizes a novel layout-graph transformation and solution-hashing technique to overcome the challenges of isomorphism and "rattlers." By converting geometric layouts into topological graphs and applying a double-hash function, the algorithm efficiently identifies and skips redundant configurations. Experimental results on 179 benchmark instances demonstrate that I-SHS found 56 new best-known results, establishing a new state-of-the-art for the PUCC problem.

Introduction

The Circle Packing Problem (CPP) involves arranging a set of circles within a container to minimize the container's size or maximize packing density without overlaps. This study focuses on the Packing Unequal Circles in a Circle (PUCC) variant, where circles have varying radii. Beyond its theoretical interest, PUCC has practical applications in circular cutting, container loading, and satellite component packaging.

A primary difficulty in solving PUCC is the existence of isomorphism—where layouts are geometrically distinct due to rotation or reflection but topologically identical. Furthermore, "rattlers" (loose circles) create infinite variations of the same basic layout. Traditional search heuristics often waste computational resources re-exploring these symmetrical or nearly identical configurations.

Methodology: The I-SHS Algorithm

The researchers developed the Iterative Solution-Hashing Search (I-SHS), a hierarchical framework that integrates global search strategies with local optimization.

The hierarchical framework of the I-SHS algorithm, showing the progression from higher-level search to continuous optimization.

The algorithm's effectiveness stems from four key innovations:

  1. Layout-Graph Transformation: Geometric configurations are converted into graphs where vertices represent circles (ranked by radius) and edges represent overlaps or contact with the container boundary. This shifts the focus from exact coordinates to topological relationships.
  2. Solution-Hashing: A double-hash function is applied to the layout graph. This allows the algorithm to instantly detect if a configuration is a symmetric variant of a previously explored state, effectively pruning the search space.
  3. Advanced Vacancy Detection: Utilizing Voronoi diagrams, the algorithm identifies the largest empty spaces within the container for optimal circle insertion.
  4. Adaptive Adjacency Maintenance (AAM): During continuous optimization using the L-BFGS method, AAM dynamically updates neighbor lists to reduce computational overhead.
Visual representation of the layout optimization process, transitioning from an initial overlapping state to a feasible, optimized packing.

Experimental Evaluation

The I-SHS algorithm was tested against 179 world-standard benchmark instances across six distributions, including the Al Zimmermann’s Programming Contest (AZPC) and various power-law distributions ($r_i = i^{-1/2}, i^{1/2}$, etc.) that reflect real-world scenarios.

Key Results

  • Record-Breaking Performance: I-SHS discovered new "Best-Known Results" (BKR) for 56 instances and matched the BKR for the remaining 123.
  • Reliability: For smaller instances ($n \le 28$), the algorithm achieved a 100% success rate in finding optimal solutions.
  • Scalability: The advantage of the hashing-based approach became more pronounced as the number of circles increased, demonstrating superior efficiency in handling massive search spaces compared to traditional methods like Tabu Search.

Discussion and Insights

The core insight of this work is that the topology of a packing—the contact relationships between circles—is more critical for search efficiency than precise $(x, y)$ coordinates. By treating geometry as a graph, the algorithm filters out the "noise" of rotations and reflections.

Furthermore, the algorithm addresses the "rattler" problem by identifying degree-0 vertices in the layout graph. By ignoring these loose circles during swap operations, the search avoids getting trapped in meaningless variations. While the double-hashing method is technically "inexact," the statistical probability of a hash collision is negligible, making it a robust tool for real-time search.

Conclusion and Future Work

The I-SHS algorithm sets a new benchmark for unequal circle packing. The underlying principles of layout-graph transformation and solution-hashing are generalizable. Future research could extend these techniques to 3D packing (spheres in containers), non-circular containers (polygons), and non-circular items (ellipses or rectangles).

Summary updated

BibTeX
@article{zhou2025solution,
  author = {Jianrong Zhou and Jiyao He and Kun He},
  title = {{Solution-Hashing Search Based on Layout-Graph Transformation for Unequal Circle Packing}},
  journal = {Eur. J. Oper. Res.},
  year = {2025},
  doi = {10.1016/j.ejor.2025.05.003},
}
Figure