Skip to content

Edexcel A-level Further Maths revision notes

Allocation (assignment) problems

Section 2
Years 1 and 2
Years 1 and 2: this holds AS subject content and content the exam board adds beyond it for the full A-level.
2 specification points

Notes and three levels of exam-style practice for each registered specification point in this section.

Checked against Edexcel 9FM0 section 2

Checked against Edexcel 9FM0 section 2. Review basis: the qualification registry sourced from the Pearson Edexcel Level 3 Advanced GCE in Further Mathematics (9FM0) specification; registry verification recorded 17 July 2026.

How this checking works

In the exam: Formulae booklet provided · calculator allowed in every paper

Year 1
Year 1: this is the AS subject content the exam board publishes, which is what most schools teach in Year 12.

Cost matrix reduction. Use of the Hungarian algorithm to find a least cost allocation. Modification of the Hungarian algorithm to deal with a maximum profit allocation.

Notes
Evidence from your answers: none yet
Your confidence:

A self-report of how sure you feel. It does not measure mastery. Evidence from your answers reaches secure after the latest Tier 2/3 attempt is correct, with three correct distinct drills across at least two dates and two practice sources.

Explanation

  • An allocation problem matches nn workers to nn tasks, one each, at least total cost. The Hungarian algorithm works because subtracting a constant from a whole row, or from a whole column, changes every complete allocation by the same amount and therefore cannot change which allocation is cheapest.
  • The specification says "Students should reduce rows first": subtract each row's minimum, then reduce columns the same way, leaving at least one zero in every row and column. Now find the minimum number of horizontal and vertical lines needed to cover all the zeros. If that number equals nn, a complete allocation of zeros exists and it is optimal;
  • read it off, starting from any row or column with only one zero. If the number is less than nn, let ee be the smallest uncovered entry, subtract ee from every uncovered entry, add ee to every entry covered twice, leave the singly covered entries alone, and test the lines again.
  • For a maximum profit problem, subtract every entry of the original matrix from the largest entry of that matrix and then run the algorithm unchanged; the profit of the allocation is read from the original matrix.
  • Unequal numbers of workers and tasks are balanced with a dummy row or column of zeros, and a pairing that is not allowed is blocked by an entry so large that the algorithm never selects it.
Worked example

Three engineers AA, BB, CC must each take one of the jobs XX, YY, ZZ. The costs are AA: 30,20,2130, 20, 21; BB: 10,26,2810, 26, 28; CC: 14,29,1614, 29, 16. Find the least cost allocation.

  1. 1.Row reduction subtracts 2020, 1010 and 1414, giving rows (10,0,1)(10,0,1), (0,16,18)(0,16,18) and (0,15,2)(0,15,2).
  2. 2.Column reduction subtracts 00, 00 and 11, giving rows (10,0,0)(10,0,0), (0,16,17)(0,16,17) and (0,15,1)(0,15,1).
  3. 3.The zeros are covered by row AA and column XX, only 22 lines, so the algorithm continues.
  4. 4.The smallest uncovered entry is e=1e=1 at CZCZ; subtracting it from the uncovered entries and adding it to AXAX, which is covered twice, gives rows (11,0,0)(11,0,0), (0,15,16)(0,15,16) and (0,14,0)(0,14,0).
  5. 5.Three lines are now needed, and the only complete allocation of zeros is AYAY, BXBX, CZCZ.

Answer: A→YA\to Y, B→XB\to X, C→ZC\to Z, read from the original matrix at a cost of 20+10+16=4620+10+16=46.

Common mistakes

  • Don't fall into the trap of ignoring the order the question sets out; Edexcel questions normally require each row reduced by its smallest entry first, and marks follow that order even though column-first reaches the same optimum.
  • Don't fall into the trap of adding ee to the singly covered entries as well as the doubly covered ones.
  • Don't fall into the trap of reading the final cost from the reduced matrix instead of the original one.
  • Don't fall into the trap of converting a profit problem by subtracting the largest value of each row from that row, rather than subtracting every entry from the largest value in the whole matrix.

Exam tip

Write the lines you used on the diagram; a mark is available for showing that the minimum number of covering lines is fewer than nn, and a bald "not optimal" earns nothing.

Tier 1 · Easy

ORIGINAL

1.

The cost of assigning workers AA, BB, CC to tasks XX, YY, ZZ is given by AA: 20,25,2220, 25, 22; BB: 15,18,2315, 18, 23; CC: 19,17,2119, 17, 21. Carry out row reduction followed by column reduction, and state the least cost allocation.

(5)

(Total for Question 1 is 5 marks)

Tier 2 · Standard

ORIGINAL

1.

Apply the Hungarian algorithm to the cost matrix with rows AA: 14,10,1214, 10, 12; BB: 9,15,119, 15, 11; CC: 13,8,1613, 8, 16 for tasks XX, YY, ZZ, and state the minimum cost and the allocation.

(5)

(Total for Question 1 is 5 marks)

Tier 3 · Hard

ORIGINAL

1.

Apply the Hungarian algorithm to the cost matrix with rows AA: 18,10,1718, 10, 17; BB: 18,8,2118, 8, 21; CC: 11,12,1511, 12, 15 for tasks XX, YY, ZZ. Show the covering lines at each stage, state the value of ee used and give the least cost allocation.

(7)

(Total for Question 1 is 7 marks)

Your progress and exam materials

This section: Evidence from your answers: 0/2 secureYour confidence: 0 self-rated secureTracker status: 0/2 secure, 0 shaky, 2 unseen

Overall: Evidence from your answers: 0/158 secureYour confidence: 0 self-rated secureTracker status: 0/158 secure, 0 shaky, 158 unseen

Progress is saved on this device for guests and accounts right now; cross-device account sync is not live yet.

Year 2
Year 2: this is content the exam board adds beyond the AS subject content, for the full A-level.

Formulation of the Hungarian algorithm as a linear programming problem.

Notes
Evidence from your answers: none yet
Your confidence:

A self-report of how sure you feel. It does not measure mastery. Evidence from your answers reaches secure after the latest Tier 2/3 attempt is correct, with three correct distinct drills across at least two dates and two practice sources.

Explanation

  • An allocation problem is a linear program in n2n^2 variables. Let xij=1x_{ij}=1 if worker ii is given task jj and xij=0x_{ij}=0 otherwise.
  • The objective is to minimise ∑i∑jCijxij\sum_i\sum_j C_{ij}x_{ij}, the total cost of the pairs chosen. Each worker must be given exactly one task, so ∑jxij=1\sum_j x_{ij}=1 for every ii; each task must be given to exactly one worker, so ∑ixij=1\sum_i x_{ij}=1 for every jj.
  • Together with xij⩾0x_{ij}\geqslant0 that is 2n2n equality constraints on n2n^2 variables. Although the variables are described as 00 or 11, the integrality does not have to be imposed: the constraint matrix has the special structure that forces every vertex of the feasible region to have integer coordinates, so solving the linear program automatically returns a genuine allocation.
  • The formulation is also a transportation problem in which every supply and every demand is 11, which is why the same shadow-cost ideas underlie both.
  • For a maximum profit problem the objective is maximised instead, or minimised after replacing each entry by its distance below the largest entry.
Worked example

Two workers AA and BB must take one each of tasks XX and YY, at costs AX=5AX=5, AY=8AY=8, BX=7BX=7, BY=6BY=6. Formulate this as a linear program.

  1. 1.Let xij=1x_{ij}=1 if worker ii does task jj, and xij=0x_{ij}=0 otherwise, for i∈{A,B}i\in\{A,B\} and j∈{X,Y}j\in\{X,Y\}.
  2. 2.Minimise C=5xAX+8xAY+7xBX+6xBYC=5x_{AX}+8x_{AY}+7x_{BX}+6x_{BY}.
  3. 3.Worker constraints: xAX+xAY=1x_{AX}+x_{AY}=1 and xBX+xBY=1x_{BX}+x_{BY}=1.
  4. 4.Task constraints: xAX+xBX=1x_{AX}+x_{BX}=1 and xAY+xBY=1x_{AY}+x_{BY}=1.
  5. 5.Non-negativity: xij⩾0x_{ij}\geqslant0 for all ii and jj.

Answer: Minimise C=5xAX+8xAY+7xBX+6xBYC=5x_{AX}+8x_{AY}+7x_{BX}+6x_{BY} subject to those four equations and xij⩾0x_{ij}\geqslant0.

Common mistakes

  • Don't fall into the trap of writing the worker or task constraints with ⩽\leqslant, which allows a worker to be left idle in a square problem.
  • Don't fall into the trap of defining xijx_{ij} as a cost or a task rather than as an indicator of whether the pairing is used.
  • Don't fall into the trap of claiming that integer constraints must be added; they are implied by the structure of the constraints.

Exam tip

State the meaning of xij=1x_{ij}=1 and of xij=0x_{ij}=0 separately; a definition that names only one of the two values usually loses the formulation mark.

Tier 1 · Easy

ORIGINAL

1.

An allocation problem matches five workers to five tasks. State the number of decision variables and the number of equality constraints in its linear programming formulation, excluding the non-negativity conditions.

(3)

(Total for Question 1 is 3 marks)

Tier 2 · Standard

ORIGINAL

1.

Workers AA, BB, CC must take one each of tasks XX, YY, ZZ at costs AA: 14,10,1214, 10, 12; BB: 9,15,119, 15, 11; CC: 13,8,1613, 8, 16. Formulate the problem completely as a linear program, defining your variables carefully.

(6)

(Total for Question 1 is 6 marks)

Tier 3 · Hard

ORIGINAL

1.

Explain why the linear programming formulation of an allocation problem does not need explicit constraints of the form xij∈{0,1}x_{ij}\in\{0,1\}, and state what would be true instead if such constraints were needed.

(6)

(Total for Question 1 is 6 marks)

See everything due today — your streak and what to revise next, kept on this device.

Want help turning these notes into marks?

Bring a tricky specification point or a recent answer, and we can work through the method and exam wording together.