Professional Documents
Culture Documents
1b. Find the number of distinct walks of length 4 beginning and ending at A. [3 marks]
1c. Starting at A, use Prim’s algorithm to find and draw the minimum [5 marks]
spanning tree for G.
Your solution should indicate clearly the way in which the tree is constructed.
Use Prim’s algorithms to find a minimal spanning tree, starting at J. Draw the tree,
and find its total weight.
Let G be a weighted graph with 6 vertices L, M, N, P, Q, and R. The weight of the
edges joining the vertices is given in the table below:
For example the weight of the edge joining the vertices L and N is 3.
3a. Use Prim’s algorithm to draw a minimum spanning tree starting at M. [5 marks]
A cable television company wishes to connect the six towns placing cables along
the road system.
Use Kruskal’s algorithm to find the minimum length of cable needed to connect
the six towns.
A canal system divides a city into six land masses connected by fifteen bridges, as
shown in the diagram below.
6a. State what feature of G ensures that G has an Eulerian trail. [1 mark]
6b. State what feature of G ensures that G does not have an Eulerian circuit. [1 mark]
6d. Starting and finishing at B, find a solution to the Chinese postman [3 marks]
problem for G.
7g. Which pairs of distinct vertices have more than 15 walks of length 3 [4 marks]
between them?
A driver needs to make deliveries to five shops A, B, C, D and E. The driver
starts and finishes his journey at the warehouse W . The driver wants to find the
shortest route to visit all the shops and return to the warehouse. The distances, in
kilometres, between the locations are given in the following table.
8a. By deleting W , use the deleted vertex algorithm to find a lower bound [6 marks]
for the length of a route that visits every shop, starting and finishing at
W.
8b. Starting from W , use the nearest-neighbour algorithm to find a route [4 marks]
which gives an upper bound for this problem and calculate its length.
9a. Find a minimum spanning tree for the subgraph obtained by deleting A [3 marks]
from G.
9b. Hence, find a lower bound for the travelling salesman problem for G. [3 marks]
9c. Give an upper bound for the travelling salesman problem for the graph [2 marks]
above.
© International Baccalaureate Organization 2021
International Baccalaureate® - Baccalauréat International® - Bachillerato Internacional®