Flashcard: what is Tree of Thoughts (ToT) prompting and what problem does it solve?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Tree of Thoughts explores multiple reasoning branches at each step, scores them, prunes the weak ones, and continues from the strongest, instead of committing to a single chain like chain-of-thought.
Imagine you are solving a maze with a pencil. Chain-of-thought is like walking forward one step at a time and never looking back, even when the path dead-ends. Tree of Thoughts is the way a real person solves a maze. At each junction you look at two or three possible paths, you guess which one seems most promising, you try it, and if it does not work you back up and try another. Tree of Thoughts asks the language model to do exactly that. At every step it generates several candidate next thoughts, rates them, keeps the best, drops the rest, and moves on. The shape of the reasoning is a tree, not a straight line, which is why the name fits.
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.
3 min: define ToT as a search tree over reasoning, contrast with CoT's single chain, name evaluator role, call out the call-count cost, and identify which task types it actually fits.
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.
Treating Tree of Thoughts as a small upgrade over chain-of-thought you can drop into any prompt. ToT is a search procedure with many LLM calls per question, not a single prompt template, and it is overkill for tasks that do not need backtracking.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.