Mission 8: "Navigating the Command Structure" 🧭
1. The Story: The Mission Briefing
"The Labyrinth's command structure is a complex tree. To perform a full system audit and ensure no rogue processes are running, you must visit every single command node."
2. The Problem
How do you systematically visit every node in a tree without missing any?
3. The Task
You will write functions to perform the two main traversal strategies. The UI will visually highlight the nodes in the order your code visits them.
Depth-First Search (DFS): Go as deep as possible down one branch before exploring the next.
Breadth-First Search (BFS): Explore the tree level by level.
4. Concepts Applied
Tree Traversal, DFS, BFS.