blob: bd6def1299a49d3578e96d199c95dee210994a83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
The Munkres module provides an implementation of the Munkres algorithm
(also called the Hungarian algorithm or the Kuhn-Munkres algorithm).
The algorithm models an assignment problem as an NxM cost matrix,
where each element represents the cost of assigning the i-th worker to
j-th job, and it figures out the least-cost solution, choosing a
single item from each row and column in the matrix, such that no row
and no column are used more than once.
If you want to build this for use with Python 3.x (needs the
optional dependency python3) pass the script PYTHON3=yes, like
PYTHON3=yes ./munkres.SlackBuild
|