OCR Further Discrete AS Specimen — Question 7

Exam BoardOCR
ModuleFurther Discrete AS (Further Discrete AS)
SessionSpecimen
TopicGroups

7 A complete graph on five vertices is weighted to form a network, as given in the weighted matrix below.
ABCDE
\cline { 2 - 6 } A-9542
\cline { 2 - 6 } B9-757
\cline { 2 - 6 } C57-68
\cline { 2 - 6 } D456-5
\cline { 2 - 6 } E2785-
\cline { 2 - 6 }
\cline { 2 - 6 }
  1. Apply Prim's algorithm to the copy of this weighted matrix in the Printed Answer Booklet to construct a minimum spanning tree for the five vertices.
    Draw your minimum spanning tree, stating the order in which you built the tree and giving its total weight.
  2. (a) Using only the arcs in the minimum spanning tree, which vertex should be chosen to find the smallest total of the weights of the paths from that vertex to each of the other vertices?
    (b) State the minimum total for this vertex.
  3. Show that the total number of comparisons needed to find a minimum spanning tree for a \(5 \times 5\) matrix is 16 .
  4. If a computer takes 4 seconds to find a minimum spanning tree for a network with 100 vertices, how long would it take to find a minimum spanning tree for a network with 500 vertices?