jmaths
IB Mathematics: Applications and Interpretation HL · AHL 1: Graph Theory · AHL 1.9
Name Date
Minimum spanning trees: Prim's algorithm Problem set A
Show each edge you add, in order, and the total weight. No calculator is needed.
Difficulty: first skills applying them stretch
Skills
-
Use Prim's algorithm, starting at D, on this graph. List the edges in the order they are added and find the total weight of the minimum spanning tree.
-
Use Prim's algorithm, starting at G, to find a minimum spanning tree of this graph. Write the edges in the order you add them.
-
The table gives the weights of the edges of a graph. A dash means there is no edge. Use Prim's algorithm, starting at A, to find a minimum spanning tree. List the edges in order, draw the tree and state its total weight.
-
Use Prim's algorithm on this weighted adjacency table, starting at D. Write the edges in the order they are added and find the total weight of the tree.
In context
-
The table shows the distances, in km, between six villages A to F. A water company must connect all six villages by pipe so that every village is joined to the others. Find the least total length of pipe.
-
A farm has seven buildings A to G. The graph shows the possible pipe routes, with lengths in units of 10 m. The pipe network must join all seven buildings with least total length.
- (a) Use Prim's algorithm from A and state the total length of the network in metres.
- (b) Pipe costs £350 for each 10 m. Find the total cost.
-
The table gives the distances, in km, between six towns A to F. A rail company wants to join all six towns with track of least total length.
- (a) Use Prim's algorithm from B. List the edges in the order added.
- (b) State the least total length.
Stretch
-
The table gives the weights of the edges of a graph.
- (a) Use Prim's algorithm from A. List the edges in order and state the total weight.
- (b) Do the same from F.
- (c) What do you notice about the two trees? Explain.
-
The graph shows the possible cable routes between the vertices, with lengths in km. A minimum spanning tree is built from A. Edge AC (length 4) then becomes unusable.
- (a) Find the total weight of the original minimum spanning tree.
- (b) Use Prim's algorithm from A without edge AC. State the new total weight and how much longer it is.
jmaths.xyz · AI HL · AHL 1.9 Minimum spanning trees: Prim's algorithm