969 views
0 0 votes

Let G is a graph with n vertices and m edges. Consider following statements : i. In DFS traversal, number of tree edges produced is independent of selection of starting vertex. ii. In BFS traversal, number of tree edges produced is independent of selection of starting vertex. iii. In DFS traversal, number of tree edges produced is dependent of selection of starting vertex. iv. In DFS traversal, number of tree edges produced is dependent of selection of starting vertex.

(A) Only statements (i) and (ii) are correct

(B) Only statements (ii) and (iii) are correct
(C) Statements (ii) and (iv) both are wrong
(D) None of these

Please log in or register to answer this question.

Position:
Show:

Related questions

5 5 votes
2 2 answers
846
846 views
gatecse asked Feb 23
846 views
Consider a directed graph $G=(V, E)$, where $V$ is the finite set of vertices and $E$ is the set of directed edges between the vertices. $G$ may contain cycles but there ...
34 34 votes
4 4 answers
14.7k
14.7k views
Arjun asked Feb 27, 2025
14,733 views
​​​​Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph $G$ is/are TRUE?A DFS tree of $G$ is...
17 17 votes
8 8 answers
6.7k
6.7k views
Arjun asked Feb 16, 2024
6,695 views
​​​​​Consider a state space where the start state is number $1$. The successor function for the state numbered $n$ returns two states numbered $n+1$ and $n+2$. Assume tha...