Which of the following is/are correct ?
Note – This question is multiple select questions (MSQ).
(A) BFS is vertex-based algorithm while DFS is an edge-based algorithm.
(B) Memory space is efficiently utilized in DFS while space utilization in BFS is not effective.
(C) BFS is optimal algorithm while DFS is not optimal.
(D) None of these
Answer: (A) (B) (C)
Explanation: Option (A), (B), and (C) are correct.
Attention reader! Don’t stop learning now. Learn all GATE CS concepts with Free Live Classes on our youtube channel.