August 2018
Intermediate to advanced
124 pages
2h 47m
English
Now that you understand the basic concepts of searching, we'll look at how DFS works by using the three basic ingredients of search algorithms—the initial state, the successor function, and the goal function. We will use the stack data structure.
Let's first represent the DFS algorithm in the form of a flowchart, to offer a better understanding:

The steps in the preceding flowchart are as follows:
Read now
Unlock full access