Mansi Verma

5 years ago

JavaData Structure(DS)

The major difference between BFS and DFS is that BFS proceeds level by level while DFS follows first a path form the starting to the ending node (vertex), then another path from the start to end, and so on until all nodes are visited.

0 Likes