Depth First Search (BFS)
<aside> 💡 Depth First Search (BFS) is a graph traversal algorithm that traverses a graph. However, unlike BFS, it traverses the graph vertically, going branch by branch
</aside>
<aside> 💡 DFS works by pushing nodes to in a stack. When a node is visted, it is marked as visited and any edges the node has to other nodes are added to the stack.
DFS Algorithm Steps
</aside>
<aside> 💡 The Time Complexity of Breadth First Search is $O(V+E)$. At worst case, we will visit every node and explore every edge.
</aside>