Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 282 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 282 Bytes

hungarian-python

Python Implementation of Hungarian Algorithm

Requirement

  • numpy
  • numba

Usage

from hungarian import Hungarian

N = 10  # problem size
cost_matrix = np.random.random((N, N))
h = Hungarian(N)
assignment, total_cost = h.execute(cost_matrix)