Exam-style question
Try this first
Which application matches breadth-first search as specified for an unweighted graph?.
- A.Finding a shortest path
- B.Navigating a maze by following one branch as far as possible
- C.Sorting vertices into alphabetical order
- D.Counting the number of letters in vertex names
Answer and explanation
Concise answer
Finding a shortest path
Why this is correct
Breadth-first search can find the shortest path in an unweighted graph. Navigating a maze by exploring one route deeply is a typical application of depth-first search.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
