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, normally implemented using a hash table, and a typical example of a space–time tradeoff, where the runtime of a program is reduced by increasing its memory usage. Memoization can be implemented in any programming language, though some languages have built-in support that make it easy for the programmer to
Wikidata facts
- Subclass of
- program optimization
Show 2 more facts
- Stack Exchange tag
- stackoverflow.com/tags/memoization
- different from
- memorization
via Wikidata · CC0
Article · 中文
记忆化(英語:memoization)是一种提高计算机程序执行速度的优化技术。通过储存大计算量函数的返回值,当这个结果再次被需要时将其从缓存提取,而不用再次计算来节省计算时间。 记忆化是一种典型的在計算時間與電腦記憶體空間之中取得平衡的方案。
Abstract from DBpedia / Wikipedia · CC BY-SA