BFS (Iterativ)

This implementation uses a Queue (FIFO) which is very similar to our implementation from last semester.

DFS (Iterativ)

This represents a major difference to our previously recursive implementation. We use a Stack (LIFO) to “simulate” the recursive descent into the tree’s branches.