Algorithms: instructions in order — Technology, 7–10
An algorithm is a clear set of steps for reaching a result. People use algorithms in recipes, games and computer programs.
What an algorithm is
An algorithm is a plan made of steps that can be followed in order. It does not have to be on a computer: brushing your teeth or making a sandwich can use one. A good algorithm is clear enough that another person can follow it.
Why we use algorithms
The problem is that a big task is hard to remember and repeat all at once. Steps split it into smaller actions, so people can work more reliably and computers can carry them out quickly. The idea grew from the need to calculate, sort and solve problems without starting from scratch each time.
Worked example: making toast
Here is an algorithm for toast: put bread in the toaster; choose level 3; press the lever; wait; lift the bread when it pops up. Each step has a place, and changing the order could cause trouble. If the bread is already burnt, the plan needs a test and a different next step.
Trap: steps can be too vague
A common mistake is writing “make a sandwich” as if it were one instruction. That feels reasonable because a person already knows the missing actions. A computer or a beginner does not: it may not know which bread, where the filling goes or when to stop. Good algorithms name important details.
Where algorithms appear
Algorithms appear in a recipe, a treasure hunt, a board game and a washing machine. They also tell an app how to sort photos or decide which move comes next in a game. The steps only work well when the instructions match the real task and its limits.
Keep exploring
Other languages
Loading MyLeoNes™…