Algorithms

Which concept is defined as follows: a graph traversal algorithm that explores all neighbors at the current depth before moving deeper?

Correct answer

B. Breadth-first search (BFS)

Explanation

Breadth-first search (BFS) refers to a graph traversal algorithm that explores all neighbors at the current depth before moving deeper.