Lesson 1.1: What is an Algorithm?
Aim:
Today we are going to learn that an algorithm is a set of instructions for programming a computer.
Be Inspired!
The word algorithm sounds complicated, but it's actually a sequence of steps we follow to complete a task or solve a problem.
A recipe is a good example of an algorithm because it tells us what we need to do step by step. It takes inputs (ingredients) and produces an output (the completed dish).
Check it out:
Today we are going to start by making our very own virtual sandwich! As you make your sandwich think carefully about the instructions you would need to give a friend if you wanted them to make the same sandwich. If you like you can work in pairs giving one another instructions.
Do:
Once you have made your virtual sandwich you can have a go at writing down your instructions. You will use your Microsoft Word App to write your instructions. Here is an example of a piece of work completed by NP Year 4C @TMPS.
When you have finished ask a friend to check over your instructions. Were your instructions clear? How easy was it to follow your instructions?
You can use algorithms to help describe things that people do every day. Can you figure out the correct algorithm for making a paper plane using the sheet below? Which six steps should you follow to successfully make a paper plane? Submit your answer via E-mail.
Fun:
Sometimes the order of the steps doesn't matter too much, but sometimes if you swap two of the steps around, things don't work properly - e.g. it doesn't matter much if you add the milk first or the sugar first when making a cup of tea, but it does matter if you pour the water into the cup before you turn the kettle on. Sometimes, one way of doing things might be more efficient than another.
When writing an algorithm or a set of instructions it is very important that the instructions are clear! When instructions are not clear it can all go a bit wrong just like in the video below: