What is an algorithm?

At KS3 you met algorithms as sets of instructions. GCSE Computer Science expects you to read, follow and write them precisely.

Practise this lesson free (6 questions)

More tools

Algorithms

An algorithm is a precise, step-by-step set of instructions for solving a problem or completing a task.
A good algorithm is unambiguous (each step has one meaning), the steps are in the right order, and it finishes.
A recipe and the directions to a friend's house are everyday algorithms. A program is an algorithm written in a programming language.

Ways to show an algorithm

You can show the same algorithm as:
Written description: numbered steps in plain English.
Flowchart: shapes joined by arrows.
Pseudocode: structured, code-like English that is not tied to one language.
Program code: for example Python, which a computer can run.

Flowchart symbols

Learn these five. They come up again and again.
ShapeMeaning
Rounded rectangleStart or stop (terminator)
RectangleProcess, such as a calculation
DiamondDecision, with a Yes path and a No path
ParallelogramInput or output
ArrowThe direction to follow
Worked example

Follow this algorithm with the number 7.
1. Take a number.
2. Double it.
3. Add 4.
4. Halve the result.
5. Output the answer.

  1. Double 7: 7 × 2 = 14
  2. Add 4: 14 + 4 = 18
  3. Halve: 18 ÷ 2 = 9

Answer: 9

Key idea

An algorithm is a precise, ordered set of steps that finishes. It can be shown as a written description, a flowchart, pseudocode or code. Flowcharts: rounded rectangle start/stop, rectangle process, diamond decision, parallelogram input/output.

Key words
Algorithm
A precise sequence of steps to solve a problem.
Flowchart
A diagram of an algorithm using standard symbols joined by arrows.

All GCSE and International GCSE Computer Science key terms and definitions →

Common mistakes
Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Which flowchart shape is used for a process, such as total ← total + 5?

    1. Diamond
    2. Parallelogram
    3. Rectangle
    4. Rounded rectangle
    Show the answer

    Answer: Rectangle

    Processes use a rectangle.

  2. Which flowchart shape is used to display a result to the user?

    1. Diamond
    2. Rectangle
    3. Parallelogram
    4. Rounded rectangle
    Show the answer

    Answer: Parallelogram

    Outputs use a parallelogram.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? →

Related lessons