Question DSA-GRAPH-0005
EasyWhich traversal is used to find the shortest path (fewest edges) in an unweighted graph?
- A.
Depth-first search
- B.
Breadth-first search
- C.
Show answer and explanation
Answer: B
BFS reaches vertices in order of their distance from the source.