Traditional Culture Encyclopedia - Traditional culture - Advantages and Disadvantages of the Hungarian Algorithm
Advantages and Disadvantages of the Hungarian Algorithm
The Hungarian algorithm is a combinatorial optimization algorithm that is a faster way to solve polynomial time complexity problems.
1. find the smallest element from each row and subtract that value from all the elements in that row;
2. find the smallest element from each column and subtract that value from all the elements in that column;
3. such that m = the smallest number of rows needed to cover all the zeros in the table;
4. while (m! = the smallest number of number of columns)
find the smallest element from those found
subtract this element from all other elements not found
add this element to the elements where the lines intersect
find the new
5. use zeros to assign possible combinations, i.e., assign tasks whenever zeros exist;
6. find the the lowest cost;
7. end.
- Previous article:The background music of Wushu champion Su (all)
- Next article:Ghost Festival Dongguan where to play
- Related articles
- On which platform can I make money by publishing articles with a large number of views?
- Wukong Temple, Jiangyin City, Jiangsu Province
- How about opening a ramen restaurant profits
- Vocal introductory songs
- Geographical problems: conditions suitable for naval battles near the North Sea during World War II
- Motivation of commercial banks to develop blockchain
- What should I do to start a small business now?
- Bibliography of Human Slices and Imaging Anatomy
- The harm of network fraud
- What are the main risks of project management and how to control