Sail E0 Webinar
Question
A person wants to visit some places. He starts from a vertex and then wants to visit every vertex till it finishes from one vertex, backtracks and then explore other vertex from same vertex. What algorithm he should use?
Options:
A .  Depth First Search
B .  Breadth First Search
C .  Trim's algorithm
D .  None of the mentioned
Answer: Option A


This is the definition of the Depth First Search. Exploring a node, then aggressively finding nodes till it is not able to find any node.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers