Hungarian algorithm for minimisation

A question is this type if and only if it asks to use the Hungarian algorithm to minimise total cost or time in an assignment problem, reducing rows first unless otherwise specified.

21 questions · Moderate -0.6

Sort by: Default | Easiest first | Hardest first
AQA D2 2013 January Q3
9 marks Moderate -0.5
3 Four pupils, Wendy, Xiong, Yasmin and Zaira, are each to be allocated a different memory coach from five available coaches: Asif, Bill, Connie, Deidre and Eric. Each pupil has an initial training session with each coach, and a test which scores their improvement in memory-recall produces the following results.
AQA D2 2010 June Q2
10 marks Moderate -0.5
2 Five students attempted five different games, and penalty points were given for any mistakes that they made. The table shows the penalty points incurred by the students.
Game 1Game 2Game 3Game 4Game 5
Ali57388
Beth86487
Cat612103
Di443107
Ell46479
Using the Hungarian algorithm, each of the five students is to be allocated to a different game so that the total number of penalty points is minimised.
  1. By reducing the rows first and then the columns, show that the new table of values is
    24023
    42011
    501\(k\)0
    11042
    02003
    and state the value of the constant \(k\).
  2. Show that the zeros in the table in part (a) can be covered with three lines, and use augmentation to produce a table where five lines are required to cover the zeros.
  3. Hence find the possible ways of allocating the five students to the five games with the minimum total of penalty points.
  4. Find the minimum possible total of penalty points.
    \includegraphics[max width=\textwidth, alt={}]{c4dc61a7-47ee-4d5c-bf6d-30a5da2ee8dd-05_2484_1709_223_153}
AQA D2 2011 June Q2
9 marks Moderate -0.3
2 The times taken, in minutes, for five people, \(A , B , C , D\) and \(E\), to complete each of five different puzzles are recorded in the table below.
\(\boldsymbol { A }\)\(\boldsymbol { B }\)\(\boldsymbol { C }\)\(\boldsymbol { D }\)\(\boldsymbol { E }\)
Puzzle 11613151615
Puzzle 21416161418
Puzzle 31412181316
Puzzle 41515171214
Puzzle 51317161415
Using the Hungarian algorithm, each of the five people is to be allocated to a different puzzle so that the total time for completing the five puzzles is minimised.
  1. By reducing the columns first and then the rows, show that the new table of values is
    31041
    0\(k\)013
    10312
    23200
    05121
    State the value of the constant \(k\).
    1. Show that the zeros in the table in part (a) can be covered with one horizontal and three vertical lines.
    2. Use augmentation to produce a table where five lines are required to cover the zeros.
  2. Hence find all the possible ways of allocating the five people to the five puzzles so that the total completion time is minimised.
  3. Find the minimum total time for completing the five puzzles.
  4. Explain how you would modify the original table if the Hungarian algorithm were to be used to find the maximum total time for completing the five puzzles using five different people.
AQA D2 2013 June Q3
12 marks Moderate -0.3
3 The table shows the times taken, in minutes, by five people, \(A , B , C , D\) and \(E\), to carry out the tasks \(V , W , X , Y\) and \(Z\).
\(\boldsymbol { A }\)\(\boldsymbol { B }\)\(\boldsymbol { C }\)\(\boldsymbol { D }\)\(\boldsymbol { E }\)
Task \(\boldsymbol { V }\)10011011210295
Task \(\boldsymbol { W }\)125130110120115
Task \(\boldsymbol { X }\)105110101108120
Task \(\boldsymbol { Y }\)115115120135110
Task \(\boldsymbol { Z }\)1009899100102
Each of the five tasks is to be given to a different one of the five people so that the total time for the five tasks is minimised. The Hungarian algorithm is to be used.
  1. By reducing the columns first, and then the rows, show that the new table of values is
    0121320
    14210\(k\)9
    3100623
    026200
    00007
    and state the value of the constant \(k\).
  2. Show that the zeros in the table in part (a) can be covered with four lines. Use augmentation twice to produce a table where five lines are required to cover the zeros.
  3. Hence find the possible ways of allocating the five tasks to the five people to achieve the minimum total time.
  4. Find the minimum total time.
Edexcel D2 2002 June Q5
11 marks Moderate -0.8
5. An engineering company has 4 machines available and 4 jobs to be completed. Each machine is to be assigned to one job. The time, in hours, required by each machine to complete each job is shown in the table below.
\cline { 2 - 5 } \multicolumn{1}{c|}{}Job 1Job 2Job 3Job 4
Machine 114587
Machine 221265
Machine 37839
Machine 424610
Use the Hungarian algorithm, reducing rows first, to obtain the allocation of machines to jobs which minimises the total time required. State this minimum time.
Edexcel D2 2003 June Q3
13 marks Moderate -0.8
3. Talkalot College holds an induction meeting for new students. The meeting consists of four talks: I (Welcome), II (Options and Facilities), III (Study Tips) and IV (Planning for Success). The four department heads, Clive, Julie, Nicky and Steve, deliver one of these talks each. The talks are delivered consecutively and there are no breaks between talks. The meeting starts at 10 a.m. and ends when all four talks have been delivered. The time, in minutes, each department head takes to deliver each talk is given in the table below.
\cline { 2 - 5 } \multicolumn{1}{c|}{}Talk ITalk IITalk IIITalk IV
Clive12342816
Julie13323612
Nicky15323214
Steve11333610
  1. Use the Hungarian algorithm to find the earliest time that the meeting could end. You must make your method clear and show
    1. the state of the table after each stage in the algorithm,
    2. the final allocation.
  2. Modify the table so it could be used to find the latest time that the meeting could end.
Edexcel D2 2007 June Q3
13 marks Moderate -0.5
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
  1. 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.
  2. State the minimum time it will take this team to produce one Teddy Bear. Using the allocation found in (a),
  3. 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.
    (Total 13 marks)
Edexcel D2 2012 June Q1
9 marks Moderate -0.8
  1. Five workers, \(\mathrm { A } , \mathrm { B } , \mathrm { C } , \mathrm { 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
  1. 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.
  2. Find the minimum cost.
OCR D2 2006 January Q4
13 marks Moderate -0.8
4 Four workers, \(A , B , C\) and \(D\), are to be allocated, one to each of the four jobs, \(W , X , Y\) and \(Z\). The table shows how much each worker would charge for each job. \includegraphics[max width=\textwidth, alt={}, center]{9c9b1a42-8d16-446a-85a1-4c08e5e368be-3_401_846_1745_642}
  1. What is the total cost of the four jobs if \(A\) does \(W , B\) does \(X , C\) does \(Y\) and \(D\) does \(Z\) ?
  2. Apply the Hungarian algorithm to the table, reducing rows first. Show all your working and explain each step. Give the resulting allocation and the total cost of the four jobs with this allocation.
  3. What problem does the Hungarian algorithm solve?
OCR D2 2011 January Q2
7 marks Moderate -0.5
2 Amir, Bex, Cerys and Duncan all have birthdays in January. To save money they have decided that they will each buy a present for just one of the others, so that each person buys one present and receives one present. Four slips of paper with their names on are put into a hat and each person chooses one of them. They do not tell the others whose name they have chosen and, fortunately, nobody chooses their own name. The table shows the cost, in \(\pounds\), of the present that each person would buy for each of the others.
To
\cline { 2 - 6 }AmirBexCerysDuncan
\multirow{4}{*}{From}Amir-152119
\cline { 2 - 6 }Bex20-1614
\cline { 2 - 6 }Cerys2512-16
\cline { 2 - 6 }Duncan241018-
\cline { 2 - 6 }
\cline { 2 - 6 }
As it happens, the names are chosen in such a way that the total cost of the presents is minimised.
Assign the cost \(\pounds 25\) to each of the missing entries in the table and then apply the Hungarian algorithm, reducing rows first, to find which name each person chose.
OCR D2 2014 June Q3
13 marks Moderate -0.3
3 Each of five jobs is to be allocated to one of five workers, and each worker will have one job. The table shows the cost, in \(\pounds\), of using each worker on each job. It is required to find the allocation for which the total cost is minimised. Worker \begin{table}[h]
\captionsetup{labelformat=empty} \caption{Job}
PlasteringRewiringShelvingTilingUpholstery
Gill2550344025
Harry3642484445
Ivy2750454226
James4046284550
Kelly3448345040
\end{table}
  1. Construct a reduced cost matrix by first reducing rows and then reducing columns. Cross through the 0's in your reduced cost matrix using the least possible number of horizontal or vertical lines. [Try to ensure that the values in your table can still be read.]
  2. Augment your reduced cost matrix and hence find a minimum cost allocation. Write a list showing which job should be given to which worker for your minimum cost allocation, and calculate the total cost in this case. Gill decides that she does not like the job she has been allocated and increases her cost for this job by \(\pounds 100\). New minimum cost allocations can be found, each allocation costing just \(\pounds 1\) more than the minimum cost allocation found in part (ii).
  3. Use the grid in your answer book to show the positions of the 0 's and 1 's in the augmented reduced cost matrix from part (ii). Hence find three allocations, each costing just \(\pounds 1\) more than the minimum cost allocation found in part (ii) and with Gill having a different job to the one allocated in part (ii). [5]
Edexcel D2 Q5
13 marks Moderate -0.3
5. A construction company has three teams of workers available, each of which is to be assigned to one of four jobs at a site. The following table shows the estimated cost, in tens of pounds, of each team doing each job:
WindowsConservatoryDoorsGreenhouse
Team A2780881
Team B2860571
Team C3090773
Use the Hungarian algorithm to find an allocation of jobs which will minimise the total cost. Show the state of the table after each stage in the algorithm and state the cost of the final assignment.
(13 marks)
Edexcel D2 Q3
7 marks Moderate -0.3
3. Whilst Clive is in hospital, four of his friends decide to redecorate his lounge as a welcomehome surprise. They divide the work to be done into four jobs which must be completed in the following order:
  • strip the wallpaper,
  • paint the woodwork and ceiling,
  • hang the new wallpaper,
  • replace the fittings and tidy up.
The table below shows the time, in hours, that each of the friends is likely to take to complete each job.
AliceBhavinCarlDieter
Strip wallpaper5354
Paint7564
Hang wallpaper8476
Replace fittings5323
As they do not know how long Clive will be in hospital his friends wish to complete the redecoration in the shortest possible total time.
  1. Use the Hungarian method to obtain the optimal allocation of the jobs, showing the state of the table after each stage in the algorithm.
    (6 marks)
  2. Hence, find the minimum time in which the friends can redecorate the lounge.
    (1 mark)
Edexcel D2 Q3
10 marks Moderate -0.5
3. Four people are contributing to the entertainment section of an email magazine. For one issue reviews are required for a film, a musical, a ballet and a concert such that each person reviews one show. The people in charge of the magazine will pay each person's expenses and the cost, in pounds, for each reviewer to attend each show are given below.
FilmMusicalBalletConcert
Andrew5201218
Betty6181516
Carlos421915
Davina5161113
Use the Hungarian algorithm to find an optimal assignment which minimises the total cost. State the total cost of this allocation.
(10 marks)
Edexcel FD2 AS 2018 June Q1
5 marks Moderate -0.5
  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.
\cline { 2 - 5 } \multicolumn{1}{c|}{}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.
AQA D2 2009 January Q1
12 marks Moderate -0.8
1 The times taken in minutes for five people, \(\mathrm { P } , \mathrm { Q } , \mathrm { R } , \mathrm { S }\) and T , to complete each of five different tasks are recorded in the table.
PQRST
Task 11720191717
Task 21918181815
Task 31316161412
Task 41313151313
Task 51011121413
Using the Hungarian algorithm, each of the five people is to be allocated to a different task so that the total time for completing the five tasks is minimised.
  1. By reducing the columns first and then the rows, show that the new table of values is as follows.
    35301
    64320
    35410
    32301
    00011
  2. Show that the zeros in the table in part (a) can be covered with three lines, and use adjustments to produce a table where five lines are required to cover the zeros.
  3. Hence find the two possible ways of allocating the five people to the five tasks so that the total completion time is minimised.
  4. Find the minimum total time for completing the five tasks.
AQA D2 2007 June Q2
12 marks Moderate -0.8
2 The daily costs, in pounds, for five managers A, B, C, D and E to travel to five different centres are recorded in the table below.
ABCDE
Centre 110118125
Centre 21151167
Centre 31287114
Centre 410914106
Centre 599789
Using the Hungarian algorithm, each of the five managers is to be allocated to a different centre so that the overall total travel cost is minimised.
  1. By reducing the rows first and then the columns, show that the new table of values is
    36360
    40602
    64360
    23830
    02002
  2. Show that the zeros in the table in part (a) can be covered with three lines and use adjustments to produce a table where five lines are required to cover the zeros.
  3. Hence find the two possible ways of allocating the five managers to the five centres with the least possible total travel cost.
  4. Find the value of this minimum daily total travel cost.
OCR D2 Q1
8 marks Moderate -0.8
  1. Whilst Clive is in hospital, four of his friends decide to redecorate his lounge as a welcomehome surprise. They divide the work to be done into four jobs which must be completed in the following order:
  • strip the wallpaper,
  • paint the woodwork and ceiling,
  • hang the new wallpaper,
  • replace the fittings and tidy up.
The table below shows the time, in hours, that each of the friends is likely to take to complete each job.
AliceBhavinCarlDieter
Strip wallpaper5354
Paint7564
Hang wallpaper8476
Replace fittings5323
As they do not know how long Clive will be in hospital his friends wish to complete the redecoration in the shortest possible total time.
  1. Use the Hungarian method to obtain the optimal allocation of the jobs, showing the state of the table after each stage in the algorithm.
  2. Hence find the minimum time in which the friends can redecorate the lounge.
OCR D2 Q3
9 marks Easy -1.2
3. Four people are contributing to the entertainment section of an email magazine. For one issue reviews are required for a film, a musical, a ballet and a concert such that each person reviews one show. The people in charge of the magazine will pay each person's expenses and the cost, in pounds, for each reviewer to attend each show are given below.
FilmMusicalBalletConcert
Andrew5201218
Betty6181516
Carlos421915
Davina5161113
Use the Hungarian algorithm to find an optimal assignment which minimises the total cost. State the total cost of this allocation.
Edexcel FD2 2022 June Q1
6 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 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
  1. 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.
  2. State the minimum total cost.
Edexcel D2 Q5
11 marks Moderate -0.5
An engineering company has 4 machines available and 4 jobs to be completed. Each machine is to be assigned to one job. The time, in hours, required by each machine to complete each job is shown in the table below.
Job 1Job 2Job 3Job 4
Machine 114587
Machine 221265
Machine 37839
Machine 424610
Use the Hungarian algorithm, \emph{reducing rows first}, to obtain the allocation of machines to jobs which minimises the total time required. State this minimum time. [11]