Assignment Problem and Sequencing
Big idea: How the Hungarian method matches n tasks 1-to-1 at minimum cost, and Johnson's rule orders jobs on machines.
Big picture flow
- 01Balance & Convert Max → Min
- 02Row & Column Min Subtraction
- 03Cover Zeros (Stop if Lines = n)
- 04Johnson's Rule (A Front, B Back)
- 05Build In-Out Table for T & Idle
1Assignment and Hungarian method
Hungarian = Row subtract, Col subtract, Min lines to cover zeros; stop when ==lines = n==.
Trick: Row min -> Col min -> Cover zeros -> If lines < n, shrink uncovered by k and fatten intersections by k.
2Special assignment cases
Balance with 0s, convert max via (max − entry), block forbidden with ∞, sum from original table.
Trick: Short table? Pad with 0s. Maximization? Subtract from biggest number. Forbidden cell? Put infinity.
3Sequencing n jobs on 2 machines
Min on A goes front, min on B goes back; In_B = max(Out_A, prev Out_B).
Trick: A stands for Ahead (front of queue); B stands for Back (end of queue).
4Sequencing n jobs on 3 machines
Check min(A)≥max(B) or min(C)≥max(B); sequence on ==G=A+B, H=B+C==; time on A, B, C.
Trick: Middle machine B must be no slower than the fastest end machine (min A or min C >= max B); merge A+B and B+C.
Key terms glossary
- Hungarian Method:
- Optimization algorithm using row/column reduction and minimum zero-covering lines to solve assignments.
- Unbalanced Assignment:
- Matrix where rows ≠ columns, balanced by adding dummy row(s) or column(s) with zero costs.
- Restricted Assignment:
- Assignment problem where prohibited cells are assigned infinity (∞) so they are never selected.
- Total Elapsed Time (T):
- Total duration from the start of the first job on Machine A to finish of the last job on last machine.
- Idle Time:
- Duration for which a machine remains free and waiting while no job is running on it.
- Johnson's Rule:
- Rule placing smallest time on Machine A at the front and smallest time on Machine B at the back.