← 2021 Paper 2

UPSC 2021 Maths Optional Paper 2 Q1e — Step-by-Step Solution

10 marks · Section A

Assignment problem (Hungarian method) · Linear Programming · asked 6× in 13 yrs · Read the full method →

Question

Assign 5 jobs (A-E) to 5 employees (I-V) to minimise total processing time:

IIIIIIIVV
A105131516
B3918136
C107222
D7119712
E7910412

Technique

Standard Hungarian method: row/col reduction, line covering, iterative reduction until 5-line cover exists.

Solution

Hungarian method.

Step 1 — Row reduction (subtract row min)

Row mins: A:5, B:3, C:2, D:7, E:4.

M1=(50810110615103850000420535608).M_1=\begin{pmatrix}5 & 0 & 8 & 10 & 11\\ 0 & 6 & 15 & 10 & 3\\ 8 & 5 & 0 & 0 & 0\\ 0 & 4 & 2 & 0 & 5\\ 3 & 5 & 6 & 0 & 8\end{pmatrix}.

Step 2 — Column reduction (subtract col min)

Col mins: I:0, II:0, III:0, IV:0, V:0. (Each column already has a 0.)

So M2=M1M_2=M_1.

Step 3 — Find assignment with one zero per row/col

Zeros:

Try matching greedy on unique zeros first:

Conflict. Need another iteration.

Cover all zeros with lines.

Try lines: col II (covers A), col I (covers B,D), col IV (covers E,D), row C (covers all C zeros).

Lines: {col I, col II, col IV, row C} = 4 lines. Cover all zeros? Let’s check uncovered:

All zeros covered with 4 lines. Since 4 < 5, not yet optimal.

Step 4 — Reduce uncovered

Uncovered rows: A, B, D, E. Uncovered cols: III, V.

Uncovered entries:

Min uncovered = 2 (at (D,III)).

Subtract 2 from uncovered entries; add 2 to doubly-covered (intersections of two covering lines: row C ∩ each of cols I, II, IV — that’s (C,I), (C,II), (C,IV)).

M3=(50610906131011070200400335406).M_3=\begin{pmatrix}5 & 0 & 6 & 10 & 9\\ 0 & 6 & 13 & 10 & 1\\ 10 & 7 & 0 & 2 & 0\\ 0 & 4 & 0 & 0 & 3\\ 3 & 5 & 4 & 0 & 6\end{pmatrix}.

Step 5 — Re-try assignment

Zeros:

Greedy:

If D→III: C→V. Check all assigned: A→II, B→I, C→V, D→III, E→IV. ✓

Step 6 — Compute total cost

From original matrix:

Total = 5+3+2+9+4=235+3+2+9+4=23.

Answer

  Assignment: A→II, B→I, C→V, D→III, E→IV; total time =23 hours.  \boxed{\;\text{Assignment: A→II, B→I, C→V, D→III, E→IV; total time }=23\text{ hours.}\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.