Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M0553

Memoization

Memoization
DecideHigh supportDecision Science
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

In computing, memoization or memoisation is an optimization technique used primarily to speed up computer programs. It works by storing the results of expensive calls to pure functions, so that these results can be returned quickly should the same inputs occur again. It is a type of caching, normall…

Definition

An optimization technique that caches the results of expensive function calls (noting them in a memo), so that when the same inputs occur again, the cached result is returned directly without recomputation. Scaffolding role: avoid redundant work. In work and life, for recurring and time-consuming problems (such as common email replies, complex decision logic), one should establish an 'external cache' (templates, SOPs), and never solve the same problem from scratch twice.

How to use

Avoid redundant work. In work and life, for recurring and time-consuming problems (such as common email replies, complex decision logic), one should establish an 'external cache' (templates, SOPs), and never solve the same problem from scratch twice.

Mechanism

Cache results of expensive computations for identical inputs (lookup table), trading space for time, reducing repeated computation to O(1) lookup; side effects include initial computation still required and storage overhead.

Practice

In progress 0/1

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Store templates for common email replies. Cache intermediate results for complex report formulas. Individuals solidify decision checklists into SOPs.

Common pitfalls

  • Caching content that should vary with context, leading to errors when applied. Cached content becomes outdated and is not updated.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/MemoizationZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS