Depth First Search and Breadth First SearchWhat is DFS and BFS?Depth First Search (DFS) and Breadth First Search (BFS) are powerful methods to explore a graph in a systematic way. Both methods start in a node
Where can I use DFS and BFS?DFS and BFS can always be used when it is necessary to explore directed graphs in a systematic way. Example of how to use DFS and BFS Running TimeThe running time is linear in the size of the graph (O(|V|+|E|)). |
See also:GraphWin for visualizing graphs and graph algorithms Manual Entries: |