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