An undirected graph G has n nodes. Its adjacency matrix is given by an...
Explanation:
An undirected graph G with n nodes and adjacency matrix is given by an n x n square matrix whose (i) diagonal elements are 0s and (ii) non-diagonal elements are 1s.
To understand the solution, we need to understand the properties of an MST.
Properties of MST:
- An MST is a tree that connects all the vertices of the graph with the minimum possible total edge weight.
- An MST does not contain any cycles.
- An MST has n-1 edges, where n is the number of vertices in the graph.
Now let's analyze the given options:
a) Graph G has no minimum spanning tree (MST)
This option is incorrect because every connected graph has at least one spanning tree, and an MST is a spanning tree with the minimum possible total edge weight.
b) Graph G has a unique MST of cost n-1
This option is incorrect because the given graph has non-diagonal elements as 1s, which means every node is connected to every other node. Therefore, there can be multiple MSTs.
c) Graph G has multiple distinct MSTs, each of cost n-1
This option is correct because of the following reasons:
- The given graph is connected, so it has at least one spanning tree.
- All the non-diagonal elements of the adjacency matrix are 1s, which means every node is connected to every other node.
- As a result, there can be multiple MSTs, each of cost n-1, since all the edges have the same weight.
d) Graph G has multiple spanning trees of different costs
This option is incorrect because all the edges in the given graph have the same weight, i.e., 1. Therefore, all the MSTs will have the same cost, which is n-1.
Hence, the correct answer is option (c).
An undirected graph G has n nodes. Its adjacency matrix is given by an...
An undirect graph g has node
n into n square matrices whose digonal
0,s and is graph g has multiple distinct MSTs, each of cost n-1 ans
To make sure you are not studying endlessly, EduRev has designed Computer Science Engineering (CSE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Computer Science Engineering (CSE).