D1 June 2008 Q4
4.

(a) State two differences between Kruskal’s algorithm and Prim’s algorithm for finding a minimum spanning tree. (2)
(b) Listing the arcs in the order that you consider them, find a minimum spanning tree for the network in Figure 4, using
(i) Prim’s algorithm,
(ii) Kruskal’s algorithm. (6)
| Scheme | Marks |
|---|---|
e.g.
| B2, 1, 0 |
| (2) |
Notes
(a) 1B1: Generous one correct difference. If bod give B1
2B1: Generous two distinct, correct differences.
| Scheme | Marks |
|---|---|
| (i) e.g. AC, CF, FD, DE, DG, AB. | M1, A1, A1 |
| (3) | |
| (ii) CF, DE, DF, not CD, not EF, DG, not FG, not EG, AC, not AD, AB. [18, 19, 20, not 21, not 21 , 22 , not 23, not 24, 25, not 26, 27] | M1, A1, A1 |
| (3) | |
| (8 marks) |
Notes
(b) 1M1: Prim’s algorithm – first three arcs chosen correctly, in order, or first four nodes chosen correctly, in order.
1A1: First five arcs chosen correctly; all 7 nodes chosen correctly, in order.
2A1: All correct and arcs chosen in correct order.
2M1: Kruskal’s algorithm – first 4 arcs selected chosen correctly.
1A1: All six non-rejected arcs chosen correctly.
2A1: All rejections correct and in correct order and at correct time.
