← 2024 Paper 2

UPSC 2024 Maths Optional Paper 2 Q4c — Step-by-Step Solution

20 marks · Section A

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

Question

The personnel manager wants to assign officers A, B, C to offices Delhi, Mumbai, Kolkata, Chennai. Relocation costs (Rs. thousand):

DelhiMumbaiKolkataChennai
A16222420
B10322616
C10204630

Find the assignment minimising total cost.

Technique

Add a dummy officer D (all zeros) to balance the 3×43\times4 matrix; apply the Hungarian algorithm.

Solution

Balanced matrix (add dummy row D with costs 0):

Row reduction (subtract each row minimum)

DelhiMumbaiKolkataChennai
A0684
B022166
C0103620
D0000

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:

DelhiMumbaiKolkataChennai
A2020
B01480
C022814
D8002

Now 4 lines cover all zeros (row A, row D, column 1, column 4) — optimality reached.

Assignment

Cost

22 (A,Mumbai)+16 (B,Chennai)+10 (C,Delhi)=48 thousand rupees.22\text{ (A,Mumbai)}+16\text{ (B,Chennai)}+10\text{ (C,Delhi)}=48\text{ thousand rupees}.

Answer

  AMumbai,  BChennai,  CDelhi;  Kolkata unstaffed;  minimum cost=Rs. 48,000.  \boxed{\;A\to\text{Mumbai},\;B\to\text{Chennai},\;C\to\text{Delhi};\;\text{Kolkata unstaffed};\;\text{minimum cost}=\text{Rs.~}48{,}000.\;}
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.