Allocation

Edexcel

A2 June 2025 Q2

EdexcelCurrent spec9 marksAllocation

2. Five workers, A, B, C, D and E, are available to complete four tasks, P, Q, R and S.

Each worker can be assigned to at most one task, and each task must be done by at most one worker.

Worker B cannot be assigned to task R.

The time, in minutes, that each worker takes to complete each task is shown in the table below.

PQRS
A25324328
B4137–38
C43353739
D40333741
E37384340

The Hungarian algorithm is to be used to find an allocation that minimises the total time to complete all four tasks.

(a) Explain how the table should be modified so that the Hungarian algorithm can be applied. (2)
(b) Use the Hungarian algorithm to obtain an allocation that minimises the total time. (6)
(c) Calculate the least total time to complete all four tasks. (1)

AS June 2025 Q1

EdexcelCurrent spec9 marksAllocation

1. Five workers, A, B, C, D and E, are each to be assigned to one of five tasks, J, K, L, M and N. Each task must be assigned to exactly one worker and each worker must do exactly one task.

Worker C cannot do task L and worker D cannot do task K.

The profit, in pounds, that each worker will make while assigned to each task is shown in the table below.

JKLMN
A3833403532
B2624272523
C3329–3027
D36–413733
E3227312925

The Hungarian algorithm is to be used to find the maximum total profit that can be earned by the five workers.

(a) Explain how the contents of the table must be modified to allow the algorithm to be used. (2)
(b) Reducing rows first, use the Hungarian algorithm to obtain the maximum total profit. You should explain how any initial row and column reductions are made and also how you determine if the table is optimal at each stage. (7)

A2 June 2024 Q4

EdexcelCurrent spec9 marksAllocation

4. Four workers, A, B, C and D, are to be assigned to four tasks, P, Q, R and S.

Each task must be assigned to just one worker and each worker can do only one task.

Worker B cannot be assigned to task Q and worker D cannot be assigned to task R.

The amount, in pounds, that each worker would earn when assigned to each task is shown in the table below.

PQRS
A65726975
B71–6865
C70697377
D7370–71

The Hungarian algorithm can be used to find the maximum total amount that would be earned by the four workers.

(a)
(i) Explain how to modify the table so that the Hungarian algorithm could be applied.
(ii) Modify the table as described in (a)(i). (3)
(b) Formulate the above situation as a linear programming problem. You must define the decision variables and make the objective function and constraints clear. (6)

AS June 2024 Q2

EdexcelCurrent spec8 marksAllocation

2. A team of 5 players, A, B, C, D and E, competes in a quiz. Each player must answer one of 5 rounds, P, Q, R, S and T.

Each player must be assigned to exactly one round, and each round must be answered by exactly one player.

Player B cannot answer round Q, player D cannot answer round T, and player E cannot answer round R.

The number of points that each player is expected to earn in each round is shown in the table.

PQRST
A3240354137
B38–402733
C4128373635
D35333836–
E4038–3934

The team wants to maximise its total expected score.

The Hungarian algorithm is to be used to find the maximum total expected score that can be earned by the 5 players.

(a) Explain how the table should be modified. (2)
(b)
(i) Reducing rows first, use the Hungarian algorithm to obtain an allocation which maximises the total expected score.
(ii) Calculate the maximum total expected score. (6)

A2 June 2023 Q4

EdexcelCurrent spec8 marksAllocation

4. Four students, A, B, C and D, are to be allocated to four rounds, 1, 2, 3 and 4, in a competition. Each student is to take part in exactly one round and no two students may play in the same round.

Each student has been given an estimated score for each round. The estimated scores for each student are shown in the table below.

1234
A34201815
B49311234
C48272326
D52454242
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total estimated score. You must make your method clear and show the table after each stage. (7)
(b) Find this total estimated score. (1)

AS June 2023 Q1

EdexcelCurrent spec9 marksAllocation

1. Five workers, A, B, C, D and E, are available to complete four tasks, P, Q, R and S.

Each worker can only be assigned to at most one task, and each task must be done by at most one worker.

Worker B cannot be assigned to task Q and worker E cannot be assigned to task S.

The time, in minutes, that each worker takes to complete each task is shown in the table below.

PQRS
A38393737
B39–3940
C41444042
D40413938
E363941–

The Hungarian algorithm is to be used to find the least total time to complete all four tasks.

(a) Explain how the table should be modified so that the Hungarian algorithm can be applied. (2)
(b)
(i) Use the Hungarian algorithm to obtain an allocation that minimises the total time.
(ii) Explain how you determined if the table was optimal at each stage. (6)
(c) Calculate the least total time to complete all four tasks. (1)

A2 June 2022 Q1

EdexcelCurrent spec6 marksAllocation

1. Four workers, A, B, C and D, are to be assigned to four tasks, 1, 2, 3 and 4. Each task must be assigned to just one worker and each worker must do only one task.

The cost of assigning each worker to each task is shown in the table below.

The total cost is to be minimised.

1234
A32453448
B37395046
C46444042
D43454852
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that minimises the total cost. You must make your method clear and show the table after each stage. (5)
(b) State the minimum total cost. (1)

AS June 2022 Q1

EdexcelCurrent spec7 marksAllocation

1. Four workers, A, B, C and D, are each to be assigned to one of four tasks, P, Q, R and S.

Each worker must be assigned to one task, and each task must be done by exactly one worker.

Worker C cannot be assigned to task Q and worker D cannot be assigned to task S.

The time, in minutes, that each worker takes to complete each task is shown in the table below.

PQRS
A54485152
B55515358
C52–5354
D676368–

The Hungarian algorithm is to be used to find the minimum total time for the four workers to complete the tasks.

(a) Modify the table so that the Hungarian algorithm may be used. (1)
(b) Reducing rows first, use the Hungarian algorithm to obtain an allocation that minimises the total time. You should explain how any initial row and column reductions are made and also how you determine if the table is optimal at each stage. (6)

A2 October 2021 Q1

EdexcelCurrent spec6 marksAllocation

1. Four workers, A, B, C and D, are to be assigned to three tasks, 1, 2 and 3. Each task must be assigned to just one worker and each worker can do one task only.

Worker A cannot do task 2 and worker D cannot do task 3

The cost of assigning each worker to each task is shown in the table below.

The total cost is to be minimised.

123
A53–62
B485759
C556358
D6949–

Formulate the above situation as a linear programming problem. You must define your decision variables and make the objective function and constraints clear. (6)

AS October 2020 Q2

EdexcelCurrent spec9 marksAllocation

2. Four workers, A, B, C and D, are each to be assigned to one of four tasks, P, Q, R and S.

Each worker must be assigned to one task, and each task must be done by exactly one worker.

Worker C cannot be assigned to task Q.

The amount, in pounds, that each worker would earn when assigned to each task is shown in the table below.

PQRS
A72985984
B67876886
C70–6279
D78936481

The Hungarian algorithm is to be used to find the maximum total amount that can be earned by the four workers.

(a) Explain how the table should be modified so that the Hungarian algorithm may be applied. (2)
(b) Modify the table so that the Hungarian algorithm may be applied. (1)
(c) Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total earnings. You should explain how any initial row and column reductions were made and also how you determined if the table was optimal at each stage. (6)

A2 October 2020 Q1

EdexcelCurrent spec8 marksAllocation

1. Four workers, A, B, C and D, are to be assigned to four tasks, 1, 2, 3 and 4. Each worker must be assigned to exactly one task and each task must be done by exactly one worker.

Worker A cannot do task 3 and worker B cannot do task 4

The table below shows the profit, in pounds, that each worker would earn if assigned to each of the tasks.

1234
A2920–23
B323028–
C35323425
D29312730
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total profit. You must make your method clear and show the table after each stage. (7)
(b) Determine the resulting total profit. (1)

A2 June 2019 Q2

EdexcelCurrent spec7 marksAllocation

2. Four workers, Ted (T), Harold (H), James (J) and Margaret (M), are to be assigned to four tasks, 1, 2, 3 and 4. Each worker must be assigned to just one task and each task must be done by just one worker.

The profit, in pounds, resulting from allocating each worker to each task, is shown in the table below. The profit is to be maximised.

1234
T103977480
H201155145155
J111807792
M203188137184
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total profit. You must make your method clear and show the table after each stage. (6)
(b) Determine the resulting total profit. (1)

AS June 2019 Q1

EdexcelCurrent spec9 marksAllocation

1. Three workers, A, B and C, are each to be assigned to one of four tasks, P, Q, R and S.

Each worker must be assigned to at most one task, and each task must be done by at most one worker.

The amount, in pounds, that each worker will earn while assigned to each task is shown in the table below.

PQRS
A32403742
B29323541
C37333940

The Hungarian algorithm is to be used to find the maximum total amount that can be earned by the three workers.

(a) Explain how the table should be modified. (2)
(b)
(i) Reducing rows first, use the Hungarian algorithm to obtain an allocation which maximises the total earnings.
(ii) Explain how any initial row and column reductions were made and also how you determined if the table was optimal at each stage. (7)

AS June 2018 Q1

EdexcelCurrent spec5 marksAllocation

1. Four workers, A, B, C and D, are to be assigned to four tasks, P, Q, R and S. Each worker must be assigned to exactly one task and each task must be done by only one worker. The time, in hours, that each worker takes to complete each task is shown in the table below.

PQRS
A7.53.589.5
B5277.5
C43.53.58
D653.54

Reducing rows first, use the Hungarian algorithm to obtain an allocation which minimises the total time. You must explain your method and show the table after each stage. (5)