Solving large-scale maximum weight non-bipartite matching in Euclidean space
The maximum weight non-bipartite matching problem consists of pairing the nodes of a weighted graph so that the total weight of the edges connecting paired nodes is maximized. Although the problem can be solved in polynomial time, no existing exact algorithm scales well to large graphs. Such large graphs are common in applications where the nodes are d-dimensional feature vectors in Euclidean space and the edge weights are pairwise distances, so that every pair of nodes is connected. We introduce Assignment-Based Matching (ABM), a new algorithm for non-bipartite matching in Euclidean space that builds a solution by solving one or more assignment problems. For small-sized datasets, ABM delivers solutions that are only a fraction of a percent off the optimum, at much faster runtimes compared to exact algorithms. For medium- and large-sized datasets with up to six million objects, where exact algorithms fail to deliver solutions, ABM produces the best known solutions compared to state-of-the-art heuristics within seconds to a few minutes. Overall, as shown here, ABM proves to be the most effective Euclidean maximum weight matching algorithm in terms of both runtime and quality of solutions.