0
2.2kviews
Explain Depth First Search.
1 Answer
0
44views

In depth-first search, the frontier acts like a last-in first-out stack. The elements are added to the stack one at a time. The one selected and taken off the frontier at any time is the last element that was added.

enter image description here

Example: Consider the tree-shaped graph in Figure. Suppose the start …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.