The ____ algorithm is used to traverse all the vertices of a graph in depthward motion.

  • A*
  • Breadth-First Search (BFS)
  • Depth-First Search (DFS)
  • Dijkstra's
The Depth-First Search (DFS) algorithm is used to traverse all the vertices of a graph in a depthward motion. It explores as far as possible along each branch before backtracking.
Add your answer
Loading...

Leave a comment

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