- IB
- Question Type 1: Finding minimum spanning trees by applying Prim's algorithm
This question assesses the application of Prim's algorithm to find a Minimum Spanning Tree (MST) for a weighted undirected graph and the calculation of its total weight. Students are expected to show the step-by-step selection of vertices and edges.
A road planner has five towns with possible roads and construction costs as follows: , , , , , , , .
Use Prim’s algorithm starting at town to find the edges of the minimum spanning tree and its total cost.
[6]A network of six sensors forms a weighted graph: edges and distances (in metres) are , , , , , , , , . Find the minimum spanning tree using Kruskal’s algorithm and compute its total length.
[4]A rail network must connect five cities . Possible link costs are: , , , , , , .
Determine the minimum spanning tree and total cost using Kruskal’s method.
[6]Consider the complete graph with vertices and edge weights given by:
Find the edges of the minimum spanning tree and calculate its total weight.
[3]A telecommunications company must connect five relay stations . The cost (in thousands) of laying cable between each pair is given: .
Model this as a graph and determine the minimum cost to connect all stations using Kruskal’s algorithm.
[5]In a project to connect remote outposts , the following possible connections and costs (units) exist: , , , , , .
Use Prim’s algorithm starting at to find the minimum spanning tree and its total cost.
[4]The question requires the application of Kruskal's algorithm to find the Minimum Spanning Tree (MST) for a connected weighted graph representing an office network. Students must demonstrate knowledge of sorting edges, selecting the lowest-weight edges without forming cycles, and calculating the total weight of the resulting tree.
A company needs to lay fibre between seven offices, labelled through . The connection costs are given by the weighted edges:
Use Kruskal’s algorithm to find the minimum spanning tree and its total cost.
[5]A utility company plans to connect four substations with cables. The cost of connecting each pair is given: .
Illustrate the graph and determine the minimum spanning tree using Prim’s algorithm, starting at .
[6]In designing a countryside electrical grid, five farms must be connected with minimal wiring cost. The terrain dictates the following possible connections: , , , , , . Use Kruskal’s algorithm to find the minimum wiring cost.
[6]Use Prim’s algorithm, starting at vertex , on the graph represented by the following adjacency matrix to find a minimum spanning tree and its total weight:
[4]Given the weighted graph with vertices and edges with weights , , , , , and , use Kruskal’s algorithm to find a minimum spanning tree and its total weight.
[6]