WDM11Topic 1.23 questions
Graph terminology, minimum spanning trees (Prim and Kruskal) and Dijkstra's algorithm.
Specification points for this topic are coming soon.
Get a plain-language explanation, a worked example and the usual mistake.
Sign in to get a plain-language explanation of any specification point.
Original practice questions written in the style of the exam.
The table lists the arcs of a network and their weights.
| Arc | AB | AC | AD | BC | BE | CD | CE | CF | DF | DG | EF | EG | FG |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | 8 | 5 | 12 | 4 | 7 | 6 | 11 | 10 | 3 | 17 | 12 | 14 | 13 |
Use Kruskal's algorithm to find a minimum spanning tree. List the arcs in the order you consider them, stating whether each is accepted or rejected, and give the total weight of the tree.
The table lists the arcs of a network and their weights. Use Dijkstra's algorithm to find the shortest route from to . State the order in which vertices are given permanent labels, the final value at each vertex, and the shortest route and its length.
| Arc | AB | AC | AD | BC | BE | CD | CE | CF | DF | DG | EF | EG | FG |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Weight | 8 | 5 | 12 | 4 | 7 | 6 | 11 | 10 | 3 | 17 | 12 | 14 | 13 |