Allocation

Your progress
0 of 59 done
Ticks are kept only in this browser: clearing your browsing data or changing device loses them. · ·
From an AS paper

Edexcel

Edexcel · Old spec

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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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

EdexcelAS paperCurrent 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)

D2 June 2019 Q3

EdexcelOld spec8 marksAllocation

3. Five friends have rented a house that has five bedrooms. They each require their own bedroom. The table below shows how each friend rated the five bedrooms, A, B, C, D and E, where 0 is low and 10 is high.

ABCDE
Frank50734
Gill538101
Harry43790
Imogen63654
Jiao02732

Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total of all the ratings. You must make your method clear and show the table after each stage.

D1 June 2019 Q1

EdexcelOld spec7 marksAllocation

1.

Figure 1: bipartite graph joining people A to F to tasks 1 to 6
Figure 1
Figure 2: initial matching A to 3, C to 5, E to 6, F to 1
Figure 2

Figure 1 shows the possible allocations of six people, A, B, C, D, E and F, to six tasks, 1, 2, 3, 4, 5 and 6

(a) Write down the technical name given to the type of diagram shown in Figure 1. (1)

Figure 2 shows an initial matching.

(b) Starting from the given initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating paths you use and state your improved matching after each iteration. (6)

D1 June 2018 Q5

EdexcelOld spec6 marksAllocation

5.

Figure 3: bipartite graph joining workers C, D, H, R, S to tasks 1 to 5
Figure 3

Figure 3 shows the possible allocations of five workers, Cole (C), Dorothy (D), Harold (H), Richard (R) and Stephen (S), to five tasks, 1, 2, 3, 4 and 5.

In an initial matching, each of three workers is allocated to a different task.

For this initial matching, there are three possible alternating paths that start at C.

One alternating path is

C − 3 = S − 4 = D − 5

A second alternating path is

C − 1 = H − 2

(a) Use this information to deduce the initial matching. (1)
(b) Find the third alternating path that starts at C. (1)
(c) List the improved matching generated by using the alternating path  C − 3 = S − 4 = D − 5 (1)
(d) Starting from the improved matching found in (c), use the maximum matching algorithm to obtain a complete matching. You must list the alternating path you use and the final matching. (3)

D2 June 2018 Q3

EdexcelOld spec11 marksAllocation

3. Five workers, A, B, C, D and E, are to be assigned to five tasks, 1, 2, 3, 4 and 5. Each worker must be assigned to only one task and each task must be done by only one worker.

The cost, in pounds, of assigning each worker to each task is shown in the table below. The cost of assigning worker D to task 4 is £\(x\), where \(x \gt 38\)

12345
A2531272935
B2933403537
C2829353637
D343536\(x\)41
E3635323133

The total cost is to be minimised.

(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that minimises the cost. You must make your method clear and show the table after each stage. (8)
(b) Find the minimum total cost. (1)

Workers A and D decide that they do not like the task they have been allocated and are allowed to swap tasks with each other. The other three allocations are unchanged. The cost now of allocating the five workers to the five tasks is now £5 more than the minimum cost found in (b).

(c) Calculate the value of \(x\). You must show your working. (2)

D2 June 2017 Q4

EdexcelOld spec7 marksAllocation

4. 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 only one task and each task must be done by only one worker.

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

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

1234
A5384–20
B87724138
C70515225
D45–8170

The total cost is to be minimised.

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

You do not need to solve this problem.

D1 June 2017 Q1

EdexcelOld spec10 marksAllocation

1.

(a) Define the terms
(i) bipartite graph,
(ii) alternating path. (4)
Figure 1: bipartite graph joining guests A to F to rooms 1 to 6
Figure 1
Figure 2: initial matching A to 1, B to 3, D to 4, E to 6
Figure 2

At a hotel, six guests, A, B, C, D, E and F, are to be allocated to six rooms, 1, 2, 3, 4, 5 and 6. Each room needs to be allocated to exactly one guest.

A bipartite graph showing their possible allocations is given in Figure 1. An initial matching is given in Figure 2.

(b) Starting from the initial matching given in Figure 2, apply the maximum matching algorithm to find an alternating path from F to 5. Hence find an improved matching. You must list the alternating path that you use and state your improved matching. (3)

Guest C now has room 5 added to his possible allocations.

(c) Starting with the improved matching found in (b), apply the maximum matching algorithm to obtain a complete matching. You must list the alternating path that you use and state your complete matching. (3)

D2 June 2016 Q3

EdexcelOld spec9 marksAllocation

3. Four pupils, Alexa, Ewan, Faith and Zak, are to be allocated to four rounds, 1, 2, 3 and 4, in a mathematics competition. Each pupil is to be allocated to exactly one round and each round must be allocated to exactly one pupil.

Each pupil has been given a score, based on previous performance, to show how suitable they are for each round. The higher the score the more suitable the pupil is for that round. The scores for each pupil are shown in the table below.

1234
Alexa61504723
Ewan71622061
Faith70494849
Zak72686767
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that maximises the total score. You must make your method clear and show the table after each stage. (8)
(b) State the maximum total score. (1)

D1 June 2016 Q1

EdexcelOld spec5 marksAllocation

1.

Figure 1: bipartite graph joining L, M, N, P, T to activities A to E
Figure 1
Figure 2: initial matching L to D, M to C, N to A, T to E
Figure 2
(a) Define the term ‘bipartite graph’. (2)

Figure 1 shows the possible allocations of five people, Larry (L), Monisha (M), Nina (N), Phil (P) and Theo (T), to five activities, A, B, C, D and E.

Figure 2 shows an initial matching.

(b) Starting from this initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating path you use and state your complete matching. (3)

D1 June 2015 Q1

EdexcelOld spec6 marksAllocation

1.

Figure 1: bipartite graph joining vans A to F to deliveries 1 to 6
Figure 1
Figure 2: initial matching A to 2, C to 4, E to 6, F to 3
Figure 2

A delivery firm has six vans, A, B, C, D, E and F, available for six deliveries, 1, 2, 3, 4, 5 and 6. Each van must be assigned to just one delivery.

The bipartite graph shown in Figure 1 shows the possible matchings and Figure 2 shows an initial matching.

A complete matching is required, starting from the given initial matching.

(a) Explain why it is necessary to use the maximum matching algorithm twice. (1)

There are three possible alternating paths that start at either D or B. One of these is

D – 2 = A – 3 = F – 6 = E – 5

(b) Find the other two alternating paths. (2)
(c) List the improved matching generated by using the alternating path

D – 2 = A – 3 = F – 6 = E – 5

(1)
(d) Starting from the improved matching found in (c), use the maximum matching algorithm to find a complete matching. You should list the alternating path that you use and your complete matching. (2)

D2 June 2014 (R) Q6

EdexcelOld spec7 marksAllocation

6. 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 C cannot do task 4 and worker D cannot do task 1.

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

The total cost is to be minimised.

1234
A29153230
B34264032
C282735–
D–213331

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

D1 June 2014 (R) Q2

EdexcelOld spec7 marksAllocation

2.

Figure 1: bipartite graph joining employees A, C, H, J, P to tasks 1 to 5
Figure 1
Figure 2: initial matching C to 4, H to 1, J to 5, P to 2
Figure 2

Figure 1 shows the possible allocations of five employees, Ali (A), Campbell (C), Hugo (H), Janelle (J) and Polly (P), to five tasks 1, 2, 3, 4 and 5.

(a) Explain why it is not possible to find a complete matching. (2)

It is decided that one of the employees should be trained so that a complete matching becomes possible. There are only enough funds for one employee to be trained.

Two employees volunteer to undergo training. Janelle can be trained to do task 1 or Hugo can be trained to do task 5.

(b) Decide which employee, Janelle or Hugo, should undergo training. Give a reason for your answer. (2)

You may now assume that the employee you identified in (b) has successfully undergone training.

Figure 2 shows an initial matching.

(c) Starting from the given initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating path that you use, and state the complete matching. (3)

D1 June 2014 Q4

EdexcelOld spec9 marksAllocation

4.

1st preference2nd preference3rd preference
Ashley (A)TCV
Fran (F)VT
Jas (J)CD
Ned (N)V
Peter (P)V
Richard (R)GCK

Six pupils, Ashley (A), Fran (F), Jas (J), Ned (N), Peter (P) and Richard (R), each wish to learn a musical instrument. The school they attend has six spare instruments; a clarinet (C), a trumpet (T), a violin (V), a keyboard (K), a set of drums (D) and a guitar (G). The pupils are asked which instruments they would prefer and their preferences are given in the table above. It is decided that each pupil must learn a different instrument and each pupil needs to be allocated to exactly one of their preferred instruments.

(a) Using Diagram 1 in the answer book, draw a bipartite graph to show the possible allocations of pupils to instruments. (1)

Initially Ashley, Fran, Jas and Richard are each allocated to their first preference.

(b) Show this initial matching on Diagram 2 in the answer book. (1)
(c) Starting with the initial matching from (b), apply the maximum matching algorithm once to find an improved matching. You must state the alternating path you use and give your improved matching. (3)
(d) Explain why a complete matching is not possible. (1)

Fran decides that as a third preference she would like to learn to play the guitar. Peter decides that as a second preference he would like to learn to play the drums.

(e) Starting with the improved matching found in (c), use the maximum matching algorithm to obtain a complete matching. You must state the alternating path you use and your complete matching. (3)

D2 June 2014 Q1

EdexcelOld spec10 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 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. (10)

D2 June 2013 (R) Q1

EdexcelOld spec10 marksAllocation

1. Four workers, Chris (C), James (J), Katie (K) and Nicky (N), are to be allocated to four tasks, 1, 2, 3 and 4. Each worker is to be allocated to one task and each task must be allocated to 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
Chris127116111113
James225208205208
Katie130113112114
Nicky228212203210
(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. (8)
(b) State which worker should be allocated to each task and the resulting total profit made. (2)

D1 June 2013 (R) Q1

EdexcelOld spec7 marksAllocation

1.

Figure 1: possible allocations of A to F to tasks 1 to 6
Figure 1
Figure 2: initial matching B–4, D–2, E–1, F–5
Figure 2

Figure 1 shows the possible allocations of six people, A, B, C, D, E and F, to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 2 shows an initial matching.

(a) Starting from the given initial matching, use the maximum matching algorithm to find an improved matching. You should list the alternating path you used, and your improved matching. (3)
(b) Explain why it is not possible to find a complete matching. (1)

After training, task 4 is added to F’s possible allocation and task 6 is added to E’s possible allocation.

(c) Starting from the improved matching found in (a), use the maximum matching algorithm to find a complete matching. You should list the alternating path you used and your complete matching. (3)

D2 June 2013 Q6

EdexcelOld spec8 marksAllocation

6. Three workers, Harriet, Jason and Katherine, are to be assigned to three tasks, 1, 2 and 3. Each worker must be assigned to just one task and each task must be done by just one worker.

The amount each person would earn, in pounds, while assigned to each task is shown in the table below.

Task 1Task 2Task 3
Harriet251243257
Jason244247255
Katherine249252246

The total income is to be maximised.

(a) Modify the table so it can be used to find the maximum income. (1)
(b) Formulate the above situation as a linear programming problem. You must define your decision variables and make your objective function and constraints clear. (7)

D1 June 2013 Q1

EdexcelOld spec7 marksAllocation

1.

Figure 1: possible allocations of A, B, H, I, L, R to tasks 1 to 6
Figure 1
Figure 2: initial matching A–1, H–3, L–4, R–5
Figure 2

Figure 1 shows the possible allocations of six people, Alex (A), Ben (B), Harriet (H), Izzy (I), Leo (L) and Rowan (R), to six tasks, 1, 2, 3, 4, 5 and 6.

(a) Write down the technical name given to the type of diagram shown in Figure 1. (1)

Figure 2 shows an initial matching.

(b) Starting from the given initial matching, use the maximum matching algorithm to find a complete matching. You should list the alternating paths you use, and state your improved matching after each iteration. (6)

D1 January 2013 Q3

EdexcelOld spec8 marksAllocation

3.

Figure 2: bipartite graph of possible allocations of C, G, J, N, O, R to tasks 1 to 6
Figure 2
Figure 3: initial matching G–5, J–6, N–4, R–3
Figure 3

Figure 2 shows the possible allocations of six workers, Charlie (C), George (G), Jack (J), Nurry (N), Olivia (O) and Rachel (R), to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 3 shows an initial matching.

(a) Starting from this initial matching, use the maximum matching algorithm to find an improved matching. You should give the alternating path you use and list your improved matching. (3)
(b) Explain why it is not possible to find a complete matching. (2)

After training, Charlie adds task 5 to his possible allocations.

(c) Taking the improved matching found in (a) as the new initial matching, use the maximum matching algorithm to find a complete matching. Give the alternating path you use and list your complete matching. (3)

D2 June 2012 Q7

EdexcelOld spec7 marksAllocation

7. Four workers, A, B, C and D, are to be assigned to four tasks, P, Q, R and S. Each worker is to be assigned to exactly one task and each task must be assigned to just one worker. The cost, in pounds, of using each worker for each task is given in the table below. The total cost is to be minimised.

PQRS
A23413444
B21453342
C26433140
D20473546

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

D1 June 2012 Q2

EdexcelOld spec7 marksAllocation

2.

Figure 1: bipartite graph of possible allocations of C, D, E, F, G to tasks 1 to 5
Figure 1
Figure 2: initial matching C–3, D–1, E–5, F–2
Figure 2

Figure 1 shows the possible allocations of five workers, Charles (C), David (D), Ellie (E), Freya (F) and Georgi (G), to five tasks, 1, 2, 3, 4 and 5.

Figure 2 shows an initial matching.

(a) Starting from this initial matching, use the maximum matching algorithm to find a complete matching. State clearly the alternating path that you use and list your final matching. (4)
(b) Find another solution starting from the given initial matching. You should state the alternating path and list the complete matching it gives. (3)

D2 June 2012 Q1

EdexcelOld spec9 marksAllocation

1. Five workers, A, B, C, D and E, are to be assigned to five tasks, 1, 2, 3, 4 and 5. Each worker is to be assigned to one task and each task must be assigned to one worker.

The cost, in pounds, of assigning each person to each task is shown in the table below. The cost is to be minimised.

12345
A129127122134135
B127125123131132
C142131121140139
D127127122131136
E141134129144143
(a) Reducing rows first, use the Hungarian algorithm to obtain an allocation that minimises the cost. You must make your method clear and show the table after each stage. (8)
(b) Find the minimum cost. (1)

D1 January 2012 Q3

EdexcelOld spec10 marksAllocation

3.

Figure 3: bipartite graph; C to 2 and 3; E to 2 and 4; G to 1 and 6; H to 6; J to 4; S to 6
Figure 3
Figure 4: initial matching C to 2, E to 4, G to 1, H to 6
Figure 4

Define the terms

(a) bipartite graph, (2)
(b) matching. (2)

Figure 3 shows the possible allocations of six people, Charles (C), Emily (E), George (G), Harriet (H), Jack (J) and Shen (S), to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 4 shows an initial matching.

(c) Starting from this initial matching, use the maximum matching algorithm to find an improved matching. You should list the alternating path you use and state your improved matching. (3)

Emily has task 5 added to her possible allocations and Harriet has task 3 added to her possible allocations.

(d) Starting from the improved matching found in part (c), use the maximum matching algorithm to find a complete matching. You should list the alternating path you use and state your improved matching. (3)

D2 June 2011 Q6

EdexcelOld spec9 marksAllocation

6. Three workers, P, Q and R, are to be assigned to three tasks, A, B and C. Each worker must be assigned to just one task and each task must be assigned to just one worker.

Table 1 shows the cost of using each worker for each task. The total cost is to be minimised.

Task ATask BTask C
Worker P273125
Worker Q263034
Worker R352932

Table 1

(a) Formulate the above situation as a linear programming problem. You must define your decision variables and make the objective and constraints clear.
You are not required to solve the problem. (7)

Table 2 shows the profit gained by using each worker for each task. The total profit is to be maximised.

Task ATask BTask C
Worker P333731
Worker Q323640
Worker R413538

Table 2

(b) Modify Table 2 in the answer book so that the Hungarian Algorithm could be used to find the maximum total profit. You are not required to solve the problem. (2)

D1 June 2011 Q4

EdexcelOld spec7 marksAllocation

4.

Figure 3: bipartite graph; A to 1 and 3; C to 3, 4 and 5; H to 1, 2 and 3; J to 4; R to 3 and 4
Figure 3
Figure 4: initial matching C to 4, H to 1, R to 3
Figure 4

Figure 3 shows the possible allocations of five workers, Adam (A), Catherine (C), Harriet (H), Josh (J) and Richard (R) to five tasks, 1, 2, 3, 4 and 5.

Figure 4 shows an initial matching.

There are three possible alternating paths that start at A.
One of them is

A – 3 = R – 4 = C – 5

(a) Find the other two alternating paths that start at A. (3)
(b) List the improved matching generated by using the alternating path A – 3 = R – 4 = C – 5. (1)
(c) Starting from the improved matching found in (b), use the maximum matching algorithm to obtain a complete matching. You must list the alternating path used and your final matching. (3)

D1 January 2011 Q4

EdexcelOld spec7 marksAllocation

4.

Figure 3: bipartite graph; A to 2 and 5; B to 1, 3 and 6; D to 2 and 5; J to 3; K to 1, 4 and 6; M to 2 and 5
Figure 3
Figure 4: initial matching A to 2, B to 3, K to 6, M to 5
Figure 4

Six workers, Anthony, Beth, David, Jacob, Kantola and Miri, are to be allocated to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 3 shows the possible allocations of the workers, and an initial matching is shown in Figure 4.

(a) Write down the technical name given to the type of diagram shown in Figure 3. (1)
(b) Use the maximum matching algorithm once to find an improved matching. You must state the alternating path you use and your improved matching. (3)

Anthony now agrees to add task 6 to his possible allocations.

(c) Starting with your improved matching, use the maximum matching algorithm to obtain a complete matching. You must state the alternating path you use and your complete matching. (3)

D1 June 2010 Q5

EdexcelOld spec8 marksAllocation

5.

Figure 3: bipartite graph; A to 2 and 4; C to 5; E to 2 and 3; G to 3; J to 5; S to 1, 4 and 6
Figure 3
Figure 4: initial matching A to 2, E to 3, J to 5, S to 4
Figure 4

Figure 3 shows the possible allocations of six people, Amelia, Charlie, Ellie, Gemma, Jimmy and Saskia, to six tasks, 1, 2, 3, 4, 5 and 6.
Figure 4 shows an initial matching.

(a) Use the maximum matching algorithm once to find an improved matching.
You must state the alternating path used and your improved matching. (3)
(b) Explain why a complete matching is not possible. (2)

After training, Jimmy can be assigned to tasks 4 or 5 and Ellie to tasks 2, 3, 5 or 6.

(c) Starting with your current maximal matching, use the maximum matching algorithm to obtain a complete matching. You must state the alternating path used and your final matching. (3)

D2 June 2010 Q2

EdexcelOld spec10 marksAllocation

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
(a) 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. (8)
(b) State who should be assigned to each task and the total amount earned by the team. (2)

D1 January 2010 Q1

EdexcelOld spec6 marksAllocation

1.

Figure 1: bipartite graph; A to 1 and 2; B to 3 and 4; C to 1, 3 and 6; D to 4 and 5; E to 1, 2 and 5; F to 3 and 4
Figure 1

Figure 1 shows the possible allocation of six people, Alice (A), Brian (B), Christine (C), David (D), Elizabeth (E) and Freddy (F), to six tasks, 1, 2, 3, 4, 5 and 6.

An initial matching is Alice to task 1, Christine to task 3, David to task 4 and Elizabeth to task 5.

(a) Show this initial matching on Diagram 1 in the answer book. (1)
(b) Starting from this initial matching, use the maximum matching algorithm to find a complete matching.  List clearly the alternating paths that you use, and give your final matching. (5)

D1 June 2009 Q3

EdexcelOld spec7 marksAllocation

3.

Figure 1: bipartite graph joining workers C, E, H, M, R, S to tasks 1 to 6
Figure 1
Figure 2: initial matching C-3, M-2, R-5, S-1
Figure 2

Figure 1 shows the possible allocations of six workers, Charlotte (C), Eleanor (E), Harry (H), Matt (M), Rachel (R) and Simon (S) to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 2 shows an initial matching.

(a) List an alternating path, starting at H and ending at 4. Use your path to find an improved matching. List your improved matching. (3)
(b) Explain why it is not possible to find a complete matching. (1)

Simon (S) now has task 3 added to his possible allocation.

(c) Taking the improved matching found in (a) as the new initial matching, use the maximum matching algorithm to find a complete matching. List clearly the alternating path you use and your complete matching. (3)

D2 June 2009 Q1

EdexcelOld spec9 marksAllocation

1. A company, Kleenitquick, has developed a new stain remover. To promote sales, three salespersons, Jess, Matt and Rachel, will be assigned to three of four department stores 1, 2, 3 and 4, to demonstrate the stain remover. Each salesperson can only be assigned to one department store.

The table below shows the cost, in pounds, of assigning each salesperson to each department store.

1234
Jess15111412
Matt1381713
Rachel1491315
(a) Explain why a dummy row needs to be added to the table. (1)
(b) Complete Table 1 in the answer book. (1)
(c) Reducing rows first, use the Hungarian algorithm to obtain an allocation that minimises the cost of assigning salespersons to department stores. You must make your method clear and show the table after each iteration. (6)
(d) Find the minimum cost. (1)

D1 January 2009 Q4

EdexcelOld spec8 marksAllocation

4.

Figure 1: bipartite graph joining people A to F to tasks 1 to 6
Figure 1
Figure 2: initial matching A-3, C-2, D-1, E-6
Figure 2

Figure 1 shows the possible allocations of six people, A, B, C, D, E and F, to six tasks, 1, 2, 3, 4, 5 and 6.

Figure 2 shows an initial matching.

(a) Starting from this initial matching, use the maximum matching algorithm to find an improved matching. You must list the alternating path used, and your improved matching. (3)
(b) Explain why it is not possible to find a complete matching. (2)

D now has task 2 added to their possible allocation.

(c) Using the improved matching found in part (a) as the new initial matching, use the maximum matching algorithm to find a complete matching. You must list the alternating path used and your complete matching. (3)

D2 June 2008 Q6

EdexcelOld spec14 marksAllocation

6. Four salespersons, Joe, Min-Seong, Olivia and Robert, are to attend four business fairs, \(A\), \(B\), \(C\) and \(D\). Each salesperson must attend just one fair and each fair must be attended by just one salesperson.
The expected sales, in thousands of pounds, that each salesperson would make at each fair is shown in the table below.

\(A\)\(B\)\(C\)\(D\)
Joe48494242
Min-Seong53495150
Olivia51534848
Robert47504643
(a) Use the Hungarian algorithm, reducing rows first, to obtain an allocation that maximises the total expected sales from the four salespersons. You must make your method clear and show the table after each stage. (10)
(b) State all possible optimal allocations and the optimal total value. (4)

D1 June 2008 Q2

EdexcelOld spec8 marksAllocation

2.

Figure 1: bipartite graph joining tour guides A, E, G, R, W to coach trips 1 to 5
Figure 1
Figure 2: initial matching E-2, R-4, W-5
Figure 2

Five tour guides, Alice, Emily, George, Rose and Weidi, need to be assigned to five coach trips, 1, 2, 3, 4 and 5. A bipartite graph showing their preferences is given in Figure 1 and an initial matching is given in Figure 2.

(a) Use the maximum matching algorithm, starting with vertex G, to increase the number of matchings. State the alternating path you used. (2)
(b) List the improved matching you found in (a). (1)
(c) Explain why a complete matching is not possible. (2)

Weidi agrees to be assigned to coach trip 3, 4 or 5.

(d) Starting with your current maximal matching, use the maximum matching algorithm to obtain a complete matching. (3)

D1 January 2008 Q1

EdexcelOld spec9 marksAllocation

1.

(a) Define the terms
(i) alternating path, (2)
(ii) matching. (2)
Figure 1: bipartite graph joining teachers A to E to stalls 1 to 5
Figure 1
Figure 2: initial matching A-2, B-4, C-3
Figure 2

At a school fair, five teachers, \(A\), \(B\), \(C\), \(D\) and \(E\), are to supervise five stalls, 1, 2, 3, 4 and 5.

A bipartite graph showing their possible allocations is given in Figure 1. An initial matching is given in Figure 2.

(b) Use the maximum matching algorithm twice to obtain a complete matching.
List clearly the alternating paths you use. (5)

D2 June 2007 Q3

EdexcelOld spec13 marksAllocation

3. To raise money for charity it is decided to hold a Teddy Bear making competition. Teams of four compete against each other to make 20 Teddy Bears as quickly as possible.

There are four stages: first cutting, then stitching, then filling and finally dressing.

Each team member can only work on one stage during the competition. As soon as a stage is completed on each Teddy Bear the work is passed immediately to the next team member.

The table shows the time, in seconds, taken to complete each stage of the work on one Teddy Bear by the members \(A\), \(B\), \(C\) and \(D\) of one of the teams.

cuttingstitchingfillingdressing
\(A\)661018536
\(B\)66987438
\(C\)63977134
\(D\)671027835
(a) Use the Hungarian algorithm, reducing rows first, to obtain an allocation that minimises the time taken by this team to produce one Teddy Bear. You must make your method clear and show the table after each iteration. (9)
(b) State the minimum time it will take this team to produce one Teddy Bear. (1)

Using the allocation found in (a),

(c) calculate the minimum total time this team will take to complete 20 Teddy Bears. You should make your reasoning clear and state your answer in minutes and seconds. (3)

D1 June 2007 Q2

EdexcelOld spec7 marksAllocation

2.

Figure 1: bipartite graph joining workers A, E, H, J, L, M to tasks 1a, 1b, 2, 3, 4, 5
Figure 1
Figure 2: initial matching A-1a, E-1b, H-3, J-5, M-2
Figure 2

Six workers, Annie, Emma, Hannah, Jerry, Louis and Morand, are to be assigned to five tasks, 1,2,3,4 and 5.

For safety reasons, task 1 must be done by two people working together.

A bipartite graph showing the possible allocations of the workers is given in Figure 1 and an initial matching is given in Figure 2.

The maximum matching algorithm will be used to obtain a complete matching.

(a) Although there are five tasks, six vertices have been created on the right hand side of each bipartite graph. Explain why this is necessary when applying this algorithm. (2)
(b) Find an alternating path and the complete matching it gives. (3)

Hannah is now unable to do task 5 due to health reasons.

(c) Explain why a complete matching is no longer possible. (2)

D1 January 2007 Q2

EdexcelOld spec7 marksAllocation

2.

Figure 1: bipartite graph joining Ellen, George, Jo, Lydia, Yi Wen with tasks 1 to 5
Figure 1
Figure 2: initial matching Ellen to 2, Jo to 3, Lydia to 4
Figure 2

Figure 1 shows the possible allocations of five people, Ellen, George, Jo, Lydia and Yi Wen to five tasks, 1, 2, 3, 4 and 5.

Figure 2 shows an initial matching.

(a) Find an alternating path linking George with 5. List the resulting improved matching this gives. (3)
(b) Explain why it is not possible to find a complete matching. (1)

George now has task 2 added to his possible allocation.

(c) Using the improved matching found in part (a) as the new initial matching, find an alternating path linking Yi Wen with task 1 to find a complete matching. List the complete matching. (3)

D2 June 2006 Q4

EdexcelOld spec11 marksAllocation

4. 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
(a) 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)
(b) State, with a reason, whether this allocation is unique. (2)

D2 June 2006 Q2

EdexcelOld spec7 marksAllocation

2. Three workers, \(P\), \(Q\) and \(R\), are to be assigned to three tasks, 1, 2 and 3. Each worker is to be assigned to one task and each task must be assigned to one worker. The cost, in hundreds of pounds, of using each worker for each task is given in the table below. The cost is to be minimised.

Cost (in £100s)Task 1Task 2Task 3
Worker \(P\)873
Worker \(Q\)956
Worker \(R\)1044

Formulate the above situation as a linear programming problem, defining the decision variables and making the objective and constraints clear. (7)

D1 June 2006 Q2

EdexcelOld spec7 marksAllocation

2.

(a) Define the term ‘alternating path’. (2)
Figure 1: bipartite graph joining customers Adam (A), Daniela (D), Henry (H), Min-Seong (M), Robert (R), Sam (S) to films B, C, F, K, P, Y; bold lines A-B, D-C, H-Y, M-F show the initial matching
Figure 1

The bipartite graph in Figure 1 shows the films that six customers wish to hire this Saturday evening. The shop has only one copy of each film. The bold lines indicate an initial matching.

(b) Starting from this initial matching use the maximum matching algorithm twice to obtain a complete matching. You should clearly state the alternating paths you use. (5)

D2 January 2006 Q1

EdexcelOld spec13 marksAllocation

1. A theme park has four sites, A, B, C and D, on which to put kiosks. Each kiosk will sell a different type of refreshment. The income from each kiosk depends upon what it sells and where it is located. The table below shows the expected daily income, in pounds, from each kiosk at each site.

Hot dogs and beef burgers (H)Ice cream (I)Popcorn, candyfloss and drinks (P)Snacks and hot drinks (S)
Site A267272276261
Site B264271278263
Site C267273275263
Site D261269274257

Reducing rows first, use the Hungarian algorithm to determine a site for each kiosk in order to maximise the total income. State the site for each kiosk and the total expected income. You must make your method clear and show the table after each stage. (13)

D1 January 2006 Q1

EdexcelOld spec7 marksAllocation

1.

Figure 1: bipartite graph joining taxis A to F with journeys 1 to 6
Figure 1
Figure 2: initial matching A to 5, B to 2, C to 3, D to 6
Figure 2

A taxi firm has six taxis \(A\), \(B\), \(C\), \(D\), \(E\) and \(F\), available for six journeys, 1, 2, 3, 4, 5 and 6, which are booked for 9 a.m. tomorrow.

The bipartite graph shown in Figure 1 shows the possible matchings.

Initially \(A\), \(B\), \(C\) and \(D\) are matched to 5, 2, 3 and 6 respectively, as indicated in Figure 2.

(a) Explain why it is necessary to perform the maximum matching algorithm twice in order to try to obtain a complete matching. (1)
(b) Use the maximum matching algorithm twice to obtain a complete matching. List clearly the alternating paths you use. (6)

D2 June 2005 Q5

EdexcelOld spec15 marksAllocation

5. Four salesperson \(A\), \(B\), \(C\) and \(D\) are to be sent to visit four companies 1, 2, 3 and 4. Each salesperson will visit exactly one company, and all companies will be visited.

Previous sales figures show that each salesperson will make sales of different values, depending on the company that they visit. These values (in £10 000s) are shown in the table below.

1234
Ann26303030
Brenda30232629
Connor30252724
Dave30272521
(a) Use the Hungarian algorithm to obtain an allocation that maximises the sales. You must make your method clear and show the table after each stage. (11)
(b) State the value of the maximum sales. (2)
(c) Show that there is a second allocation that maximises the sales. (2)

D1 June 2005 Q5

EdexcelOld spec8 marksAllocation

5.

Figure 3: bipartite graph joining films A to E with times 1 to 5
Figure 3
Figure 4: initial matching A to 1, B to 4, C to 3, D to 2
Figure 4

A film critic, Verity, must see five films A, B, C, D and E over two days.

The films are being shown at five special critics’ preview times:
1  (Monday 4 pm),
2  (Monday 7 pm),
3  (Tuesday 1 pm),
4  (Tuesday 4 pm),
5  (Tuesday 7 pm).

The bipartite graph in Figure 3 shows the times at which each film is showing.

Initially Verity intends to see

Film A on Monday at 4 pm,
Film B on Tuesday at 4 pm,
Film C on Tuesday at 1 pm,
Film D on Monday at 7 pm.

This initial matching is shown in Figure 4.

Using the maximum matching algorithm and the given initial matching,

(a) find two distinct alternating paths and complete the matchings they give. (6)

Verity’s son is very keen to see film D, but he can only go with his mother to the showing on Monday at 7 pm.

(b) Explain why it will not be possible for Verity to take her son to this showing and still see all five films herself. (2)

D1 January 2005 Q1

EdexcelOld spec6 marksAllocation

1.

Figure 1: bipartite graph joining A, D, J, P, S, T to tasks 1 to 6
Figure 1

The bipartite graph in Figure 1 shows a mapping between six people, Andy (\(A\)), David (\(D\)), Joan (\(J\)), Preety (\(P\)), Sally (\(S\)) and Trevor (\(T\)), and six tasks 1, 2, 3, 4, 5 and 6.

The initial matching is \(A\) to 2, \(D\) to 1, \(J\) to 3 and \(P\) to 4.

(a) Indicate this initial matching in a distinctive way on the bipartite graph drawn in the answer book. (1)
(b) Starting from this initial matching, use the maximum matching algorithm to find a complete matching. List clearly the alternating paths you use. (5)