HSC Class 12 Commerce · Mathematics & Statistics (Part II) · Chapter 7Last-day bento sheet

Assignment Problem and Sequencing

Big idea: How the Hungarian method matches n tasks 1-to-1 at minimum cost, and Johnson's rule orders jobs on machines.

Big picture flow

  1. 01Balance & Convert Max → Min
  2. 02Row & Column Min Subtraction
  3. 03Cover Zeros (Stop if Lines = n)
  4. 04Johnson's Rule (A Front, B Back)
  5. 05Build In-Out Table for T & Idle
x_ij ∈ {0, 1}
Each worker gets 1 job and each job gets 1 worker
Lines = n
Condition confirming an optimal zero-assignment exists
min(A) ≥ max(B)
Or min(C) ≥ max(B) to reduce 3 machines to 2
Idle_M = T − Σt_M
Machine idle time equals elapsed time minus work sum

1Assignment and Hungarian method

∑j=1nxij=1,∑i=1nxij=1,xij∈{0,1}\sum_{j=1}^n x_{ij} = 1, \quad \sum_{i=1}^n x_{ij} = 1, \quad x_{ij} \in \{0, 1\}
e.g. 4 workers × 4 tasks ⇒ choose 4 cells (exactly 1 per row & col).

Hungarian = Row subtract, Col subtract, Min lines to cover zeros; stop when ==lines = n==.

Trick: Row min -> Col min -> Cover zeros -> If lines < n, shrink uncovered by k and fatten intersections by k.

2Special assignment cases

cij′=max⁡r,s(crs)−cijc'_{ij} = \max_{r,s}(c_{rs}) - c_{ij}
e.g. Max entry 46 in profit matrix ⇒ cell 37 becomes 46 − 37 = 9.

Balance with 0s, convert max via (max − entry), block forbidden with ∞, sum from original table.

Trick: Short table? Pad with 0s. Maximization? Subtract from biggest number. Forbidden cell? Put infinity.

3Sequencing n jobs on 2 machines

InB(job k)=max⁡(OutA(job k), OutB(job k−1))\text{In}_B(\text{job } k) = \max\left(\text{Out}_A(\text{job } k),\ \text{Out}_B(\text{job } k-1)\right)
e.g. Job IV finishes A at 20 while B finished III at 19 ⇒ In_B = 20.
IdleM=T−∑tM,i\text{Idle}_M = T - \sum t_{M,i}
e.g. T = 21 hrs, ΣA_i = 20 hrs ⇒ Idle_A = 21 − 20 = 1 hr.

Min on A goes front, min on B goes back; In_B = max(Out_A, prev Out_B).

Trick: A stands for Ahead (front of queue); B stands for Back (end of queue).

4Sequencing n jobs on 3 machines

min⁡(Ai)≥max⁡(Bi)ormin⁡(Ci)≥max⁡(Bi)\min(A_i) \ge \max(B_i) \quad \text{or} \quad \min(C_i) \ge \max(B_i)
e.g. min(A) = 3, min(C) = 5, max(B) = 5 ⇒ min(C) ≥ max(B) holds.
Gi=Ai+Bi,Hi=Bi+CiG_i = A_i + B_i, \quad H_i = B_i + C_i
e.g. Job with A = 3, B = 4, C = 6 ⇒ G = 7, H = 10.

Check min(A)≥max(B) or min(C)≥max(B); sequence on ==G=A+B, H=B+C==; time on A, B, C.

Trick: Middle machine B must be no slower than the fastest end machine (min A or min C >= max B); merge A+B and B+C.

Key terms glossary

Hungarian Method:
Optimization algorithm using row/column reduction and minimum zero-covering lines to solve assignments.
Unbalanced Assignment:
Matrix where rows ≠ columns, balanced by adding dummy row(s) or column(s) with zero costs.
Restricted Assignment:
Assignment problem where prohibited cells are assigned infinity (∞) so they are never selected.
Total Elapsed Time (T):
Total duration from the start of the first job on Machine A to finish of the last job on last machine.
Idle Time:
Duration for which a machine remains free and waiting while no job is running on it.
Johnson's Rule:
Rule placing smallest time on Machine A at the front and smallest time on Machine B at the back.

Assignment vs Sequencing Problem

VS
Core Decision
Assignment Problem:Who gets which job (1-to-1 matching).
Sequencing Problem:In what order n jobs run on machines.
Solution Method
Assignment Problem:Hungarian Method (row/col zero reduction).
Sequencing Problem:Johnson's Rule + In-Out time table.
Main Objective
Assignment Problem:Minimize total cost/time (or max profit).
Sequencing Problem:Minimize total elapsed time T & idle time.
Special Trick
Assignment Problem:Add dummy 0 row/col if rows ≠ columns.
Sequencing Problem:Merge 3 machines via ==G = A+B, H = B+C==.

2-Machine vs 3-Machine Sequencing

VS
Reduction Check
2 Machines (A → B):Always solvable directly for order A → B.
3 Machines (A → B → C):Needs min(A) ≥ max(B) or min(C) ≥ max(B).
Sequence Step
2 Machines (A → B):Apply Johnson's rule on min{A_i, B_i}.
3 Machines (A → B → C):Apply Johnson's rule on ==G = A+B, H = B+C==.
Elapsed Time Table
2 Machines (A → B):Built directly on Machines A and B.
3 Machines (A → B → C):Must use original A, B, C (never G, H).
Failure Condition
2 Machines (A → B):Never fails under standard assumptions.
3 Machines (A → B → C):Method fails if neither condition holds.