Term
Depth-first search (DFS)
A way of walking a graph by going as deep as possible along a path, then backing up to try another neighbour at a dead end. It is written with recursion or a stack.
A way of walking a graph by going as deep as possible along a path, then backing up to try another neighbour at a dead end. It is written with recursion or a stack.