_______ is a method used to traverse a graph or tree data structure.

  • Breadth-First Search (BFS)
  • Depth-First Search (DFS)
  • Dijkstra's Algorithm
  • QuickSort
The method used to traverse a graph or tree data structure is Depth-First Search (DFS). 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 *