Abstract: This paper introduces $MP_{KM-M}$, an optimized algorithm for the Partitioning Min-Max Weighted Matching (PMMWM) problem. By implementing an incremental $O(n^2)$ update mechanism in the matching phase, the algorithm achieves up to 19x speedup over existing state-of-the-art heuristics while maintaining identical solution quality.
Introduction
Combinatorial optimization problems often involve balancing multiple constraints. The Partitioning Min-Max Weighted Matching (PMMWM) problem is a prime example, requiring both a perfect matching in a bipartite graph and a partition of vertices that minimizes the maximum weight sum across groups. While heuristics like $MP_{LS}$ have been developed to tackle this NP-hard problem, they often suffer from computational bottlenecks. This paper presents $MP_{KM-M}$, an algorithm that significantly enhances efficiency by identifying and eliminating redundant calculations in the matching phase.
The PMMWM Problem
The PMMWM problem can be conceptualized as assigning $n$ workers to $n$ tasks, where each assignment has an associated cost. These workers are further divided into $m$ disjoint groups (e.g., $U_1, U_2, U_3$). The objective is to find a matching such that the maximum total cost among all groups is minimized. This problem is "NP-hard in the strong sense," making it computationally grueling for large datasets in real-world applications like seaport container management or factory task allocation.
As illustrated in the figure above, an initial feasible solution (a) might result in unbalanced group costs (e.g., where one group has a significantly higher sum than others). By iteratively adjusting edge weights and re-matching, the algorithm seeks an improved solution (b) where the maximum group weight is reduced, achieving a more balanced and optimal distribution.
Algorithmic Innovation: $MP_{KM-M}$
The previous state-of-the-art $MP_{LS}$ heuristic utilizes an iterative framework involving matching, partitioning, and weight adjustment. However, $MP_{LS}$ traditionally recomputes the entire matching from scratch using the Kuhn-Munkres (KM) algorithm in $O(n^3)$ time for every iteration, which becomes a bottleneck as $n$ grows.
The authors' core contribution is the realization that since only a single edge weight changes per iteration, the majority of the previous matching remains valid. $MP_{KM-M}$ leverages this through:
- Incremental Updates: Instead of discarding the previous state, the algorithm reuses it and only rematches the specific vertex affected by the weight change.
- Complexity Reduction: This shift reduces the bottleneck time complexity of the matching phase from $O(n^3)$ to $O(n^2)$.
- Primal-Dual Proof: The authors used the primal-dual method to formally prove that this incremental update yields the same optimal matching as running the full algorithm from scratch.
Experimental Results
To evaluate the performance of $MP_{KM-M}$, the authors generated a massive benchmark of 18,900 instances, including structured bipartite graphs (BPS), complete graphs (RAND), and sparse graphs. The computational study showed that $MP_{KM-M}$ significantly outperformed $MP_{LS}$ across all categories:
- Small Instances ($n = 100$ to $190$): $MP_{KM-M}$ was 2 to 12 times faster.
- Large Instances ($n = 1000$ to $1400$): The speedup increased to 8 to 19 times faster.
- Consistency: Because the optimization is procedural rather than logical, $MP_{KM-M}$ produces the exact same objective values as $MP_{LS}$, making it a seamless "drop-in" replacement.
Conclusion
$MP_{KM-M}$ demonstrates that maintaining state and avoiding redundant calculations is key to scaling iterative heuristics. By reducing the complexity of the matching phase, the authors have enabled the solution of large-scale PMMWM instances in seconds rather than minutes. This "incremental update" strategy holds potential for other iterative combinatorial algorithms that currently suffer from similar inefficiencies.
Summary updated