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?

  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 86 students.

Show answer & explanation

Correct answer: C

This option correctly describes the level-by-level traversal of Breadth First Search. Students should verify they understand how BFS uses a queue to explore neighbors systematically before proceeding deeper into the graph structure.

Explore the full course: Niacl Ao It Specialist