Documents of any kind are of course stored by a certain method, with the hope that if in the future the data/documents contained in them are needed then simply searching, the desired data will be obtained quickly. However, the more documents that are stored, the search time will also increase, coupled with incorrect search results. This is due to the large number of documents that must be selected and examined for their relevance to the subject being sought. Breadth First Search (BFS) and Depth-First Search (DFS) is a technique used to search for data in a particular file in a file. With this searching technique, if you want to find one of the data from a lot of data manually, it will take a very long time, but using the Breadth First Search (BFS) and Depth-First Search (DFS) methods, the search will be more Fast.