Hungarian Method is an efficient method for solving assignment problems.
This method is based on the following principle:
The objective of this section is to examine a computational method - an algorithm - for deriving solutions to the assignment problems. The following steps summarize the approach:
Steps in Hungarian Method 1. Identify the minimum element in each row and subtract it from every element of that row.
2. Identify the minimum element in each column and subtract it from every element of that column.
3. Make the assignments for the reduced matrix obtained from steps 1 and 2 in the following way:
4. An optimal assignment is found, if the number of assigned cells equals the number of rows (and columns). In case you have chosen a zero cell arbitrarily, there may be alternate optimal solutions. If no optimal solution is found, go to step 5.
5. Draw the minimum number of vertical and horizontal lines necessary to cover all the zeros in the reduced matrix obtained from step 3 by adopting the following procedure:
6. Select the smallest element from all the uncovered elements. Subtract this smallest element from all the uncovered elements and add it to the elements, which lie at the intersection of two lines. Thus, we obtain another reduced matrix for fresh assignment.
7. Go to step 3 and repeat the procedure until you arrive at an optimal assignment.