0 votes
in Other by

How does depth-first traversal work?

1 Answer

0 votes
by

The Depth First Search algorithm algorithm traverses a graph in a depthward motion and remembers the stack to get the next vertex to start a search when a dead end occurs in any iteration.

...