Let be any undirected graph with positive edge weights, and be a minimum spanning tree of . For any two vertices, and , let and be the shortest distances between and in and , respectively. Which ONE of the options is CORRECT for all possible and ?
View worked solution
Answer: B
To find the correct relationship between and , let us analyze the properties of the graph and its minimum spanning tree :
- Subgraph Relationship: By definition, a spanning tree is a subgraph of (). This means every edge present in is also present in , and any path between two vertices in is also a valid path in .
- Shortest Path Definition:
- is the length of the unique path between and in .
- is the length of the shortest path between and in , which is computed by taking the minimum weight over all possible paths between and in .
Since the path in is just one of the many possible paths available in , the shortest path in can never be longer than the path in . Therefore, we must have:
Counterexample for other options:
Consider a triangle graph with vertices and edge weights:
The minimum spanning tree consists of the edges and with a total weight of .
- For and :
- In , the shortest path is the direct edge , so .
- In , the unique path is , so .
- Here, , which disproves options A and C.
- For and :
- In , .
- In , .
- Here, , which disproves option D.
Thus, only option B is correct for all possible graphs and vertices.
Free practice · Your answers on this page are not saved.
