retagged by
3,753 views
4 votes
4 votes

​​​​Let $G$ be a directed graph and $T$ a depth first search $\text{(DFS)}$ spanning tree in $G$ that is rooted at a vertex $v$. Suppose $T$ is also a breadth first search $\text{(BFS)}$ tree in $G$, rooted at $v$. Which of the following statements is/are TRUE for every such graph $G$ and tree $T$?

  1. There are no back-edges in $G$ with respect to the tree $T$
  2. There are no cross-edges in $G$ with respect to the tree $T$
  3. There are no forward-edge in $G$ with respect to the tree $T$
  4. The only edges in $G$ are the edges in $T$ 
retagged by

2 Answers

6 votes
6 votes

1. Back edge possible

2. cross edge possible

3. all edge of G not in T

Forward edge cant be there else it wont give same BFS and DFS 

Ans must be option C which always true 

0 votes
0 votes
Cross Edges can be present.
edited by
Answer:

Related questions

2.2k
views
2 answers
1 votes
Arjun asked Feb 16
2,249 views
The number of edges present in the forest generated by the $\text{DFS}$ traversal of an undirected graph $G$ with $100$ vertices is $40$. The number of connected componen...
230
views
1 answers
1 votes
GO Classes asked Apr 30, 2023
230 views
Let $\text{G = (V, E)}$ be a simple undirected graph, and $s$ be a particular vertex in it called the source. For $x \in \text{V},$ let $d(x)$ denote the shortest distanc...
4.1k
views
2 answers
4 votes
Arjun asked Feb 16
4,103 views
Which of the following statements about a relation $\mathbf{R}$ in first normal form $\text{(1NF)}$ is/are TRUE?$\mathbf{R}$ can have a multi-attribute key$\mathbf{R}$ ca...