GATE CS 2006 · Graph Traversals (BFS & DFS)

MCQ · 1 mark · Problem PROG-GRPH-0105

Let T be a depth first search tree in a undirected graph G Vertices u and v are leaves of this tree T. The degrees of both u and v in G are at least 2. Which one of the following statements is true?
  1. A
    There must exist a vertex w adjacent to both u and v in G
  2. B
    There must exist a vertex w whose removal disconnects u and v in G
  3. C
    There must be exist a cycle in G containing u and v
  4. D
    There must exist a cycle in G containing u and all its neighbours in G

Solve it on GATE DA practice →More Graph Theory & Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1824/gate2006-48

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com