Scalable Algorithms for 2-Packing Sets on Arbitrary Graphs
Jannick Borowitz, Ernestine Großmann, Christian Schulz, Dominik Schweisgut
TL;DR
This work tackles the NP-hard maximum 2-packing set problem on arbitrary graphs by introducing red2pack, a three-phase framework that interleaves problem-specific data reductions, a graph transformation to a square graph, and maximum independent set (MIS) solving on the transformed instance. The authors prove an equivalence between MIS on the square graph G² and 2-packing on the original graph G, enabling the use of state-of-the-art MIS solvers after kernelization. They present both an exact variant (red2pack_b&r) and a heuristic variant (red2pack_heuristic), and show that the approach dramatically outperforms existing methods for arbitrary graphs in solution quality and speed, solving a large share of instances optimally within seconds and many previously unsolved large instances. On planar graphs, the method remains competitive, approaching the performance of specialized solvers while offering substantial speed advantages in many cases. The contributions include novel data-reduction rules, a robust graph-transformation pipeline, and publicly available code, with future work targeting additional reductions, weighted and larger-k packing variants, and hypergraph-based motifs.
Abstract
A 2-packing set for an undirected graph $G=(V,E)$ is a subset $\mathcal{S} \subset V$ such that any two vertices $v_1,v_2 \in \mathcal{S}$ have no common neighbors. Finding a 2-packing set of maximum cardinality is a NP-hard problem. We develop a new approach to solve this problem on arbitrary graphs using its close relation to the independent set problem. Thereby, our algorithm red2pack uses new data reduction rules specific to the 2-packing set problem as well as a graph transformation. Our experiments show that we outperform the state-of-the-art for arbitrary graphs with respect to solution quality and also are able to compute solutions multiple orders of magnitude faster than previously possible. For example, we are able to solve 63% of the graphs in the tested data set to optimality in less than a second while the competitor for arbitrary graphs can only solve 5% of these graphs to optimality even with a 10 hour time limit. Moreover, our approach can solve a wide range of large instances that have previously been unsolved.
