# Algorithm of Thoughts

> Algorithm of thoughts (AoT) is a prompting technique that places worked examples of an algorithmic search process in the prompt, so the model carries out the whole search inside a single generation instead of being called repeatedly by an external controller.

- Identifier: PTL-0236
- Category: Reasoning Elicitation
- Canonical URL: https://protologue.com/t/algorithm-of-thoughts/
- Also known as: AoT
- Introduced: 2023

## Description

Methods such as tree of thoughts explore alternatives by pausing generation, evaluating partial solutions and calling the model again, which multiplies the number of queries and tokens. AoT keeps the exploration in one stream of output. Its authors reported that it outperformed earlier single-query methods and multi-query tree-search strategies while using significantly fewer tokens, and that a model guided by an algorithm could perform better than the algorithm itself.

## Broader terms

- [Chain-of-Thought Prompting](https://protologue.com/t/chain-of-thought/)

## Related terms

- [Tree of Thoughts](https://protologue.com/t/tree-of-thoughts/)
- [Graph of Thoughts](https://protologue.com/t/graph-of-thoughts/)
- [Few-shot Prompting](https://protologue.com/t/few-shot-prompting/)

## Sources

- Sel et al. (2023). Algorithm of Thoughts: Enhancing Exploration of Ideas in Large Language Models. https://arxiv.org/abs/2308.10379

## Cite this entry

Protologue. (2026). Algorithm of Thoughts. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.7.0, PTL-0236). https://protologue.com/t/algorithm-of-thoughts/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
