Class MatchingWeightedBipartiteHungarianMethod

All Implemented Interfaces:
MatchingAlgo

public class MatchingWeightedBipartiteHungarianMethod extends MatchingAlgoAbstractBasedMaximum
Kuhn's Hungarian method for maximum weighted matching in bipartite graphs.

The running time of the algorithm is O(mn+n2logn) and it uses linear space.

Based on 'The Hungarian method for the assignment problem' by Kuhn, H.W. (1955). The original paper stated a running time of O(n3), but by using heaps with decreaseKey operations in O(1) the running time can be reduced to O(mn+n2logn), as done in this implementation.

Author:
Barak Ugav
  • Constructor Details Link icon

    • MatchingWeightedBipartiteHungarianMethod Link icon

      public MatchingWeightedBipartiteHungarianMethod()
      Create a new maximum weighted matching object.