Beginner Data Structures & Algorithms
Q29 / 100

What is the purpose of BFS (Breadth-First Search)?

Correct! Well done.

Incorrect.

The correct answer is B) Exploring all nodes level by level, finding shortest paths in unweighted graphs

B

Correct Answer

Exploring all nodes level by level, finding shortest paths in unweighted graphs

Explanation

BFS uses a queue to explore all neighbors before going deeper, guaranteeing shortest paths (fewest edges) in unweighted graphs.

Progress
29/100