topic badge
AustraliaVIC
VCE 12 General 2023

9.04 Bipartite networks

Worksheet
Bipartite networks
1

The principal of a school wants to allocate 3 teachers to 3 classes. The following bipartite graph shows all possible allocations of the teachers.

If each teacher can only take one class, construct tables showing all possible allocations.

2

Construct tables showing all possible allocations that would correspond to the following bipartite graphs:

a
b
3

For each given reduced table, construct a bipartite graph:

a
ABCD
M0403
N8910
O5037
P0400
b
123
A1700
B0027
C0130
c
A1A2A3A4A5
T11300180
T201201320
T324130010
T42901709
T516210511
d
X1X2X3X4
Y17010
Y20340
Y39004
Y40706
4

A car manufacturing company wishes to sign contracts with 5 raw material suppliers for their 5 factories. The cost (thousand \$\text{'s}) of supplying each factory with raw materials is shown in the table:

a

If the company can only sign one contract with each supplier, construct a bipartite graph to show how they should allocate the suppliers in order to minimise the cost.

b

Calculate the total minimum cost of all the contracts.

S_{1}S_{2}S_{3}S_{4}S_{5}
F_{1}250342264321234
F_{2}271323244311251
F_{3}251333255300237
F_{4}261310260341222
F_{5}280251260300250
5

Construct an adjacency matrix for the following network problems:

a

Three people, Elise, Poppy and Richard, are each to be given 1 task (T1, T2 or T3) to complete on their own.

Each person is able to complete the 3 tasks that are available in a set time. These times, in minutes, are shown on the network diagram given:

b

A physiotherapy company receives requests for 3 home visits (V1, V2 and V3) in the same area. There are 3 workers (W1, W2 and W3) in that area who are available.

The network shows the travel cost for each worker to get to each house in dollars:

c

The coach of a swim team wants to put together a medley relay team for a competition. He needs one swimmer for each of the four kinds of stroke: Backstroke \left(BA\right), Breaststroke \left(BR\right), Butterfly \left(BF\right) and Freestyle \left(FS \right).

The swimmers in the team (S1, S2, S3 and S4) and their average times, in minutes, for each stroke are shown on the network below:

d

Four people, Christie, Hannah, Amelia and Robert, are doing a group assignment together. For this assignment, they need to take photos of 4 landmarks (L1, L2, L3 and L4).

The group decides to split up and visit 1 landmark each. The travel distance between each person’s house and each landmark is shown on the network diagram below:

Hungarian algorithm (graph version)
6

Three friends, Adam, Ben and Christie, decide to have a picnic together. They each agree to buy either snacks, sandwiches or drinks from their local shopping centre and bring them to share at the picnic.

The table below shows the price of these products at each friend’s local shopping centre, in dollars:

Snacks (1)Sandwiches (2)Drinks (3)
Adam6.155.955.55
Ben7.759.258.25
Christie7.355.259.85
a

Construct a network diagram that correctly represents this data.

b

They decide that Adam will purchase the sandwiches, Ben will buy the snacks and Christie will get the drinks. Construct a network diagram that correctly displays this allocation.

c

Using this allocation, calculate the total cost of the picnic.

7

Four students, Aaron, Briana, Chris and David, have finished a group assignment and their teacher gives them 4 movie tickets as a reward. However, each ticket is for a different cinema.

The table below shows the distances between the student’s houses and the cinemas in kilometres:

Cinema 1Cinema 2Cinema 3Cinema 4
Aaron19.811.42.211.7
Briana7.43.119.612.5
Chris23.89.715.725.7
David3.26.15.515.3
a

Construct a network diagram that correctly displays this data.

b

They decide that Briana will go to Cinema 1, David will go to Cinema 2, Aaron will go to Cinema 3 and Chris will go to Cinema 4. Construct a network diagram that correctly displays this allocation.

c

Using this allocation, calculate the total distance that the students need to travel to use their cinema tickets.

8

A taxi service receives 4 requests for pick up at different locations in the city. There are 4 taxis available in the area which the operator can assign to pick up each of the passengers.

The table below shows how long it will take in minutes for the taxis to get to each of the passengers:

Passenger 1Passenger 2Passenger 3Passenger 4
Taxi A38161912
Taxi B17242730
Taxi C31163833
Taxi D49111230
a

Construct a network diagram that correctly displays this data.

b

The operator assigns Taxi A to pick up Passenger 4, Taxi B to pick up Passenger 1, Taxi C to pick up Passenger 3, and Taxi D to pick up Passenger 2. Construct a network diagram that correctly displays this allocation.

c

Using this allocation, calculate the total amount of time (in minutes) spent travelling to each of the passengers.

9

There are 4 elevators in an office building which has 13 levels. Bob, Avril, Elizabeth and Quentin are waiting for a lift on levels 8, 7, 1 and 6 respectively.

At the moment, Lift 1 is on level 3, Lift 2 is on level 1, Lift 3 is on level 9 and Lift 4 is on level 10. Complete the table showing the number of levels from each lift to each waiting person:

Elevator 1 (level 3)Elevator 2 (level 1)Elevator 3 (level 9)Elevator 4 (level 10)
Bob (level 8)
Avril (level 7)
Elizabeth (level 1)
Quentin (level 6)
10

There are 5 tasks that urgently need to be completed by an IT department. The IT manager wants to assign these tasks to 5 of their employees so that they are finished as soon as possible.

The table below shows the amount of time each employee is expected to take to complete each task, in hours:

Task 1Task 2Task 3Task 4Task 5
Person A9.51945.5
Person B8.53.532.55.5
Person C277.58.53
Person D478.534.5
Person E876.559.5
a

Construct a network diagram that correctly displays this data.

b

The manager decides to assign Person A to Task 4, Person B to Task 3, Person C to Task 1, Person D to Task 5, and Person E to Task 2. Construct a network diagram that correctly displays this allocation.

c

Using this allocation, calculate the total amount of time spent on these tasks.

11

A courier company needs to make multiple pick-ups across several stores.

The lengths of the roads (in \text{km}) linking these stores are shown in the diagram:

Adam, Ben and Caitlin are couriers who are working in the area and they have each just arrived at stores A, B, and C, respectively. They still need to make the pick-ups from stores X, Y and Z. Each courier can only visit one more store.

Construct a table to display the shortest distance from each courier to each remaining store.

Hungarian algorithm (matrix version)
12

For each of the following cost tables:

i

Perform the first row and column reduction of the Hungarian algorithm to the table.

ii

Give the final reduced table.

a
ABC
D101611
E111518
F15108
b
A_1A_2A_3A_4
B_128343329
B_226363831
B_321262834
B_440283329
13

Consider the following cost table:

a

Draw the table, after the first row and column reduction of the Hungarian Algorithm has been performed.

ABCD
E23192420
F36242919
G25242718
H33243624
b

Assuming we cross out zeros using three lines in the following way, draw the final reduced table.

14

Consider the following cost table:

Find the reduced form of the corresponding matrix using the Hungarian algorithm.

X_1X_2X_3X_4X_5
Y_1122160180110191
Y_2155157170170150
Y_3133145162151170
Y_4139171150143200
Y_5150154170160198
15

In a sports tournament, a team of 3 athletes, A, B, C, need to complete 3 different types of heats, D, E, F, in the shortest time possible. The following table represents the average time (in minutes) of each athlete in each type of heat:

a

If every athlete can only compete in one heat each, use the Hungarian algorithm to construct a bipartite graph which represents the optimum allocation for the team of athletes.

b

Calculate the minimum total time of the competitions.

Heat DHeat EHeat F
Athlete A487
Athlete B143
Athlete C926
16

A consultancy firm has four consultants, one in Sydney, one in Melbourne, one in Canberra and one in Brisbane. They need to send one consultant to jobs in each of Perth, Adelaide, Darwin and Cairns.

The following table shows the cost of the airplane ticket to send each consultant to each area:

PerthAdelaideDarwinCairns
Sydney370170270220
Melbourne320120290250
Canberra340150260210
Brisbane310200220190
a

Using the Hungarian algorithm, construct an allocation that minimises travel costs.

b

Calculate the minimum travel cost possible.

17

A fashion company owns 4 distribution centres in a certain area. 4 retail stores want to start obtaining merchandise from the company. The following table shows the cost of distribution from each centre to each store (in hundreds of dollars):

a

Using the Hungarian algorithm, construct bipartite graphs, which represents the allocations that results in the minimum cost.

b

Calculate the minimum cost of distribution.

Store WStore XStore YStore Z
Centre A5124
Centre B4396
Centre C6457
Centre D2731
18

A construction company has five cranes that need to be sent to five construction sites. The following table displays the distance (kilometres) between each crane and each construction site:

a

In order to save time and money, the construction company wants to allocate the cranes such that the total distance travelled is minimal.

Use the Hungarian Algorithm to construct an allocation that achieves their goal.

b

Calculate the minimum total distance traveled.

Site 1Site 2Site 3Site 4Site 5
Crane 12517192832
Crane 21622193428
Crane 32227141129
Crane 42026111825
Crane 53829341525
19

A limousine company has to dispatch 3 cars to 3 different locations. The table displays the traveling cost (in dollars) of each car to each area:

a

Use the Hungarian algorithm to find the allocation which costs the least.

b

Calculate the minimum cost of travel.

Car 1Car 2Car 3
Location 1293722
Location 2322726
Location 3333425
20

The council needs to assign 4 engineers to 4 projects. Each engineer supplied the council with their minimum cost for each project. The costs (in thousand dollars) are listed in the table:

a

If each engineer can only handle one project, and Project 4 has specifically requested Engineer 1, how should the council allocate the other engineers in order to get the minimum cost? Use the Hungarian algorithm to complete the allocation.

b

Calculate the minimum cost of all the projects.

P_{1}P_{2}P_{3}P_{4}
E_{1}84696974
E_{2}29794959
E_{3}119898499
E_{4}3910489109
21

The fire department needs to dispatch 5 trucks from different buildings to 5 fire locations. The table shows the time (in minutes) for each fire truck to arrive at each fire location:

a

Use the Hungarian algorithm to determine the allocation which results in the fastest time.

b

Construct a network that represents the assignment for the minimised time.

F_{1}F_{2}F_{3}F_{4}F_{5}
T_{1}2332242517
T_{2}3224271621
T_{3}2221192325
T_{4}2726242816
T_{5}2422212319
22

A phone company has 4 job vacancies. After performing all the interviews, they have 4 top candidates. Each candidate proposed their expected wages (\$\text{/hr}) for each job. The following table shows the wage of each candidate for each job:

a

If each candidate can only do one job, and the second candidate will only do the first job, how should the phone company allocate the other candidates in order to minimise cost?

b

Calculate the minimum cost of distribution.

c

Construct a network that represents the optimum assignment.

J_{1}J_{2}J_{3}J_{4}
C_{1}23282531
C_{2}18212620
C_{3}22202427
C_{4}28262727
Sign up to access Worksheet
Get full access to our content with a Mathspace account

Outcomes

U4.AoS2.6

construct a transition matrix from a transition diagram or a written description and vice versa

U4.AoS2.13

recognise the matching problem and solve it by inspection or using the Hungarian algorithm for larger scale problems

What is Mathspace

About Mathspace