ORS255 · 2082 · 5 marks
Assignment Problem: Least Cost Allocation A publication employs typists on an hourly basis. There are five typists for service and their charges are different. According to earlier understanding, only one job is given to one typist. Find the least cost allocation for the following data.
Assignment Problem: Least Cost Allocation
A publication employs typists on an hourly basis. There are five typists for service and their charges are different. According to earlier understanding, only one job is given to one typist. Find the least cost allocation for the following data.
$$\begin{array}{|c|ccccc|}\hline \text{Typists/Jobs} & P & Q & R & S & T \ \hline A & 85 & 75 & 65 & 125 & 75 \ \hline B & 90 & 78 & 66 & 132 & 78 \ \hline C & 75 & 66 & 57 & 114 & 69 \ \hline D & 80 & 72 & 60 & 120 & 72 \ \hline E & 76 & 64 & 56 & 112 & 68 \ \hline \end{array}$$
[5]
Assignment Problem: Least Cost Allocation
Given Data
Cost matrix (typists A-E vs jobs P-T):
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 85 | 75 | 65 | 125 | 75 |
| B | 90 | 78 | 66 | 132 | 78 |
| C | 75 | 66 | 57 | 114 | 69 |
| D | 80 | 72 | 60 | 120 | 72 |
| E | 76 | 64 | 56 | 112 | 68 |
Objective: assign one job to each typist minimizing total cost (Hungarian method).
Step 1: Row Reduction
Row minimums: A=65, B=66, C=57, D=60, E=56.
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 20 | 10 | 0 | 60 | 10 |
| B | 24 | 12 | 0 | 66 | 12 |
| C | 18 | 9 | 0 | 57 | 12 |
| D | 20 | 12 | 0 | 60 | 12 |
| E | 20 | 8 | 0 | 56 | 12 |
Step 2: Column Reduction
Column minimums: P=18, Q=8, R=0, S=56, T=10.
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 2 | 2 | 0 | 4 | 0 |
| B | 6 | 4 | 0 | 10 | 2 |
| C | 0 | 1 | 0 | 1 | 2 |
| D | 2 | 4 | 0 | 4 | 2 |
| E | 2 | 0 | 0 | 0 | 2 |
Step 3: Cover Zeros with Minimum Lines
Zeros are at: A(R,T), B(R), C(P,R), D(R), E(Q,R,S).
Minimum lines to cover all zeros:
- Line 1: Column R (covers all R-zeros)
- Line 2: Row A (covers A-T)
- Line 3: Row E (covers E-Q, E-S)
- Line 4: Column P (covers C-P)
That is 4 lines < 5 (order n). Not optimal yet.
Step 4: Create Additional Zeros
Uncovered elements (not in row A, E; not in column P, R):
Uncovered cells: B(Q,S,T), C(Q,S,T), D(Q,S,T).
Values:
- B: Q=4, S=10, T=2
- C: Q=1, S=1, T=2
- D: Q=4, S=4, T=2
Minimum uncovered value = 1 (at C-Q or C-S).
Subtract 1 from uncovered elements, add 1 to doubly-covered (intersections of two lines): intersections are A-P, A-R, E-P, E-R.
Revised matrix:
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 3 | 2 | 1 | 4 | 0 |
| B | 6 | 3 | 0 | 9 | 1 |
| C | 0 | 0 | 0 | 0 | 1 |
| D | 2 | 3 | 0 | 3 | 1 |
| E | 3 | 0 | 1 | 0 | 2 |
Step 5: Check Optimality
Zeros: A(T), B(R), C(P,Q,R,S), D(R), E(Q,S).
Try covering: still need to check line count.
- Column R covers B, C, D, (A/E have no R-zero after change).
- Row C covers C(P,Q,S).
- Row E covers E(Q,S).
- Row A covers A-T.
Lines: Column R, Row C, Row E, Row A = 4 lines. Still < 5.
Uncovered cells (not row A,C,E; not column R): B(P,Q,S,T), D(P,Q,S,T).
Values:
- B: P=6, Q=3, S=9, T=1
- D: P=2, Q=3, S=3, T=1
Minimum uncovered = 1 (B-T, D-T). Subtract 1 from uncovered, add 1 to intersections (A-R, C-R, E-R).
Revised matrix:
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 3 | 2 | 2 | 4 | 0 |
| B | 5 | 2 | 0 | 8 | 0 |
| C | 0 | 0 | 1 | 0 | 1 |
| D | 1 | 2 | 0 | 2 | 0 |
| E | 3 | 0 | 2 | 0 | 2 |
Step 6: Assignment
Zeros: A(T), B(R,T), C(P,Q,S), D(R,T), E(Q,S).
Make assignments:
- A → T (only zero for A) → T taken.
- B → R (T gone) → R taken.
- D → R gone, D → T gone; D has no zero left. Backtrack.
Retry:
- B → T, A → ? A only zero is T (taken). Conflict.
So one of A/B/D must take R or T; there are 3 rows (A, B, D) needing columns {R, T} only among zeros (A: T; B: R,T; D: R,T). Three rows demand two columns → infeasible; need another zero.
Only 4 lines cover current zeros; count lines again:
- Row A (T), Row E (Q,S), Column R (B,D), Column S/Q via C...
Cover: Column T (A,B,D), Column R (B,D), Row C (P,Q,S), Row E (Q,S) = 4 lines. Still 4 < 5.
Uncovered: not row C,E; not column R,T → A(P,Q,S), B(P,Q,S), D(P,Q,S). Values: A: 3,2,4; B: 5,2,8; D: 1,2,2. Minimum = 1 (D-P).
Subtract 1 from uncovered, add 1 to intersections (C-R, C-T, E-R, E-T):
Revised matrix:
| Typists | P | Q | R | S | T |
|---|---|---|---|---|---|
| A | 2 | 1 | 2 | 3 | 0 |
| B | 4 | 1 | 0 | 7 | 0 |
| C | 0 | 0 | 2 | 0 | 2 |
| D | 0 | 1 | 0 | 1 | 0 |
| E | 3 | 0 | 3 | 0 | 3 |
Zeros: A(T), B(R,T), C(P,Q,S), D(P,R,T), E(Q,S).
Assignment:
- A → T
- B → R
- D → P
- E → Q
- C → S
All jobs distinct. Optimal.
Optimal Solution
| Assignment | Original Cost |
|---|---|
| A → T | 75 |
| B → R | 66 |
| C → S | 114 |
| D → P | 80 |
| E → Q | 64 |
Minimum Total Cost = 75 + 66 + 114 + 80 + 64 = 399
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.