Which of the following is application of Breath First Search on the graph?
(A) Finding diameter of the graph
(B) Finding bipartite graph
(C) Both (a) and (b)
(D) None of the above
Explanation: BFS is used to Find the diameter of the graph and to test whether a graph is bipartite or not. BFS has many other applications also.
Option (C) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.