Mathster Maths topics Free worksheets Coverage Mathster for schools

Maths topics › A level Further Maths › D2 and allocation

Adapt the Hungarian algorithm when some allocations are not possible

A level Further Maths · D2 and allocation

A question

The table shows the profit, in pounds, each worker makes on each job. A cross shows that the worker cannot do that job. The total profit is to be maximised.

Job 1Job 2Job 3Job 4
Worker Uma8645✗41
Worker Sam80597052
Worker Lou39623337
Worker Nia✗638490

First change the table for a maximum, and deal with the crosses. Then, reducing rows first, use the Hungarian algorithm to find an allocation that maximises the total profit. Show the table at each stage, then state the allocation and its profit.

Free worksheet

10 questions on this objective, ready to print.

Download the worksheet (PDF)

We use this address to send you the answers, and for news only if you tick the box.

Worked solution

The working

  1. (a) To maximise, subtract every entry from the largest entry; then replace each cross with a very large number so that it is never chosen.
  2. (b) The Hungarian algorithm on the changed table gives Uma – Job 1, Sam – Job 3, Lou – Job 2, Nia – Job 4, with a profit of \(308\) pounds.
  3. (c) Job 3.

Mathster is maths homework, practice and assessment for schools, with animated worked solutions. Try Mathster free for 60 days →

Objectives from the AS and A level subject content for further mathematics (Department for Education). Contains public sector information licensed under the Open Government Licence v3.0.