Skip to content
Worked Examples · Example 6
Q.

A company must assign three workers W1,W2,W3W_1, W_2, W_3 to three jobs J1,J2,J3J_1, J_2, J_3 at minimum total cost. The cost (in ₹) of each worker doing each job is given below. Use the Hungarian Method to find the optimal assignment and the minimum total cost.

J1J_1J2J_2J3J_3
W1W_111178
W2W_29712
W3W_313169
Puducherry TnboardTextbookSubjectiveImportance★★★★★
32% · 12/38 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

Step 1 — Row reduction (subtract row minimums 8,7,98,7,9):

J1J_1J2J_2J3J_3
W1W_1390
W2W_2205
W3W_3470

Step 2 — Column reduction (subtract column minimums 2,0,02,0,0):

J1J_1J2J_2J3J_3
W1W_1190
W2W_2005
W3W_3270

Step 3/4 — Cover zeros and test: row W2W_2 covers (W2J1,W2J2)(W_2J_1,W_2J_2); column J3J_3 covers (W1J3,W3J3)(W_1J_3,W_3J_3) — all zeros covered with 2 lines, which is less than n=3n=3, so the solution is not yet optimal.

Step 5 — Adjust: smallest uncovered entry is W1J1=1W_1J_1=1. Subtract 1 from every uncovered cell and add 1 to the intersection cell W2J3W_2J_3:

J1J_1J2J_2J3J_3
W1W_1080
W2W_2006
W3W_3160

Step 3/4 (repeat): column J1J_1, column J3J_3, and row W2W_2 together cover all five zeros using 3 lines =n=n → optimal.

Step 6 — Assignment: W3W_3's only zero is at J3J_3 → assign W3→J3W_3\to J_3; remaining 2×22\times2 block gives W1W_1's only zero at J1J_1 → assign W1→J1W_1\to J_1; this leaves W2→J2W_2\to J_2. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.