没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > hungarianassignment |
|
hungarianassignment
|
| 0 | 0 | 0 |
| 贡献者 | 讨论 | 代码提交 |
From Wikipedia: "The Hungarian algorithm is a combinatorial optimization algorithm which solves assignment problems in polynomial time (O(n3)). The first version, known as the Hungarian method, was invented and published by Harold Kuhn in 1955. This was revised by James Munkres in 1957, and has been known since as the Hungarian algorithm, the Munkres assignment algorithm, or the Kuhn-Munkres algorithm."
This implementation uses C++ and the STL Vector class to build the assignment matrix and perform the operations of the algorithm to find an optimal solution to an assignment problem.
Disclaimer: There are some structural elements of this program which are not generally lauded in standard programming practice. In any case where you see a portion of code and think "Wow, this guy doesn't know what he's doing!", there is certainly a very good reason why I did what I did. Usually these are to improve the runtime of the algorithm by a small constant coefficient. These never change the actual Big-O runtime of the program but these small improvements certainly add up when doing as many operations as may be necessary.
标签:
