V2EX  ›  英汉词典

Memoize

释义 Definition

memoize(动词):把(函数或计算结果)记忆化/缓存起来,以便在相同输入再次出现时直接复用结果,从而提高效率。常用于编程与算法中。(也可泛指“记住”,但在技术语境里更常指“结果缓存”。)

发音 Pronunciation

/ˈmɛməˌaɪz/

例句 Examples

Memoize this function to avoid repeating the same work.
把这个函数做记忆化处理,以避免重复做同样的计算。

By memoizing intermediate results, the algorithm reduces exponential time to near-linear for many inputs.
通过缓存中间结果,这个算法在许多输入情况下把指数级耗时降低到接近线性。

词源 Etymology

memoize 来自 **memo-**(与“记忆、备忘”相关,见 memomemory)加上动词后缀 -ize(“使……化/使成为”)。在计算机科学里,“记忆化(memoization)”作为术语流行起来,用来指代对函数结果进行缓存的技巧。

相关词 Related Words

文学作品 Literary Works

该词主要属于计算机科学术语,在传统文学经典中出现较少;更常见于技术书籍与论文,例如:

  • Donald E. Knuth《The Art of Computer Programming》(相关讨论常以 memoization 出现)
  • Thomas H. Cormen 等《Introduction to Algorithms》(在动态规划与缓存思想的语境中出现)
  • Abelson & Sussman《Structure and Interpretation of Computer Programs》(在递归、过程抽象与性能优化的语境中出现)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5276 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 07:56 · PVG 15:56 · LAX 00:56 · JFK 03:56
♥ Do have faith in what you're doing.