BFS guarantees finding the shortest path in an unweighted graph due to its _______ approach.

  • Breadth-First
  • Dynamic
  • Greedy
  • Systematic
BFS guarantees finding the shortest path in an unweighted graph due to its Breadth-First approach. This means it explores all nodes at the current depth before moving on to nodes at the next depth level, ensuring that the shortest path is found first.
Add your answer
Loading...

Leave a comment

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