Traversing through trees can be completed by breadth first or by depth first. Breadth First Search (BFS) traverses through tree nodes level by level. Depth First Search (DFS) starts from the root and reaches the leaves of a subtree before another subtree.