Skip to content
How to ThinkIn the Age of AI
Principlev1PR-463

Choose depth-first traversal when you need any solution…

Choose depth-first traversal when you need any solution quickly; choose breadth-first when you need the optimal solution.

Why This Is a Principle

Derives from Working Memory Capacity Limit (working memory limits) and Directed Attention as Depletable Resource (finite cognitive resources). DFS consumes less working memory but risks local optima; BFS guarantees finding shortest path but exhausts cognitive resources faster. This principle prescribes matching search strategy to goal type.