≈ Algorithms / Design Patterns (e.g., Breadth-First Search, Recursion)
Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.
Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.
1def solve(problem):2 # Explicit implementation of A* search3 open_set = {start}4 while open_set:5 current = lowest_f_score(open_set)6 if current == goal:7 return path8 ...1prompt = """2Solve this problem using a Tree of Thought approach.31. Generate 3 possible next steps.42. Evaluate each step for feasibility.53. Discard impossible paths.64. Expand the best path.7Let's think step by step.8"""910llm.generate(prompt)Traditional SWE
Algorithms / Design Patterns
Agentic Pattern
Reasoning Techniques
The "method" by which the problem is solved. ToT is essentially a search algorithm (BFS/DFS) applied to the space of "thoughts."
Reasoning is prompted, not coded. You don't write the for loop; you tell the model how to think about the loop. You are programming the cognitive process, not the instruction set.
More reasoning steps = higher latency. CoT increases token count significantly. Use only when the task complexity demands it.
Adapt: Programming is now "Prompt Engineering" at the architectural level. You are defining the algorithms of thought.
BuildBuild a Step-by-Step Reasoner. Create a system that solves complex problems by generating multiple reasoning paths, evaluating each, and selecting the best one.
Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal processing to solve complex problems.
The "method" by which the problem is solved. ToT is essentially a search algorithm (BFS/DFS) applied to the space of "thoughts." However, there is a key divergence: Reasoning is prompted, not coded. You don't write the for loop; you tell the model how to think about the loop. You are programming the cognitive process, not the instruction set.
More reasoning steps = higher latency. CoT increases token count significantly. Use only when the task complexity demands it.