🌲
Algo-1Lv 1.1
🧱🎯 Mission BriefingAct 1 • Stage 1.1 • +120 XP

Maze Exploration: Breadth-First vs Depth-First Search

At the heart of state space search are two fundamental algorithms: Breadth-First Search (BFS) and Depth-First Search (DFS). BFS uses a FIFO (First-In, First-Out) queue, exploring all vertices at depth d before moving to depth d+1, mathematically guaranteeing the shortest path in unweighted graphs. DFS uses a LIFO (Last-In, First-Out) stack, pursuing a single branch to its terminus before backtracking.

🌟 Starting Stage (1.1)