Linked answer questions
Statement for Linked Answer Questions 54 and 55:
An undirected graph contains () nodes named . Two nodes are connected if and only if . Each edge is assigned a weight . A sample graph with is shown below.
Shared with question 54.
Question
The length of the path from to in the MST of previous question with is
Official answer and solution
- Official answer
- C
- From
- Official GATE 2011 answer key
Solution
Trace the unique path connecting vertex v5 and vertex v6 in the minimum spanning tree structure determined in Q54.
- In the MST for , the tree edges form two interlaced chains connected by a single bridging edge:
- Odd chain: via edges for odd .
- Even chain: via edges for even .
- Bridging edge: with weight 3.
- Because the tree contains no cycles, the unique simple path between (on the odd chain) and (on the even chain) must pass through the bridging edge :
- Calculate the weight of each edge along this path:
- Edge : weight
- Edge : weight
- Edge : weight
- Edge : weight
- Edge : weight
- Sum the weights along the path:
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2011 Computer Science and Information Technology (CS)
- Question
- 55 of 65, printed as CS Q.55
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.