Choose a country
Grade 6Computer scienceAlgorithms

Properties of an algorithm

Lesson goal: Recall what an algorithm is, explain its five properties (definiteness, generality, finiteness, effectiveness, discreteness), and check whether a set of instructions is an algorithm.
← Algorithms

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.

Lesson goal: Recall what an algorithm is, explain its five properties (definiteness, generality, finiteness, effectiveness, discreteness), and check whether a set of instructions is an algorithm.

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. 1

    Warm-up5 min

    A robot and stepping stones.

  2. 2

    New topic10 min

    What an algorithm is.

  3. 3

    Practice10 min

    Five properties.

  4. 4

    Game10 min

    Spotting a broken property.

  5. 5

    Wrap-up5 min

    Fixing instructions.

Let’s understand

For the student Simple language

PropertyMeaningBroken by
definitenessprecise, one meaning“wait a bit”
generalityworks for many inputsonly for 2 + 3
finitenessit ends“repeat forever”
effectivenessgives a resultsteps with no result
discretenesssimple separate steps“bake a cake” as one step
performer: person, robot, computer

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

  1. Write the five properties with an example of each.
  2. Check with the properties whether the rule for dividing fractions is an algorithm.
  3. Write an algorithm for making tea that has all the properties.

How the classwork looks in the notebook

15 November1Classwork2algorithm = finite sequence of actions to reach a goal · 1 definiteness — precise, one meaning · 2 generality — works for different inputs · 3 finiteness — it ends · 4 effectiveness — gives a result · 5 discreteness — simple, separate steps · performer: person, robot, computer3
Writing order: 1 Date 2 Heading 3 Line 3: algorithm = finite sequence of actions to reach a goal · 1 definiteness — precise, one meaning · 2 generality — works for different inputs · 3 finiteness — it ends · 4 effectiveness — gives a result · 5 discreteness — simple, separate steps · performer: person, robot, computer
Sample: the date and heading follow this country’s notebook rules.

Open notebook

Watch out: common mistakes

Calling any list an algorithm. All five properties must hold.
Mixing up definiteness and discreteness. Definiteness: each step is clear; discreteness: steps are separate and simple.

Where it helps in life

  • Loops (cyclic algorithms)

At home

Core

  1. Write your route home from school as an algorithm and check the five properties.

Extra ⭐

  1. Find two steps in a recipe that break definiteness and fix them.

How to do it

  1. Do the task with a grown-up.
  2. 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)
  1. Let’s check

    1. 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

15 November1Homework2Properties of an algorithm3
Writing order: 1 Date 2 Heading 3 Line 3: Properties of an algorithm
Sample: the date and heading follow this country’s notebook rules.

Check yourself