V2EX  ›  英汉词典

Pseudocode

释义 Definition

pseudocode(伪代码):一种用接近自然语言与结构化步骤来描述算法或程序逻辑的写法,强调思路与流程而非具体编程语法,便于沟通与设计。(也可写作 pseudo-code。)

发音 Pronunciation (IPA)

/ˈsuːdoʊˌkoʊd/

例句 Examples

We wrote pseudocode before starting to program.
我们在开始编程之前先写了伪代码。

The professor asked us to express the sorting algorithm in clear pseudocode so anyone could implement it in any language.
教授要求我们用清晰的伪代码表达排序算法,这样任何人都能用任何语言去实现它。

词源 Etymology

来自前缀 **pseudo-**(“假的、仿的”)+ code(“代码”)。意思并不是“错误的代码”,而是“像代码一样的描述”,用于把算法思想先讲清楚,再落到具体语言实现。

相关词 Related Words

文学与作品 Literary Works

  • Donald E. Knuth — The Art of Computer Programming(计算机算法经典著作中常用伪代码式的表述来说明过程与步骤)
  • Thomas H. Cormen et al. — Introduction to Algorithms(以伪代码形式呈现大量算法,是学习算法时最常见的“伪代码”来源之一)
  • Brian W. Kernighan & Dennis M. Ritchie — The C Programming Language(虽以C语言为主,但在讲解程序思想与结构时也常采用接近伪代码的描述方式)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   873 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 10ms · UTC 18:31 · PVG 02:31 · LAX 10:31 · JFK 13:31
♥ Do have faith in what you're doing.