Hungarian algorithm with restrictions

A question is this type if and only if it involves applying the Hungarian algorithm where certain workers cannot do certain tasks (indicated by dashes or asterisks in the table).

11 questions · Standard +0.2

Sort by: Default | Easiest first | Hardest first
Edexcel D2 2010 June Q2
10 marks Moderate -0.3
2. A team of four workers, Harry, Jess, Louis and Saul, are to be assigned to four tasks, 1, 2, 3 and 4. Each worker must be assigned to one task and each task must be done by just one worker. Jess cannot be assigned to task 4.
The amount, in pounds, that each person would earn while assigned to each task is shown in the table below.
1234
Harry18242217
Jess202519-
Louis25242722
Saul19262314
  1. Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total amount earned by the team. You must make your method clear and show the table after each stage.
  2. State who should be assigned to each task and the total amount earned by the team.
Edexcel D2 2014 June Q1
10 marks Moderate -0.8
  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 just one task and each task must be done by just one worker.
Worker A cannot do task 4 and worker B cannot do task 2. The amount, in pounds, that each worker would earn if assigned to the tasks, is shown in the table below.
1234
A191623-
B24-3023
C18172518
D24242624
Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total earnings. You must make your method clear and show the table after each stage.
Edexcel FD2 AS 2020 June Q2
9 marks Standard +0.3
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.
\cline { 2 - 5 } \multicolumn{1}{c|}{}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.
  1. Explain how the table should be modified so that the Hungarian algorithm may be applied.
  2. Modify the table so that the Hungarian algorithm may be applied.
  3. 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.
Edexcel FD2 AS 2022 June Q1
7 marks Moderate -0.5
  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.
\cline { 2 - 5 } \multicolumn{1}{c|}{}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.
  1. Modify the table so that the Hungarian algorithm may be used.
  2. 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.
Edexcel FD2 AS 2023 June Q1
9 marks Standard +0.3
  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.
  1. Explain how the table should be modified so that the Hungarian algorithm can be applied.
    1. Use the Hungarian algorithm to obtain an allocation that minimises the total time.
    2. Explain how you determined if the table was optimal at each stage.
  2. Calculate the least total time to complete all four tasks.
Edexcel FD2 AS 2024 June Q2
8 marks Standard +0.8
2. A team of 5 players, A, B, C, D and E, competes in a quiz. Each player must answer one of 5 rounds, \(\mathrm { P } , \mathrm { Q } , \mathrm { R } , \mathrm { 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.
\cline { 2 - 6 } \multicolumn{1}{c|}{}\(\mathbf { P }\)\(\mathbf { Q }\)\(\mathbf { R }\)\(\mathbf { S }\)\(\mathbf { T }\)
\(\mathbf { A }\)3240354137
\(\mathbf { B }\)38-402733
\(\mathbf { C }\)4128373635
\(\mathbf { D }\)35333836-
\(\mathbf { E }\)4038-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.
  1. Explain how the table should be modified.
    1. Reducing rows first, use the Hungarian algorithm to obtain an allocation which maximises the total expected score.
    2. Calculate the maximum total expected score.
Edexcel FD2 2024 June Q4
9 marks Standard +0.8
  1. 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.
    1. Explain how to modify the table so that the Hungarian algorithm could be applied.
    2. Modify the table as described in (a)(i).
  1. Formulate the above situation as a linear programming problem. You must define the decision variables and make the objective function and constraints clear.
AQA D2 2012 June Q2
10 marks Standard +0.3
2 The times taken in minutes for five people, Ann, Baz, Cal, Di and Ez, to complete each of five different tasks are recorded in the table below. Neither Ann nor Di can do task 2, as indicated by the asterisks in the table.
AQA D2 2016 June Q2
10 marks Standard +0.3
2 Alan, Beth, Callum, Diane and Ethan work for a restaurant chain. The costs, in pounds, for the five people to travel to each of five different restaurants are recorded in the table below. Alan cannot travel to restaurant 1 and Beth cannot travel to restaurants 3 and 5, as indicated by the asterisks in the table.
Edexcel FD2 2020 June Q1
8 marks Standard +0.3
  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
  1. 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.
  2. Determine the resulting total profit.
Edexcel D2 2006 June Q4
11 marks Standard +0.3
During the school holidays four building tasks, rebuilding a wall (\(W\)), repairing the roof (\(R\)), repainting the hall (\(H\)) and relaying the playground (\(P\)), need to be carried out at a Junior School. Four builders, \(A\), \(B\), \(C\) and \(D\) will be hired for these tasks. Each builder must be assigned to one task. Builder \(B\) is not able to rebuild the wall and therefore cannot be assigned to this task. The cost, in thousands of pounds, of using each builder for each task is given in the table below.
Cost\(H\)\(P\)\(R\)\(W\)
\(A\)35119
\(B\)378--
\(C\)25107
\(D\)8376
  1. Use the Hungarian algorithm, reducing rows first, to obtain an allocation that minimises the total cost. State the allocation and its total cost. You must make your method clear and show the table after each stage. [9]
  2. State, with a reason, whether this allocation is unique. [2]
(Total 11 marks)