Skip to content
← Back to demo
Question 1 of 20 · 0 answered0:00
x

Two traversals share the same skeleton: take a vertex from a pending collection, mark it, add its unmarked neighbours to that collection, repeat. One uses a queue and the other a stack. On a graph where the goal is three edges from the start and a side branch is a thousand vertices deep, what does each do?