Activity 01
Simulation Game: Human BFS and DFS Race
Draw a connected graph with 10 labeled nodes on a whiteboard. Two volunteer traversers start at the same source node: one uses BFS rules and explores all current neighbors before going deeper, the other uses DFS rules and goes deep before backing up. The class acts as the queue or stack, calling out which node each traverser visits next.
Differentiate between the applications of BFS and DFS in real-world problems.
Facilitation TipDuring the Human BFS and DFS Race, have students physically form a queue and stack using their bodies to reinforce the data structure behaviors that drive each algorithm.
What to look forProvide students with a small, simple graph diagram (e.g., 5-7 nodes). Ask them to trace the order of node visits using BFS starting from a specific node, and then repeat the trace for DFS. They should write down the sequence of visited nodes for each traversal.