Creating algorithms with pseudocode

<< Previous: Flowcharts Next: Searching algorithms >>

Pseudocode is a language independent, text based way to define an algorithm. AQA has a document showng their preferred pseudocode, but pseudocode will be accepted in other formats as long as it is clear what the algorithm is meant to do.

The version of pseudocode used by AQA has a few common factors. These include using uppercase for programming commands and indenting nested & dependent code.

Pseudocode uses the basic programming constructs of sequence, selection and iteration to design solutions to problems. All major programming languages have their own ways to implement these techniques. One notable difference is that in pseudocode we use a left facing arrow for assignment i.e. giving a variable a value. When an equals sign is used in pseudocode that represents a comparison operator to check for equality.

Pseudocode also documents where input is received and output, how it is stored and accessed and even manipulated.

Knowledge check


Questions:
Correct:

Question text


<< Previous: Flowcharts Next: Searching algorithms >>

© All materials created by and copyright S.Goff