Operations research
Cheat sheet
The Hungarian method on one card
The whole Hungarian method on one card. Recall step two before I say it.
Quick check · tap an answer to continue
Lesson notes
Solve an assignment problem using the Hungarian method
Key points
- Square the matrix: If lecturers and courses differ in number, add a dummy row or column of zeros.
- Row reduction: Subtract each row's smallest preparation time from every entry in that row.
- Column reduction: Then subtract each column's minimum; skipping this is the classic lost mark.
- Minimum lines: Cover all zeros with the fewest lines; optimal when lines equal matrix order.
- Adjust the matrix: Subtract the smallest uncovered value from uncovered cells, add it at intersections.
- Assign on zeros: Pick one zero per row and column, then sum original times for total.
Takeaway: Reduce rows and columns, then lines must equal the matrix order.
Quick check: In a 4×4 problem, three lines cover all zeros. What do you do next?
- Make the final assignment
- Adjust using smallest uncovered
- Redo the row reduction
Fewer lines than four means not optimal yet, so adjust the matrix.
Hungarian methodopportunity cost matrix
Lessons like this, for your syllabus.
Short narrated study videos written for your course, level and exam. Free to start.
Get lessons for your own syllabus