Hungarian Algorithm for Linear Assignment Problems (V2.1)
by Yi Cao
10 Jul 2008
(Updated 16 Dec 2008)
Code covered by BSD License
An extremely fast implementation of the Hungarian algorithm on a native Matlab code.
Download Now
|
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 30 seconds in a Core Duo (T2500 @ 2.00GHz) XP laptop with Matlab 2008a, which is about 1.5 times faster than the mex code "assignmentoptimal" in FEX ID 6543, about 4 times faster than the author's first version in FEX ID 20328, and at least 20 times faster than other Matlab implementations in the FEX.
The code can also handle rectangular prolems and problems with forbiden allocations.
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
|
| 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 |
| 16 Dec 2008 |
Bug fix |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com