Which of the following best describes how the Breadth First Search (BFS)…

2025

Which of the following best describes how the Breadth First Search (BFS) algorithm traverses a graph?

Answer: C. It visits all nodes at the current level before moving on to nodes at the next level.

  1. A.

    It explores nodes in no particular order.

  2. B.

    It goes as deep as possible along each branch before backtracking.

  3. C.

    It visits all nodes at the current level before moving on to nodes at the next level.

  4. D.

    It always selects the edge with the lowest cost first.

Attempted by 385 students.

Show answer & explanation

Correct answer: C

Explore the full course: Niacl Ao It Specialist

Loading lesson…