Activity 01
Role Play: Human BFS and DFS
Students each receive a node number. For BFS, the teacher calls out nodes by layer: start node, then all its neighbors, then all their unvisited neighbors. For DFS, one path is followed as deep as possible before backtracking. Students stand when visited. The contrast in visiting order between BFS and DFS is immediate and memorable with 10-15 students.
Explain the components of a graph and their representation.
Facilitation TipDuring Human BFS and DFS, assign clear roles for 'explorers', 'queue trackers', and 'visited node markers' to avoid chaos and keep everyone engaged.
What to look forProvide students with a small, labeled graph. Ask them to draw the order in which nodes would be visited using BFS starting from a specific node, and then repeat for DFS. Check for correct application of each algorithm's rules.