Question
A person wants to visit some places. He starts from a vertex and then wants to visit every place connected to this vertex and so on. What algorithm he should use?
Answer: Option B
Was this answer helpful ?
This is the definition of the Breadth First Search. Exploring a node, then it's neighbors and so on.
Was this answer helpful ?
Submit Solution