StudyDeck

Explaining Algorithms

Exam code: 2210
Written by: Ashika|Reviewed by: Caroline Carroll|Updated 2 July 2026

Explaining Algorithms

Explaining Algorithms

How do you explain an algorithm?

  • A well designed algorithm should be able to be interpreted by a new user and they should be able to explain what it does

  • Algorithms can be written using flowcharts, pseudocode or high-level programming language code such as Python

  • The purpose of an algorithm is to solve a problem, if a user does not know the goal of the algorithm, then following the algorithm instructions should make its purpose clear

  • If the algorithm is complex then additional ways to understand the problem could be:

    • Look for comments in the code

    • Consider the context of where the algorithm is being used

    • Test the algorithm with different inputs

  • Look at the following algorithm, can you explain what it does?

Pseudocode

Count ← 1
Number ← 0
Total ← 0
REPEAT
    INPUT Number
    Total ←  Total + Number
    Count ← Count + 1
UNTIL Count > 10
OUTPUT Total
  • The purpose of the algorithm is to add ten user-entered numbers together and output the total

  • The processes are: 

    • initializing three variables (Count, Number, Total)

    • inputting a user number

    • adding to two variables (Total, Count) 

    • repeating nine more times

    • outputting the final Total value