Draft (draft). Not yet checked against the textbook. Students cannot see this page until it is marked verified.

Mathematics & Statistics (Part II) · Chapter 7

Assignment Problem and Sequencing

4 topics15 concepts6 self-test QsAsked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Mar 2026 · Jun 2026

In one line: 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

Mind map

The whole chapter on one screen. Tap a branch to open it.

Tap any branch to jump to notes ↓

Open detailed mind map

Topics

1Assignment and Hungarian method4 concepts · 1 formula
Key concepts
Assignment model
Assign n resources to n tasks one-to-one (x_ij = 0 or 1) to minimize total cost.
Min Z=∑i=1n∑j=1ncijxij\text{Min } Z = \sum_{i=1}^n \sum_{j=1}^n c_{ij} x_{ij}
Row and column reduction
Subtract each row's minimum, then subtract each column's minimum from its entries.
Minimum lines covering zeros
Cover all zeros with the fewest horizontal and vertical lines; stop if lines = n.
Matrix modification step
If lines < n, subtract min uncovered k from uncovered cells and add k to intersections.
Exam takeaways
  • Adding or subtracting a constant from any full row or column does NOT change the optimal assignment.
  • Optimal zero-assignment exists when minimum covering lines equal matrix order n.
  • Elements on a single covering line stay unchanged; subtract k from uncovered and add k to intersections.
  • Assign rows or columns with a single zero first and cross out competing zeros in that row/column.
FORMULAS & RULES
∑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\}
one-to-one assignment constraints
e.g. 4 workers × 4 tasks ⇒ choose 4 cells (exactly 1 per row & col).

Memory hookRow min -> Col min -> Cover zeros -> If lines < n, shrink uncovered by k and fatten intersections by k.

Asked in: Mar 2025 · Mar 2026 · Jun 2026

2Special assignment cases4 concepts · 1 formula
Key concepts
Unbalanced problem
Rows != columns; add dummy row(s) or column(s) filled with zeros to make a square matrix.
Maximization problem
Convert profit/sales matrix to loss matrix by subtracting every entry from the max entry.
cij′=M−cijc'_{ij} = M - c_{ij}
Restricted assignment
Prohibited cells are given a huge penalty (infinity) so they are never chosen.
Alternative optimal solutions
Extra zeros allow distinct zero-assignments that give the exact same optimal total.
Exam takeaways
  • Always balance the matrix and convert maximization to minimization BEFORE row/column reductions.
  • Always compute the final cost or profit from the ORIGINAL matrix, never the zero-reduced matrix.
  • Multiplying all entries by −1 also converts maximization, though subtracting from max entry keeps values ≥ 0.
FORMULAS & RULES
cij′=max⁡r,s(crs)−cijc'_{ij} = \max_{r,s}(c_{rs}) - c_{ij}
maximization to minimization
e.g. Max entry 46 in profit matrix ⇒ cell 37 becomes 46 − 37 = 9.

Memory hookShort table? Pad with 0s. Maximization? Subtract from biggest number. Forbidden cell? Put infinity.

Asked in: Mar 2024 · Jul 2024 · Jul 2025 · Mar 2026 · Jun 2026

3Sequencing n jobs on 2 machines4 concepts · 2 formulas
Key concepts
Sequencing assumptions
One job per machine at a time, no interruption, fixed order A -> B, zero transfer time.
Total elapsed time (T)
Total time from start of first job on machine A to finish of last job on machine B.
Johnson's rule (2 machines)
Pick smallest time; if on A place job first, if on B place job last.
Machine idle time
Difference between total elapsed time T and sum of processing times on that machine.
IdleA=T−∑Ai,IdleB=T−∑Bi\text{Idle}_A = T - \sum A_i, \quad \text{Idle}_B = T - \sum B_i
Exam takeaways
  • Johnson's rule fills the sequence from both ends inward: min on A goes front, min on B goes back.
  • If a tie occurs between A_i and B_j, place A_i at the front and B_j at the back.
  • If a tie occurs on the same machine, pick the job with smaller time on the other machine.
  • Machine B starts job k only after both job k finishes on A and job (k − 1) finishes on B.
FORMULAS & RULES
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.

Memory hookA stands for Ahead (front of queue); B stands for Back (end of queue).

Asked in: Mar 2024 · Jul 2024 · Mar 2025 · Jul 2025 · Jun 2026

4Sequencing n jobs on 3 machines3 concepts · 2 formulas
Key concepts
Reduction condition
At least one extreme machine's minimum must be >= the middle machine's maximum.
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)
Fictitious machines G and H
Combine times into two dummy machines G_i = A_i + B_i and H_i = B_i + C_i.
Gi=Ai+Bi,Hi=Bi+CiG_i = A_i + B_i, \quad H_i = B_i + C_i
Elapsed and idle time table
After finding the sequence from G and H, build the In-Out table on original A, B, C.
Exam takeaways
  • Check min(A) ≥ max(B) or min(C) ≥ max(B) first; if neither holds, this reduction method fails.
  • Use G and H ONLY to find the optimal sequence; never use G and H to compute elapsed time T.
  • On the original 3-machine table, total elapsed time T equals Out_C of the very last job.
FORMULAS & RULES
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.

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

Asked in: Mar 2024 · Mar 2026

Key terms & definitions

Tap any card to test yourself before peeking.

Quick comparisons (VS.)

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.

Quick check (Board Q.1 practice)

0 / 6 answered
Q1 · Choose one

In the Hungarian method, an optimal assignment is reached when the minimum number of lines covering all zeros equals:

Q2 · Choose one

Which condition allows reducing a 3-machine (A → B → C) sequencing problem to a 2-machine problem?

Q3 · True or False

In an unbalanced assignment problem where columns exceed rows, we add a dummy column of zeros.

Q4 · True or False

In Johnson's rule for 2 machines A → B, if the minimum time appears on Machine B, that job is scheduled at the end.

Q5 · One word / term

Value assigned to prohibited cells in a restricted assignment problem so they are never selected.

Q6 · One word / term

The difference between total elapsed time T and the sum of processing times on a machine.

Exam answers

Numerical

Tasks A, B, C are to be assigned to 4 workers M1, M2, M3, M4 with hour matrix A=[7,2,6,3], B=[3,7,5,4], C=[5,4,3,7]. Find the optimal assignment and minimum total man-hours.

  1. Step 1: Add a dummy task D with 0 hours for every worker to form a 4x4 square matrix.
    D=[0, 0, 0, 0]D = [0,\ 0,\ 0,\ 0]
  2. Step 2: Subtract each row's minimum (2 for A, 3 for B, 3 for C, 0 for D) from its row.
    A:[5,0,4,1], B:[0,4,2,1], C:[2,1,0,4], D:[0,0,0,0]A:[5,0,4,1],\ B:[0,4,2,1],\ C:[2,1,0,4],\ D:[0,0,0,0]
  3. Step 3: Check column minimums; every column already contains a 0, so no column subtraction is needed.
  4. Step 4: Assign unique zeros in rows A, B, C, and D to get the optimal allocation.
    A→M2 (2),B→M1 (3),C→M3 (3),D→M4 (0)A \to M_2\ (2),\quad B \to M_1\ (3),\quad C \to M_3\ (3),\quad D \to M_4\ (0)
  5. Step 5: Sum the hours from the original matrix (excluding dummy task D).
    Minimum Total Time=2+3+3=8 man-hours\text{Minimum Total Time} = 2 + 3 + 3 = 8\ \text{man-hours}

Step marks show only when linked to an official marking scheme.

Common mistake: Forgetting to add the dummy row/column before doing row and column reductions.

Numerical

Five jobs I-V require times on Machine A [3, 3, 7, 5, 2] and Machine B [6, 4, 2, 1, 5] in order AB. Find the optimal sequence, total elapsed time, and idle times.

  1. Step 1: Apply Johnson's rule repeatedly on min{A_i, B_i} from outside inward.
    B4=1 (last), A5=2 (first), B3=2 (before IV), A1=A2=3  ⟹  V-I-II-III-IVB_4=1 \text{ (last)},\ A_5=2 \text{ (first)},\ B_3=2 \text{ (before IV)},\ A_1=A_2=3 \implies \text{V-I-II-III-IV}
  2. Step 2: Build the In-Out schedule on A and B for sequence V-I-II-III-IV.
    V:(0-2, 2-7), I:(2-5, 7-13), II:(5-8, 13-17), III:(8-15, 17-19), IV:(15-20, 20-21)V:(0\text{-}2,\ 2\text{-}7),\ I:(2\text{-}5,\ 7\text{-}13),\ II:(5\text{-}8,\ 13\text{-}17),\ III:(8\text{-}15,\ 17\text{-}19),\ IV:(15\text{-}20,\ 20\text{-}21)
  3. Step 3: Read total elapsed time T from the completion of job IV on Machine B.
    T=21 hoursT = 21\ \text{hours}
  4. Step 4: Calculate idle time for Machine A and Machine B.
    IdleA=21−20=1 hr,IdleB=21−18=3 hrs\text{Idle}_A = 21 - 20 = 1\ \text{hr}, \quad \text{Idle}_B = 21 - 18 = 3\ \text{hrs}

Step marks show only when linked to an official marking scheme.

Common mistake: Starting job IV on Machine B at 19 instead of waiting until it finishes on Machine A at 20.

Board PYQs (2024–2026)

21 questions asked across 6 official board papers

  • Jun 2026Q.5 (B) (ii)4 marksAssignment variants

    Assign 3 jobs to 4 machines for maximum profit (3x4 unbalanced maximization problem).

  • Jun 2026Q.5 (A) (ii)3 marks2-machine sequencing

    Find optimal sequence minimizing total elapsed time and idle time for machine B (7 jobs, order AB).

  • Jun 2026Q.4 (B) (ii)1 mark2-machine sequencing

    True or False: sequencing n jobs on 2 machines assumes two jobs must be loaded at a time.

  • Jun 2026Q.4 (C) (iii)1 markHungarian method

    Fill in the blank: for solving an assignment problem the matrix should be a ___ matrix.

  • Mar 2026Q.5 (B) (ii)4 marksHungarian method

    Solve 4x4 minimization assignment problem (men A-D, tasks I-IV) by Hungarian method.

  • Mar 2026Q.6 (C) (i)4 marks3-machine sequencing

    Activity: sequence 7 jobs on machines A, B, C and find total elapsed time and idle times.

  • Mar 2026Q.4 (B) (iii)1 markAssignment variants

    True or False: to convert to minimization, smallest element is deducted from all elements.

  • Jul 2025Q.5 (B) (iii)4 marksAssignment variants

    Assign 4 machines M1-M4 to 5 places A-E (M2 not at C, M3 not at A) for optimal assignment.

  • Jul 2025Q.6 (C) (i)4 marks2-machine sequencing

    Activity: sequence 7 jobs on machines A and B (order AB) and find idle times for both machines.

  • Jul 2025Q.4 (C) (ii)1 mark2-machine sequencing

    Find sequence minimizing total elapsed time for 4 books A-D through printing and data entry.

  • Mar 2025Q.5 (B) (ii)4 marks2-machine sequencing

    Find optimal sequence, total elapsed time, and idle time for machine B for 7 jobs in order AB.

  • Mar 2025Q.6 (C) (ii)4 marksHungarian method

    Activity: solve 5x5 minimization assignment problem using the Hungarian method.

  • Mar 2025Q.4 (A) (v)1 markHungarian method

    Identify the objective of an assignment problem (MCQ).

  • Jul 2024Q.6 (B) (i)4 marksAssignment variants

    Assign 4 machines M1-M4 to 5 places A-E (M2 not at C, M3 not at A) for optimal assignment.

  • Jul 2024Q.5 (A) (iii)3 marks2-machine sequencing

    Find optimal sequence and total elapsed time for 5 jobs on lathe then surface grinder.

  • Jul 2024Q.4 (A) (iv)1 mark2-machine sequencing

    Find optimal sequence for 3 jobs on machines M1 and M2 in order M1-M2 (MCQ).

  • Jul 2024Q.4 (B) (iii)1 markAssignment variants

    True or False: in an assignment problem, if columns > rows, a dummy column is added.

  • Mar 2024Q.5 (B) (ii)4 marks3-machine sequencing

    Sequence 5 toys through machines A, B, C in order ABC and find total elapsed time and idle time for B.

  • Mar 2024Q.6 (A) (ii)3 marksAssignment variants

    Assign 3 machines M1-M3 to 4 places A-D (M2 cannot be placed at B) for minimum cost.

  • Mar 2024Q.4 (A) (vi)1 markAssignment variants

    Identify first step for a profit maximization assignment problem using Hungarian method (MCQ).

  • Mar 2024Q.4 (C) (iii)1 mark2-machine sequencing

    Fill in the blank: total time from starting first job to completing last job including idle time.

Open last-day bento cheat sheetSpotted a mistake or want to suggest an improvement?Telegram feedback ↗