DFS & BFS
DFS is a depth-first search algorithm that preferentially searches the deep part of a graph.
BFS is a breadth-first search algorithm that searches first from the nearest node in the graph.
DFS is a depth-first search algorithm that preferentially searches the deep part of a graph.
BFS is a breadth-first search algorithm that searches first from the nearest node in the graph.