Which of the following is not an application of Depth First Search?

Which of the following is not an application of Depth First Search?
A. For generating topological sort of a graph
B. For generating Strongly Connected Components of a directed graph
C. Detecting cycles in the graph
D. Peer to Peer Networks
 
Answer: D
Explanation: Depth First Search is used in the Generation of topological sorting, Strongly Connected Components of a directed graph and to detect cycles in the graph. Breadth First Search is used in peer to peer networks to find all neighbourhood nodes.
 

Tìm kiếm

Back
Top