edited by
21,132 views
90 votes
90 votes

Let $T$ be a depth first search tree in an undirected graph $G$. Vertices $u$ and $ν$ are leaves of this tree $T$. The degrees of both $u$ and $ν$ in $G$ are at least $2$. which one of the following statements is true?

  1. There must exist a vertex $w$ adjacent to both $u$ and $ν$ in $G$
  2. There must exist a vertex $w$ whose removal disconnects $u$ and $ν$ in $G$
  3. There must exist a cycle in $G$ containing $u$ and $ν$
  4. There must exist a cycle in $G$ containing $u$ and all its neighbours in $G$
edited by

12 Answers

9 votes
9 votes

By option Elimination :-

edited by
5 votes
5 votes

I also have doubt on this , may be helpful to remove some option .otherwise c,d is answer

3 votes
3 votes
 

according to me this may be the counter example for options a,b,c

start DFS traversal from b or f

0 votes
0 votes
Here u and v are leaves in DFS tree. But u and v have degree >=2 in the original graph.

So now if u or v connects to some unvisited node in the graph, they wont be leaves in the DFS tree, so to have degree>=2 they should be connected to already some visited nodes, and hence u and v both will form cycle with their neighbors. But it is not necessary that they both are contained in the same cycle.
Answer:

Related questions

59 votes
59 votes
7 answers
2
Rucha Shelke asked Sep 16, 2014
31,598 views
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is:QueueStackHeapB-Tree