0984

Pseudocode and Flowcharts

Algorithm Design and Problem Solving · 4 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 11% of your exam marks.

stable
Medium
Stable11%

The most marks-dense topic. Both papers test pseudocode writing and trace tables every sitting.

An algorithm is a precise, step-by-step set of instructions that solves a specific problem or carries out a specific task.

An algorithm can be described in three different ways, all of which appear in exam papers:

NotationWhat it is
Structure diagramA top-down hierarchy showing how a big problem is decomposed into smaller sub-problems (and they in turn into smaller ones)
FlowchartA diagram of boxes and arrows showing the order in which steps are carried out, including decisions and loops
PseudocodeA text-based notation that looks like a programming language but is not tied to any specific one

Each notation has its own strengths: flowcharts are visual and good for showing branching; pseudocode is compact and easy to translate into real code; structure diagrams help during the design stage. Pseudocode is the most heavily examined of the three.

A structure diagram breaks a system top-down into sub-systems, and those into smaller sub-systems again:

Structure diagram showing a System decomposed into Sub-system 1, Sub-system 2 and Sub-system 3, with Sub-system 2 further broken down into Sub-system 2.1 and Sub-system 2.2
Source: Decomposition in Computer Science by Save My Exams