Hungarian Algorithm for Linear Assignment Problems (V2.3)
by Yi Cao
10 Jul 2008
(Updated 15 Sep 2011)
An extremely fast implementation of the Hungarian algorithm on a native Matlab code.
|
Watch this File
|
| File Information |
| Description |
This is an extremely fast implementation of the famous Hungarian algorithm (aslo known as Munkres' algorithm). It can solve a 1000 x 1000 problem in about 20 seconds in a Core Duo (T2500 @ 2.00GHz) XP laptop with Matlab 2008a, which is about 2.5 times faster than the mex code "assignmentoptimal" in FEX ID 6543, about 6 times faster than the author's first version in FEX ID 20328, and at least 30 times faster than other Matlab implementations in the FEX.
The code can also handle rectangular prolems and problems with forbiden allocations.
The new version (V2.3)is able to conduct a partial assignment if a full assignment is not feasible.
For more details of the Hungarian algorithm, visit http://csclab.murraystate.edu/bob.pilgrim/445/munkres.html |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
assignprob.zip
This submission has inspired the following:
Eigenshuffle, Hungarian based particle linking, LAPJV - Jonker-Volgenant Algorithm for Linear Assignment Problem V2.5, Simple Tracker
|
| MATLAB release |
MATLAB 7.12 (2011a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 16 Dec 2008 |
Bug fix |
| 01 Mar 2010 |
Update to improve efficiency further. |
| 11 Sep 2011 |
The new version implements particial assignment if a full assignment is not feasible. |
| 15 Sep 2011 |
a bug fixed |
|
Contact us at files@mathworks.com