1.
Subtract the smallest entry in each row from all the entries
of its row.
2.
Subtract the smallest entry in each column from all the
entries of its column.
3.
Cover all zero entries by drawing line through appropiate
rows and columns, use minimal number of lines.
3 minimal number of lines that cover all zeros. We are done!
4.
If the minimal number of lines is 3 ( or n for an n x nand optimal a ssignment of zereod is possible and we are done. An optimal
assignment obtained by selecting a zero entry from each row.
5.
If minimal number of lines is less than 3 ( or less than n,
for an n x n matrix), go to step 5.
6.
Consider the entries that are not covered by any line.
Subtract the smallest of these uncovered entries from all uncovered
entries, then add it to all entries coved by a horizontal and a vertical
line. Return to Step 3.