0
2.2kviews
Explain Depth First Search.
1 Answer
| written 7.2 years ago by |
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.

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