AI-generated image

pseudocode

Pronunciation: /ˈsjuːdəʊkəʊd/ noun, verb · British & US
Allowed in UK word games

What does pseudocode mean?

Pseudocode is a simplified description of an algorithm or computer program that uses familiar programming-like structure without being valid executable code. Its purpose is to make a procedure understandable while postponing decisions about a particular programming language. A typical pseudocode outline might use phrases such as “read the input,” “repeat until finished,” or “sort the list,” allowing the essential steps, repetition, and conditions to be examined clearly. The term is common in computer science education, software design, and technical communication, though it also appears informally wherever people plan a sequence of actions before implementing it. Pseudocode is especially useful when comparing possible algorithms, explaining logic to non-specialists, or drafting a program before testing it. Because no standard syntax is required, different programmers may write quite different pseudocode for the same procedure. Unlike source code, pseudocode is generally intended for human comprehension and must be translated into a formal programming language before it can run.

noun

An informal, language-independent representation of an algorithm or computer program that communicates its logical steps but is not intended for direct execution.

Example

"The problem can first be solved by writing pseudocode for the steps."

Often uncountable when referring generally to the method, but “pseudocodes” is used when referring to multiple separate representations.

verb

To express an algorithm or program in pseudocode.

Example

"They pseudoded the procedure during the design meeting."

Less common than the noun; it is mainly used when discussing the act of outlining a program informally.

Plural pseudocodes

Usually uncountable when referring generally to the notation or method; the plural is used for distinct written outlines or examples.

Example

"The textbook includes pseudocodes for several common sorting algorithms."

Did you know?

Pseudocode is how programmers think before they program: a bridge between an idea on paper and working software.

Reviewed by Deb Chak, Editor. AI-assisted content curated by RJS Tech Solutions LLP.

Where does pseudocode come from?

Pseudocode combines the combining form “pseudo-,” from Greek pseudes meaning “false” or “pretended,” with “code.” The word “code” comes through French from Latin codex, originally a book or collection of written laws, and later came to mean a system of written instructions. Applied to programming, “code” denotes instructions in a formal language; the prefix distinguishes the human-readable approximation from executable instructions.

Related word forms

pseudocodespseudocodedpseudocoding

How pseudocode is actually used

The spelling is normally written as one word, although “pseudo-code” also occurs. The term is chiefly used in computing, mathematics, and algorithmic instruction; it is usually uncountable when referring to the notation or method, though “pseudocodes” can be used for distinct written representations.

Easily confused with pseudocode

source code

Pseudocode is a human-readable outline of a program, whereas source code is the actual text in a programming language that a compiler or interpreter may execute.

What's another word for pseudocode?

pseudo-codeoutline algorithminformal algorithm

Words and phrases paired with pseudocode

write pseudocodein pseudocodepseudocode implementation

What's the opposite of pseudocode?

executable codesource code

Rhymes with pseudocode