V2EX  ›  英汉词典

Recurse

释义 Definition

recurse(动词):(尤指在计算机/数学语境中)递归;指一个函数/过程在执行时调用自身,常用于把大问题分解为结构相似的更小问题。(也可更宽泛地指“反复回到同一模式/步骤”,但最常见用法是计算机科学中的“递归”。)

发音 Pronunciation

/riːˈkɝːs/

例句 Examples

The function will recurse until it reaches a base case.
这个函数会不断递归,直到达到基本情况。

To traverse the file system, the program recurses through each folder and processes its contents before returning to the parent directory.
为了遍历文件系统,程序会对每个文件夹进行递归:先处理其内容,再返回到上一级目录。

词源 Etymology

来自拉丁语 recurrere,意为“跑回去、返回、再度发生”(re- “再次” + currere “跑”)。在现代英语里,该词在计算机领域获得了更专门的含义:通过“回到自身”的调用来解决问题。

相关词 Related Words

文学与作品 Literary Works

  • The C Programming Language(Kernighan & Ritchie)
  • Structure and Interpretation of Computer Programs(Abelson & Sussman)
  • The Art of Computer Programming(Donald E. Knuth)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2579 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 00:15 · PVG 08:15 · LAX 16:15 · JFK 19:15
♥ Do have faith in what you're doing.