GATE CS 2021, set 1 · Question 46 · Engineering Mathematics · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer
Let G=(V,E) be an undirected unweighted connected graph. The diameter of G is defined as:
diam(G)=max(u,v∈ V){the length of shortest path between u and v}
Let M be the adjacency matrix of G.
Define graph G₂ on the same set of vertices with adjacency matrix N, where
Nᵢⱼ=1 if Mᵢⱼ>0 or Pᵢⱼ>0, where P=M²; 0 otherwise
Which one of the following statements is true?
- (A) diam(G₂)≤⌈ diam(G)/2⌉
- (B) ⌈ diam(G)/2⌉<diam(G₂)<diam(G)
- (C) diam(G₂)=diam(G)
- (D) diam(G)<diam(G₂)≤ 2 diam(G)
Answer
Answer (A)
Answer from the official GATE CS 2021 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes