Skip to content
Back to full roadmap
topicadvanced

Tree-of-Thoughts (ToT)

Branching version of CoT — explore multiple alternatives at each step, pick best path.

4 hours2 resources1 prereqs

The problem is modeled as a tree — each node is a 'thought', children are continuations. Use BFS/DFS + evaluation to follow the most promising branch.

Beats CoT by 30%+ on hard tasks (Game of 24, creative writing) but implementation is complex. Frameworks like LangGraph / DSPy help orchestrate it.

Prerequisites

Resources(2)