D1 June 2007 Q5

EdexcelOld spec7 marksMinimum Spanning Trees

5.

MABCDE
M–215170290210305
A215–275100217214
B170275–267230200
C290100267–180220
D210217230180–245
E305214200220245–

The table shows the cost, in pounds, of linking five automatic alarm sensors, A,B,C,D and E, and the main reception, M.

(a) Use Prim’s algorithm, starting from M, to find a minimum spanning tree for this table of costs. You must list the arcs that form your tree in the order that they are selected. (3)
(b) Draw your tree using the vertices given in Diagram 1 in the answer book. (1)
(c) Find the total weight of your tree. (1)
(d) Explain why it is not necessary to check for cycles when using Prim’s algorithm. (2)