UPSC 2024 Maths Optional Paper 2 Q4c — Step-by-Step Solution
20 marks · Section A
Question
The personnel manager wants to assign officers A, B, C to offices Delhi, Mumbai, Kolkata, Chennai. Relocation costs (Rs. thousand):
| Delhi | Mumbai | Kolkata | Chennai | |
|---|---|---|---|---|
| A | 16 | 22 | 24 | 20 |
| B | 10 | 32 | 26 | 16 |
| C | 10 | 20 | 46 | 30 |
Find the assignment minimising total cost.
Technique
Add a dummy officer D (all zeros) to balance the matrix; apply the Hungarian algorithm.
Solution
Balanced matrix (add dummy row D with costs 0):
Row reduction (subtract each row minimum)
| Delhi | Mumbai | Kolkata | Chennai | |
|---|---|---|---|---|
| A | 0 | 6 | 8 | 4 |
| B | 0 | 22 | 16 | 6 |
| C | 0 | 10 | 36 | 20 |
| D | 0 | 0 | 0 | 0 |
Column minimums are all 0 — no column reduction needed.
Iteration 1
Cover zeros with 2 lines (column 1, row D). Smallest uncovered = 4 (A,Chennai). Subtract 4 from uncovered; add 4 to doubly-covered (D,Delhi).
Iteration 2
3 lines cover all zeros (column 1, column 4, row D). Smallest uncovered = 2 (A,Mumbai). Subtract 2; add to doubly-covered cells.
Iteration 3
3 lines still needed. Smallest uncovered = 2 (B,Chennai). After update:
| Delhi | Mumbai | Kolkata | Chennai | |
|---|---|---|---|---|
| A | 2 | 0 | 2 | 0 |
| B | 0 | 14 | 8 | 0 |
| C | 0 | 2 | 28 | 14 |
| D | 8 | 0 | 0 | 2 |
Now 4 lines cover all zeros (row A, row D, column 1, column 4) — optimality reached.
Assignment
- Row C: only zero at C,Delhi → C → Delhi.
- Row B: B,Delhi is taken; only zero at B,Chennai → B → Chennai.
- Row A: A,Chennai is taken; zero at A,Mumbai → A → Mumbai.
- Row D → Kolkata (dummy; Kolkata goes unstaffed).