Question: Given a graph: a) Represent the given graph by using an adjacency matrix. (4 marks) b) Draw the Depth First Search Tree for this graph,
Given a graph:
a)
Represent the given graph by using an adjacency matrix.
(4 marks)
b)
Draw the Depth First Search Tree for this graph, starting at Vertex 3.
(6 marks)
c)
Find the Shortest Path from vertex 2 to all other vertexes of the given adjacency matrix.
What is the cost of each shortest path? Show each step in detail.
(6 marks)
d)
Find the Minimal Cost Spanning Tree. Show each step in detail. What is the cost of the
Minimal Cost Spanning Tree?
(6 marks)

5. [22 marks Given a graph: 12 2 15 3 3 3 9 a) Represent the given graph by using an adjacency matrix. (4 marks) b) Draw the Depth First Search Tree for this graph, starting at Vertex 3. (6 marks) c) Find the Shortest Path from vertex 2 to all other vertexes of the given adjacency matrix. What is the cost of each shortest path? Show each step in detail. (6 marks) d) Find the Minimal Cost Spanning Tree. Show each step in detail. What is the cost of the Minimal Cost Spanning Tree? (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
