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?

🎲 Try a Random Question  |  Total Questions in Quiz: 45  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Data Structures & Algorithms Practice Test: Graph Search — practice the complete quiz, review flashcards, or try a random question.

Quiz on depth first search, non recursive DFS, branch and bound, breadth first search and best first search. A graph search is an algorithm for traversing or searching tree or graph data structures. It starts at the tree's root (or some arbitrary node of a graph, sometimes referred to as a 'search key'), and explores as far as possible along each branch before backtracking. Graph search algorithms are used to solve many problems in computer science, including: Finding the shortest path between two nodes in a graph Finding all the nodes in a graph that are connected to a given... Show more

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?