How does depth first search order its visits?
How does breadth first search order its visits?
Which structure forces the level by level order?
Visited nodes must be recorded, or a cycle loops the search forever.
Circle one: True False
You swap the queue for a stack in the same search loop. What changes?
Breadth first search reaches a node for the first time. What do you know?
You need the fewest hops route on an unweighted graph. Which do you pick?
Start at A. Neighbours: A: B, C. B: D. C: D. D: none. Which order is breadth first from A?