GATE CSE 2021 Set 1 Q46: Diameter of the graph joining vertices within distance two
- Engineering Mathematics
- 2 marks
- MCQ
- −2/3 if wrong
Question
Let be an undirected unweighted connected graph. The diameter of is defined as:
Let be the adjacency matrix of .
Define graph on the same set of vertices with adjacency matrix , where
Which one of the following statements is true?
Try it: multiple choice: exactly one correct option
Show answer and explanation
Answer: A (official GATE 2021 final answer key)
Concept used: means a walk of length 2 from to , so joins all pairs at distance 1 or 2 in .
First step: A shortest path of length in can be covered two edges at a time in : how many edges does it need?
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2021 Set 1 CS question paper and final answer key, organised by IIT Bombay. Question paper · Answer key
More Engineering Mathematics PYQs
- 2026 Session 1 · Q11Pólya urn: equal red and blue after two steps
- 2026 Session 1 · Q124×4 binary matrices with even parity in every row and column
- 2026 Session 1 · Q13Maximum multiplicity of an eigenvalue of an n×n real matrix
- 2026 Session 1 · Q20Matrix with e2 in its null space: determinant and rank
- 2026 Session 1 · Q32Continuity at 0 of c1·e^x − c2·ln(1/x)
- 2026 Session 1 · Q46Extrema and smoothness of (|x|/2 − x)(x − |x|/2)