Properties of an algorithm
About this lesson

An algorithm is a finite sequence of actions carried out to reach a goal. But not every sequence of actions is an algorithm; it needs certain properties. 1) Definiteness: every step must be clear, precise and unambiguous, so every performer understands it the same way. Not “add a little salt” but “add one teaspoon of salt”. 2) Generality (mass applicability): the same algorithm must work for different input values. A sandwich algorithm works with white or brown bread, cheese or butter; the addition algorithm works for any numbers. 3) Finiteness: an algorithm must finish after a finite number of steps; an instruction that never ends is not an algorithm. 4) Effectiveness: once the steps are done, the expected result must be obtained. 5) Discreteness: an algorithm is made of separate simple steps that are easy to carry out. This matters especially for computers, which can only carry out the simple commands they know. Whoever carries out an algorithm is the performer: a person, a robot or a computer.
What the book shows
In grade 6 the computer science textbook covers how a computer is built and works, encoding numbers, electronic presentations, the properties of algorithms and loops, variables in programs, and email. Each topic gives a short explanation, an example and a task done on or off the computer.
Textbook link:
This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.
The lesson step by step
- 1
Warm-up5 min
A robot and stepping stones.
- 2
New topic10 min
What an algorithm is.
- 3
Practice10 min
Five properties.
- 4
Game10 min
Spotting a broken property.
- 5
Wrap-up5 min
Fixing instructions.
Let’s understand
For the student Simple language

| Property | Meaning | Broken by |
|---|---|---|
| definiteness | precise, one meaning | “wait a bit” |
| generality | works for many inputs | only for 2 + 3 |
| finiteness | it ends | “repeat forever” |
| effectiveness | gives a result | steps with no result |
| discreteness | simple separate steps | “bake a cake” as one step |
For the parent
How to help
- Ask your child to write an algorithm for brushing teeth, then follow it literally — which step is not precise enough?
For the teacher
Lesson goals
- Recall what an algorithm is, explain its five properties (definiteness, generality, finiteness, effectiveness, discreteness), and check whether a set of instructions is an algorithm.
How to teach it
- Hands-on computer work, unplugged modelling, pair work, mini-project
Differentiation
- Weaker pupils follow the model step by step; stronger pupils design and test their own task
Questions for the class
- Is every set of instructions an algorithm?
How to check
The pupil explains the five properties, finds the broken one in given instructions, and writes a correct algorithm.
Scientific Scientific language
Recipes
A recipe is a good example of an algorithm, but “salt to taste” breaks definiteness.
Computers
A computer cannot guess what you mean, so programs must be written very precisely.
Self-study
Step by step
- I know the definition.
- I explained the five properties.
- I found a broken property.
- I checked my own algorithm.
Going deeper
Scientific language: for older students, parents and teachers.
The word “algorithm” comes from the name of the 9th-century scholar Muhammad al-Khwarizmi.
Play and check
Which property is broken?
How to write it down
- Write the five properties with an example of each.
- Check with the properties whether the rule for dividing fractions is an algorithm.
- Write an algorithm for making tea that has all the properties.
How the classwork looks in the notebook
Sample: the date and heading follow this country’s notebook rules.
Watch out: common mistakes
Where it helps in life
- Loops (cyclic algorithms)
At home
Core
- Write your route home from school as an algorithm and check the five properties.
Extra ⭐
- Find two steps in a recipe that break definiteness and fix them.
How to do it
- Do the task with a grown-up.
- Explain in words what you noticed.
Answers for parents
Dividing fractions: the steps are precise (definiteness), work for any fractions (generality), finish in 3 steps (finiteness), give a fraction (effectiveness), and each step is a simple multiplication (discreteness) — so it is an algorithm.
Step-by-step homework solution — Show the solution (try it yourself first)
Let’s check
- Instructions: “1. Take a bowl. 2. Pour in some flour. 3. Knead the dough as long as you like.” Definiteness is broken: “some” and “as long as you like” are not precise, and finiteness is unclear. Fix: “2. Pour in 200 g of flour. 3. Knead the dough for 5 minutes.” Now it is an algorithm.
How the homework looks in the notebook
Sample: the date and heading follow this country’s notebook rules.