What are algorithms and flowcharts? Everyday examples and class activities
An algorithm is a clear, ordered set of steps for getting something done; a flowchart is a drawing of those steps. This guide explains both with everyday examples, shows how to teach them in class without computers and where students meet them on Codepiko.
Last updated: 11 November 2026
What is an algorithm?
An algorithm is a list of steps followed to solve a problem or get a job done. Algorithms existed long before computers: a recipe, directions to an address or the rules of a game are all algorithms. A computer program is an algorithm written in a form a computer can run.
A good algorithm has four qualities:
- The steps are clear. It says “add a glass of water”, not “add some water”, so the person following it does not have to guess.
- Order matters. Socks do not go on after shoes.
- It ends somewhere. A list of steps that never finishes never gets the job done.
- The same start leads to the same result. If two people follow the recipe, they get two similar cakes.
Examples from everyday life
Things students do every day are a good place to start practising algorithms. Each example also shows a structure from programming:
- Packing a school bag: steps in order
- Check the timetable, put in the books, put in the pencil case, close the zip. The steps happen in order, once each.
- Crossing the road: a decision
- If the answer to “Is the light green?” is yes, you cross; if no, you wait. In programming this is called a condition.
- Climbing stairs: a loop
- “Climb one step” repeats until you reach the top. Instead of writing the same step twenty times, we write it once and say how many times to repeat it.
- Making lemonade: input and output
- Lemons, water and sugar are the input; lemonade is the output. When the input changes, for example less sugar, the output changes too.
What is a flowchart?
A flowchart is an algorithm drawn with shapes and arrows. It shows the path between steps, especially where a decision branches, more clearly than a written list. These are the most common shapes:
- Start and end
- A rounded or oval shape. Every chart begins with a start and finishes with at least one end.
- Process
- A rectangle holding a task to do, such as “move one step forward”.
- Decision
- A diamond holding a question answered with yes or no; two arrows leave it.
- Input and output
- A parallelogram for information taken from the user or shown on the screen.
- Arrow
- Shows the order of steps. In a loop the arrow goes back to the decision box: “Have you reached the top step? No: climb one more.”
Working without computers in class
Algorithms and flowcharts can be taught without a computer, and starting on paper often helps the idea sink in. A few ideas:
- Step cards: write the steps of a task on separate cards, shuffle them and hand them to groups. Groups put the cards in order, then take one card out and discuss “what happens now?”.
- The literal robot: one student plays a robot that does exactly what it is told, nothing more. The class writes the commands that take the robot from their desk to the door. It soon becomes clear why a vague command does not work.
- A chart on the board: build the flowchart for crossing the road as a class. Start with process boxes only, then ask why a decision box is needed.
The unplugged activities page has 16 printable worksheets. The first one, Paper robot, practises guiding a robot across a grid and writing a sandwich algorithm. For parts that have an answer, the answer key can be shown or hidden on the page.
Where to find it on Codepiko
- Algorithm Sorter: a game about putting everyday steps given in a jumbled order back in the right order. In 6 puzzles the student first works out the result of the task, then orders the steps and sees the flowchart.
- The flowchart tab in the block editor: on every level of the map, the student’s program is turned into a flowchart. Loops and questions are drawn as decision boxes, and the shape of the current step is highlighted while the program runs.
- Step by step: algorithms and flowcharts: a 40-minute lesson plan that combines the ordering game, the first world of the map and drawing a flowchart on paper in one lesson.
This work connects to these outcomes in the grade 5 programme: BTY.5.6.1 “Think algorithmically to solve problems” and BTY.5.6.2 “Test and debug algorithms”.
Frequently asked questions
- What is the difference between an algorithm and a program?
- An algorithm is the set of steps in a solution; it can be told in sentences, drawn as a chart or built with blocks. A program is the same steps written in a form a computer can run. Like a recipe, an algorithm can be used without ever being written for a computer.
- Do you need a computer to draw a flowchart?
- No. Paper, a pencil and a few shapes are enough. The flowchart tab on Codepiko can be used to compare the chart a student drew on paper with the chart of their own block program.
- In which grade are algorithms taught?
- In the Information Technology and Software course they appear in the Software Design and Programming theme of the grade 5 programme: BTY.5.6.1 “Think algorithmically to solve problems”. In grade 6 students use the same way of thinking in their block-based projects.