Mathematics & Statistics (Part II) · Chapter 7
Assignment Problem and Sequencing
In one line: 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
Mind map
The whole chapter on one screen. Tap a branch to open it.
Tap any branch to jump to notes ↓
Topics
1Assignment and Hungarian method4 concepts · 1 formula
- Adding or subtracting a constant from any full row or column does NOT change the optimal assignment.
- Optimal zero-assignment exists when minimum covering lines equal matrix order n.
- Elements on a single covering line stay unchanged; subtract k from uncovered and add k to intersections.
- Assign rows or columns with a single zero first and cross out competing zeros in that row/column.
Memory hookRow min -> Col min -> Cover zeros -> If lines < n, shrink uncovered by k and fatten intersections by k.
Asked in: Mar 2025 · Mar 2026 · Jun 2026
2Special assignment cases4 concepts · 1 formula
- Always balance the matrix and convert maximization to minimization BEFORE row/column reductions.
- Always compute the final cost or profit from the ORIGINAL matrix, never the zero-reduced matrix.
- Multiplying all entries by −1 also converts maximization, though subtracting from max entry keeps values ≥ 0.
Memory hookShort table? Pad with 0s. Maximization? Subtract from biggest number. Forbidden cell? Put infinity.
Asked in: Mar 2024 · Jul 2024 · Jul 2025 · Mar 2026 · Jun 2026
3Sequencing n jobs on 2 machines4 concepts · 2 formulas
- Johnson's rule fills the sequence from both ends inward: min on A goes front, min on B goes back.
- If a tie occurs between A_i and B_j, place A_i at the front and B_j at the back.
- If a tie occurs on the same machine, pick the job with smaller time on the other machine.
- Machine B starts job k only after both job k finishes on A and job (k − 1) finishes on B.
Memory hookA stands for Ahead (front of queue); B stands for Back (end of queue).
Asked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Jun 2026
4Sequencing n jobs on 3 machines3 concepts · 2 formulas
- Check min(A) ≥ max(B) or min(C) ≥ max(B) first; if neither holds, this reduction method fails.
- Use G and H ONLY to find the optimal sequence; never use G and H to compute elapsed time T.
- On the original 3-machine table, total elapsed time T equals Out_C of the very last job.
Memory hookMiddle machine B must be no slower than the fastest end machine (min A or min C >= max B); merge A+B and B+C.
Asked in: Mar 2024 · Mar 2026
Key terms & definitions
Tap any card to test yourself before peeking.
Quick comparisons (VS.)
2-Machine vs 3-Machine Sequencing
VSQuick check (Board Q.1 practice)
In the Hungarian method, an optimal assignment is reached when the minimum number of lines covering all zeros equals:
Which condition allows reducing a 3-machine (A → B → C) sequencing problem to a 2-machine problem?
In an unbalanced assignment problem where columns exceed rows, we add a dummy column of zeros.
In Johnson's rule for 2 machines A → B, if the minimum time appears on Machine B, that job is scheduled at the end.
Value assigned to prohibited cells in a restricted assignment problem so they are never selected.
The difference between total elapsed time T and the sum of processing times on a machine.
Exam answers
Tasks A, B, C are to be assigned to 4 workers M1, M2, M3, M4 with hour matrix A=[7,2,6,3], B=[3,7,5,4], C=[5,4,3,7]. Find the optimal assignment and minimum total man-hours.
- Step 1: Add a dummy task D with 0 hours for every worker to form a 4x4 square matrix.
- Step 2: Subtract each row's minimum (2 for A, 3 for B, 3 for C, 0 for D) from its row.
- Step 3: Check column minimums; every column already contains a 0, so no column subtraction is needed.
- Step 4: Assign unique zeros in rows A, B, C, and D to get the optimal allocation.
- Step 5: Sum the hours from the original matrix (excluding dummy task D).
Step marks show only when linked to an official marking scheme.
Common mistake: Forgetting to add the dummy row/column before doing row and column reductions.
Five jobs I-V require times on Machine A [3, 3, 7, 5, 2] and Machine B [6, 4, 2, 1, 5] in order AB. Find the optimal sequence, total elapsed time, and idle times.
- Step 1: Apply Johnson's rule repeatedly on min{A_i, B_i} from outside inward.
- Step 2: Build the In-Out schedule on A and B for sequence V-I-II-III-IV.
- Step 3: Read total elapsed time T from the completion of job IV on Machine B.
- Step 4: Calculate idle time for Machine A and Machine B.
Step marks show only when linked to an official marking scheme.
Common mistake: Starting job IV on Machine B at 19 instead of waiting until it finishes on Machine A at 20.
Board PYQs (2024–2026)
21 questions asked across 6 official board papers
Assign 3 jobs to 4 machines for maximum profit (3x4 unbalanced maximization problem).
Find optimal sequence minimizing total elapsed time and idle time for machine B (7 jobs, order AB).
True or False: sequencing n jobs on 2 machines assumes two jobs must be loaded at a time.
Fill in the blank: for solving an assignment problem the matrix should be a ___ matrix.
Solve 4x4 minimization assignment problem (men A-D, tasks I-IV) by Hungarian method.
Activity: sequence 7 jobs on machines A, B, C and find total elapsed time and idle times.
True or False: to convert to minimization, smallest element is deducted from all elements.
Assign 4 machines M1-M4 to 5 places A-E (M2 not at C, M3 not at A) for optimal assignment.
Activity: sequence 7 jobs on machines A and B (order AB) and find idle times for both machines.
Find sequence minimizing total elapsed time for 4 books A-D through printing and data entry.
Find optimal sequence, total elapsed time, and idle time for machine B for 7 jobs in order AB.
Activity: solve 5x5 minimization assignment problem using the Hungarian method.
Identify the objective of an assignment problem (MCQ).
Assign 4 machines M1-M4 to 5 places A-E (M2 not at C, M3 not at A) for optimal assignment.
Find optimal sequence and total elapsed time for 5 jobs on lathe then surface grinder.
Find optimal sequence for 3 jobs on machines M1 and M2 in order M1-M2 (MCQ).
True or False: in an assignment problem, if columns > rows, a dummy column is added.
Sequence 5 toys through machines A, B, C in order ABC and find total elapsed time and idle time for B.
Assign 3 machines M1-M3 to 4 places A-D (M2 cannot be placed at B) for minimum cost.
Identify first step for a profit maximization assignment problem using Hungarian method (MCQ).
Fill in the blank: total time from starting first job to completing last job including idle time.