21,796 views
49 49 votes

An undirected graph $G$ has $n$ nodes. its adjacency matrix is given by an $n \times n$ square matrix whose (i) diagonal elements are 0’s and (ii) non-diagonal elements are 1’s. Which one of the following is TRUE?

  1. Graph $G$ has no minimum spanning tree (MST)

  2. Graph $G$ has unique MST of cost $n-1$

  3. Graph $G$ has multiple distinct MSTs, each of cost $n-1$

  4. Graph $G$ has multiple spanning trees of different costs

5 Answers

Best answer
62 62 votes
Graph $G$ has multiple distinct MSTs, each of cost  $n-1$

From the given data given graph is a complete graph with all edge weights $1$. A MST will contain $n-1$ edges . Hence weight of MST is $n-1$.

The graph will have multiple MST. In fact all spanning trees of the given graph wll be MSTs also since all edge weights are equal.
• edited by
6 6 votes
  1. since its a complete graph, its connected, and there will exist a MST, hence this statement is wrong.
  2. If you gotta have a unique cost of (n-1), your weights must be 1. Ofcourse this might be true, but won’t always be true if every weight is same and its = 1.
  3. Very much true.
  4. Very much false, if there are more than 2 msts existing for a graph, they will never have different costs, but always the same.
3 3 votes

Correct option is C, since there can be multiple spanning trees for given graph, but cost will be same

0 0 votes

 


Minimum Spanning Tree (MST) – Explanation Using Triangle (n = 3)

Given:

An undirected graph ( G ) with:

  • ( n ) nodes

  • Adjacency matrix:

    • Diagonal elements = 0 (no self-loops)

    • Non-diagonal elements = 1 (all nodes connected)

 This represents a complete graph where every pair of nodes is connected with weight = 1.


Example: Triangle Graph (n = 3)

Figure:

     A
    / \
   /   \
  B-----C

Adjacency Matrix:

     A  B  C
A → [0  1  1]
B → [1  0  1]
C → [1  1  0]

MST Concept:

  • A Minimum Spanning Tree connects all nodes

  • Has no cycles

  • Contains exactly ( n - 1 ) edges

For ( n = 3 ):
👉 MST must have 2 edges


All Possible MSTs:

MST 1:

Edges: A–B, B–C
Cost = 1 + 1 = 2

MST 2:

Edges: A–B, A–C
Cost = 2

MST 3:

Edges: A–C, B–C
Cost = 2


Observations:

  • Multiple MSTs exist

  • Each MST has same cost = 2

  • ( 2 = n - 1 )


Final Answer:

Graph G has multiple distinct MSTs, each of cost ( (n - 1) )


Key Insight (Exam Point):

  • Complete graph + equal edge weights
    Always gives:

  • Multiple MSTs

  • Each with cost ( n - 1 )


 

0 0 votes

Simplest Question, Let's read the Explanation in detail 

Answer:
Position:
Show:

Related questions

201 201 votes
9 answers 9 answers
79.5k
79.5k views
Kathleen asked Sep 22, 2014
79,474 views
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ALU op...
32 32 votes
3 answers 3 answers
15.6k
15.6k views
gatecse asked Sep 21, 2014
15,556 views
Let $f(x)$ be the continuous probability density function of a random variable $x$, the probability that $a < x \leq b$, is :$f(b-a)$$f(b) - f(a)$$\int\limits_a^b f(x) dx...
33 33 votes
5 answers 5 answers
9.3k
9.3k views
go_editor asked Nov 15, 2016
9,314 views
We are given $9$ tasks $T_1, T_2, \dots, T_9$. The execution of each task requires one unit of time. We can execute one task at a time. Each task $T_i$ has a profit $P_i$...
63 63 votes
6 answers 6 answers
12.0k
12.0k views
go_editor asked Nov 14, 2016
12,010 views
Let $s$ and $t$ be two vertices in a undirected graph $G=(V,E)$ having distinct positive edge weights. Let $[X,Y]$ be a partition of $V$ such that $s \in X$ and $t \in Y$...