Introduction
Geometric matching is a cornerstone of computational geometry, with applications ranging from computer vision to pattern recognition. The problem involves pairing points from two sets, $A$ and $B$, to minimize the total distance. While perfect matching—where every point is paired—is well-understood, many real-world applications require partial matching. In this scenario, only $k$ pairs are matched, where $k < \min(|A|, |B|)$. This is particularly relevant when datasets contain noise, outliers, or obscured features that should not be forced into a match.
This paper presents a suite of algorithms that significantly improve the time complexity for both exact and approximate geometric partial matching in 2D space. By integrating classic flow-based techniques with novel data structure management, the authors achieve performance that scales efficiently with the number of matches $k$ rather than just the total number of points $n$.
Algorithmic Frameworks
The research focuses on two primary approaches to solve the partial matching problem:
1. Exact Matching via the Hungarian Algorithm
The authors adapt the classic primal-dual Hungarian algorithm for the geometric setting. The bottleneck in traditional implementations is finding the cheapest available edges (augmenting paths) to increase the matching size. To overcome this, the authors utilize Bichromatic Closest Pair (BCP) data structures. Instead of checking all $O(n^2)$ possible edges in a complete bipartite graph, the BCP structure allows the algorithm to query the most cost-effective edges dynamically, exploiting the geometric proximity of the points.
2. Approximate Matching via Cost-Scaling
For scenarios where a $(1+\epsilon)$-approximation is sufficient, the paper employs a cost-scaling framework. This approach reduces the matching problem to a min-cost circulation problem within a flow network. The algorithm iteratively refines the solution across different scales of precision, gradually converging on an optimal matching within the specified error bound.
Core Innovations: Rewinding and Implicit State
The primary contribution of this work lies in how it manages the state of geometric data structures during the search process.
- The Rewinding Mechanism: Updating BCP data structures is typically computationally expensive. The authors observed that the state of a matching changes incrementally between iterations of the Hungarian search. They introduced a "rewinding" mechanism that allows the data structure to undo and redo specific operations (insertions and deletions) to reach a previous state in $O(k \text{ polylog } n)$ time. This avoids the need for costly full reconstructions and allows the algorithm to "recycle" its previous work.
- Implicit Dead Nodes: In the cost-scaling approximation, many nodes in the flow network become "dead" (irrelevant to the current solution). The authors developed a method to represent these nodes implicitly. This ensures that the algorithm's complexity is sensitive to the number of active nodes (proportional to $k$) rather than the total number of points $n$, which is a major advantage for sparse partial matchings.
Complexity Breakthroughs
The theoretical analysis demonstrates significant improvements in asymptotic running times. These results represent a major improvement over previous methods, particularly when $k$ is small relative to $n$:
- Exact Partial Matching: $O((n + k^2) \text{ polylog } n)$
- Approximate Partial Matching ($(1+\epsilon)$): $O((n + k\sqrt{k}) \text{ polylog } n \cdot \log \epsilon^{-1})$
- Planar Transportation (Exact): $O(\min\{n^2, rn^{3/2}\} \text{ polylog } n)$ for unbalanced sets where one set has size $r \ll n$.
Discussion and Limitations
While these algorithms represent a major theoretical advancement, several practical considerations remain. The current formulations are optimized for 2D planes; extending these results to higher dimensions is challenging because the underlying geometric structures (like Voronoi diagrams) scale exponentially with dimensionality. Furthermore, the "polylog $n$" factors in the complexity bounds may contain large constants that could impact performance on smaller datasets.
Despite these limitations, the "rewinding" paradigm offers a powerful new tool for incremental geometric optimization, suggesting that similar techniques could be applied to a wider range of problems where data structures must be maintained across multiple search iterations.
Summary updated