edited by
13,838 views
48 48 votes

If all the edge weights of an undirected graph are positive, then any subset of edges that connects all the vertices and has minimum total weight is a

  1. Hamiltonian cycle
  2. grid
  3. hypercube
  4. tree

8 Answers

Best answer
68 68 votes
  1. Hamiltonian cycle $\Rightarrow$ This is a cycle. A cycle will not only connect all vertices, it will have $1$ extra edge than necessary. So I can just remove that edge & get better cost "subset of edges" which connect all vertices. So, this is FALSE.
  2. grid $\Rightarrow$ A grid graph has cycles and so this is FALSE for same reason as option A.
  3. Hypercube $\Rightarrow$ A hypercube graph also has cycles. So, this also is FALSE.
  4. Tree $\Rightarrow$ This is answer. We need to have Minimum spanning tree to be exact.
    "If all the edge weights of an undirected graph are positive, then any subset of edges that connects all the vertices and has minimum total weight is a Minimum Spanning Tree". !

(D) is TRUE.

edited by
12 12 votes

Target : Get a subset of edges such that weight is minimum and it connects all vertices.

Since, all weights are positive and we need a subset with minimum weight, then we should avoid cycles, coz we should have only a single path between any pair of vertices in the graph. Having a cycle will unnecessarily add up edge weight and will do no help in accomplishing the target.

This rules out all options A, B and C.

Hence, answer = option D

3 3 votes

A minimum spanning tree is a spanning tree of a connected, undirected graph. It connects all the vertices together with the minimal total weighting for its edges.

answer is D

1 1 vote

The correct answer is Tree as explained above.

Now some people may get confused regarding the correctness of this option as a tree may not necessarily connect all the vertices, which is true indeed. However, here we are not asked about the definition of tree. We are just given a scenario where we have a subset of edges that connects all the vertices and has minimum total weight. This is clearly a Minimum Spanning Tree and not any tree in general. However, an MST is still a tree (with some special properties) and so among the given options, Tree is correct. 

Sometimes questions like this are given, where none of the options are 100% correct, so we have to choose the option which is closest to being correct.

Answer:
Position:
Show:

Related questions

78 78 votes
9 answers 9 answers
20.8k
20.8k views
Ishrat Jahan asked Oct 31, 2014
20,768 views
Consider the undirected graph $G$ defined as follows. The vertices of $G$ are bit strings of length $n$. We have an edge between vertex $u$ and vertex $v$ if and only if ...
52 52 votes
3 answers 3 answers
14.1k
14.1k views
Ishrat Jahan asked Nov 1, 2014
14,076 views
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If only the root node does not satisfy...
25 25 votes
1 answers 1 answer
9.6k
9.6k views
Ishrat Jahan asked Oct 31, 2014
9,591 views
Which of the following sequences of array elements forms a heap?$\{23, 17, 14, 6, 13, 10, 1, 12, 7, 5\}$$\{23, 17, 14, 6, 13, 10, 1, 5, 7, 12\}$$\{23, 17, 14, 7, 13, 10, ...