Munkres Assignment Algorithm
by Yi Cao
17 Jun 2008
(Updated 27 Jun 2008)
An efficient implementation of the Munkres algorithm for the assignment problem.
|
Watch this File
|
| File Information |
| Description |
Munkres algorithm (also known as Hungarian algorithm) is an efficient algorithm to solve the assignment problem in polynomial-time. The algorithm has many applications in combinatorial optimization, for example in Traveling Salesman problem.
There are a few submissions in the File Exchange for the Munkres algorithm. However, most of them are not efficient. Therefore, I decided to develop my own code. By comparing with existing programms, this code is about two to 5 times faster. For instance, for a 400 x 400 random example, this code can solve it in 4 to 6 seconds, whilst other programs have to take about 17 to 35 seconds. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
assignprob.zip, Functions for the rectangular assignment problem, Hungarian Algorithm
This submission has inspired the following:
LAPJV - Jonker-Volgenant Algorithm for Linear Assignment Problem V2.4, K-Best Assignment Algorithm
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 23 Jun 2008 |
fix a bug |
| 27 Jun 2008 |
fix a bug to handle nan elements. |
|
Contact us at files@mathworks.com