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 Computer Networks computer-networks depth-first-search breadth-first-search + – Manoja Rajalakshmi A 969 views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply Anu007 commented Nov 7, 2017 reply Follow flag In both traversal initial vertex matters. statements are wrongly typed. 0 0 replyShare utk0203 commented Nov 7, 2017 reply Follow flag Yes that what i was thinking but not for undirected graph right?? 0 0 replyShare Manoja Rajalakshmi A commented Nov 7, 2017 reply Follow flag How the selection of initial vertex matters for both dfs and bfs ? please explain As you said both traversal matters then option D may be the answer for this question. 0 0 replyShare codingo1234 commented Jul 19, 2018 reply Follow flag I think the edges would be same in both DFS and BFS tree i.e (N-1) becoz a tree with N vertices has (N-1) edges,so option (A) Is correct ,but the height of both DFS and BFS tree depends on starting vertex 0 0 replyShare Please log in or register to add a comment.