Pearson Edexcel · A-Level · Mathematics

    Course version: 603/1499/0 · Version from Sept 2017

    Decision Mathematics 2

    Full specification wording

    Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.1 Use of the Hungarian algorithm to find a least cost allocation.

    The Hungarian algorithm finds a least cost allocation for a square cost matrix.

    • Point 2 of 4

    Study notes

    From the teaching notes for this specification point.

    The idea

    The Hungarian algorithm finds a least cost allocation for a square cost matrix. Reduce rows, then columns, so every row and column holds a zero. Try to assign one zero per row and column; if the number of independent zeros equals the matrix size, the allocation is optimal. If not, cover all zeros with the minimum number of straight lines. Subtract the smallest uncovered entry from every uncovered entry, add it to entries at line intersections, and leave singly covered entries unchanged. Repeat covering and adjustment until an allocation using only zeros is possible, then read the allocation back and total the original costs.

    What earns the marks

    • Reduces rows then columns to obtain zeros before attempting any allocation.
    • Covers all zeros with the minimum number of straight lines when a complete zero allocation is not yet possible.
    • Subtracts the smallest uncovered entry from uncovered entries and adds it at line intersections while leaving singly covered entries unchanged.
    • Reads the final zero allocation back to the original matrix and totals the original costs to give the least cost.

    Common mistakes and how to put them right

    • Stops once zeros appear without checking that a full one-per-row-and-column assignment exists.

      Put it right: Test for a complete zero allocation first.

    • Adds the smallest uncovered value at intersections as well as subtracting it from uncovered cells.

      Put it right: Subtract from uncovered cells and add only at intersections.

    • Totals the reduced matrix entries instead of the original costs.

      Put it right: Read the allocation back and sum the original values.

    • Uses more covering lines than necessary.

      Put it right: Find the minimum number of lines that cover every zero.

    Exam tips

    • State the minimum number of covering lines at each stage to justify why further adjustment is needed.
    • Record each adjustment step so the examiner can follow the sequence of reductions.
    • Finish by writing the allocation as pairs of items and giving the total least cost from the original matrix.

    Try the lesson

    The start of the Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.1 Use of the Hungarian algorithm to find a least cost allocation. lesson, made from teaching notes for this specification point.

    Have a go first

    A cost matrix row contains the values 8, 3, 5 and 3. Applying the row reduction step of the Hungarian algorithm to this row gives which set of values?

    There is more to this lesson

    The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.

    Carry on with the full lesson

    5 free practice questions every day · Free forever · No card required

    Test your understanding of Allocation (assignment) problems - Paper 4D: Decision Mathematics 2: 2.1 Use of the Hungarian algorithm to find a least cost allocation.

    Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.

    Take topic quiz

    5 free practice questions every day · Free forever · No card required