In this section, we will look at an application that you can develop by yourself. We will take a look at a new application and discuss the changes that are required. In the Introduction to file search applications section, we discussed two applications of file searching; now, we will develop the second type of example. Our aim is to develop a search application that is able to find program files containing specific program text.
In the code for recursive DFS, we mainly used three classes, as follows:
- State: This has the three main ingredients of the search process
- Node: This is used to build search trees
- Recursive DFS: This has the actual algorithm implementation
Suppose that we want to adapt this code or file search application ...