Tree of Thoughts (Yao et al. 2023) explores multiple reasoning branches at each step. On what kind of problem does the tree structure pay off over a single-thread Chain of Thought?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
ToT pays off when the problem has multiple plausible reasoning paths AND wrong paths can be evaluated and pruned before the final answer: puzzle-solving, planning, constrained search.
Imagine solving a maze. Chain of Thought is like committing to one direction at every fork and only finding out you were wrong when you hit a dead end. Tree of Thoughts is like trying a few directions at each fork, checking which ones look promising, and abandoning the bad ones early. The tree pays off when you can tell partway through that a path is going nowhere. If every path looks the same until the end, the extra exploration is just wasted effort.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: ToT as beam search + branching cost K * B * D + intermediate-evaluation requirement + contrast with CoT and self-consistency + when to skip.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Reaching for ToT on tasks where partial reasoning paths cannot be evaluated, so the pruning step has no signal and the tree just multiplies cost without benefit.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.