KuhnMunkres
Kuhn–Munkres algorithm, often called the Hungarian algorithm, is a classical method for solving the assignment problem. Given a matrix of weights representing profit or cost for assigning n workers to n tasks, the goal is to find a one-to-one assignment that maximizes total weight (or minimizes total cost). The algorithm computes a maximum weight matching in a complete bipartite graph or equivalently a permutation that maximizes the sum of selected weights. It is most efficient for square matrices, though rectangular instances may be reduced by padding.
Historically, Harold W. Kuhn introduced the method in 1955 to find maximum matchings in bipartite graphs; James
The approach uses dual variables (labels) on the two partition sides and maintains an equality (zero reduced-cost)
Applications include task assignment, scheduling, resource allocation, and data association in computer vision, as well as