Vitaly is the Digital Marketing Manager at CodeMonkey. His master's degree in Computer Science, combined with his experience as a father of two sons, helps him create content focused on coding education.
If there’s one word on everyone’s lips in the 2020s, it’s “algorithm.” These elusive strings of code dictate what we see on our social media, the products we see on the homepage of our favorite online shopping sites, and the types of movies and TV shows suggested when we log onto streaming services.
So, why would we be looking for algorithm exercises for kids?
Well, love or hate them, algorithms are here to stay, and they’re changing how we live. And while algorithms sometimes get a bad rap in the press, they’re actually entirely benign (until they’re not!).
This article is about algorithm exercises for kids — exploring what they are and why mastering them will give your child a distinct advantage.
Ready? Let’s go!
What is an algorithm?
It’s a great question because there’s a lot of confusion revolving around this very 2020s buzzword.
Essentially:
An algorithm is a set of step-by-step instructions, functions, or rules. And each step guides you closer toward completing a task or solving a problem.
However:
The word “algorithm” is actually nothing new — it was first used in the 9th century. Yes — the 9th century! That’s WAY before the first iPhone (if you can imagine such a time). So, algorithms aren’t just computer code.
Indeed, algorithms are everywhere: from the recipe books on our shelves to the way we solve a math equation; from how we do our laundry or make a phone call.
A laundry algorithm
Let’s think about the processes we might complete to clean dirty clothes — because they don’t jump into the machine and launder themselves (no matter what your kids might think!).
Indeed, before your clothes get cleaned, there are several functions to complete, such as:
Picking the clothes up off the floor
Placing the dirty clothes in a laundry basket. Then, when it comes to laundry day:
Dividing your whites from your colored clothes and separating the machine-wash garments from the hand-wash.
Placing the selected clothes in a wash basket to deliver them to the washing machine.
Putting the clothes in the machine.
Adding detergent and fabric softener.
Selecting an appropriate machine cycle, then switching the machine on.
Waiting for the cycle to complete, then emptying the clothes back into the wash basket.
Taking the clothes to the clothes drier. And waiting for them to dry.
Folding the clothes and returning them to your drawers.
Sticking to the rules
Each stage in this process is essential — if you miss one, the sequence might not work (or go wrong).
For example, you’ll end up with pink shirts if you don’t divide the whites from the colors. And if you put hand-wash-only clothes into the machine, they’ll fit Barbie better than your kids!
However:
We have a basic list of functions, but we must consider the complementary sub-steps of that primary sequence, such as ensuring the washing machine is plugged into the power socket (and the power switch is set to ON).
Otherwise, the whole sequence fails.
An algorithm in simple terms
So, algorithmic coding or programming is composing a list of rules a computer can understand and follow; telling it how to behave.
And once you have your rough list, it’s about ensuring you don’t forget those all-important sub-steps that might prevent the computer from executing the completed task.
How to explain algorithms to kids
It’s probably relatively clear what an algorithm is by now — it’s just a list of instructions. So, get your child to devise instructions for completing a task that offers them a reward, like how to make a slice of peanut butter toast.
They might say:
Put a slice of bread into the toaster (or under the grill).
Open a jar of peanut butter and spread it on the toasted bread.
Take a bite.
And enjoy!
Now, those instructions are probably enough for most humans who have had peanut butter toast before because they know what to expect as the outcome.
But a computer needs greater specificity.
For example, the computer doesn’t know:
Where to find the bread
Where to find the jar of peanut butter
How much bread to use
How thickly sliced the bread should be (if the loaf isn’t pre-sliced)
How to spread peanut butter: what tool do you use?
How much peanut butter to spread (and how thickly)
Whether to use a plate (and what type (and size) of plate).
Then, you might need to explain which part of the peanut butter toast it should bite into — how much is a bite, and how to chew.
So:
Once you have your basic list of instructions, it’s about understanding the additional information a computer needs to complete the operations. And this is the fun part for kids because they love troubleshooting and finding solutions to problems.
What are the components of an algorithm (and how do you explain them to kids?)
Computer algorithms are often written in languages similar to English but might have different syntaxes (how we arrange the words grammatically).
Algorithms commonly instruct computers to:
Carry out a sequence = aka Sequencing
Make a choice = aka Selection
Repeat a process according to additional rules = Iteration (or looping)
We’ve already talked about sequencing in its simplest terms. So, we’ll explore Selection:
Selection
You can author selection criteria into an algorithm to help the computer make a decision based on specific rules. You can instruct the computer to follow or repeat specific steps or to completely ignore them based on the rules you set out.
For example, the algorithm script for buying a bus ticket might pose a question such as:
How old are you?
If you’re over 65, you’ll pay a different fee or get a free ticket.
Otherwise, you’ll pay the full fare.
These decisions are dictated by easily understood commands, such as IF, THEN, and ELSE.
In other words:
IF you’re over 65 years old, THEN you get a free ticket — ELSE pay full fare.
So, with these simple selection criteria, your kids can build those sub-rules that fill in the gaps.
Some algorithm exercises for kids
Here are some group algorithm games that your kids will love:
Target Practice!
Start with a simple image that one child can describe to the rest of the group. I recommend sticking with simple, easily defined geometric shapes, like circles, squares, triangles, etc. Incorporate a range of colors in the image if you can.
You could use a picture of a target like this:
If that looks too complicated, feel free to choose a simpler image — but this is a good challenge for 4-6-year-olds.
The game works like this:
Give one child in the group a piece of paper bearing your chosen image. We’ll call them Child 1.
Hand out pieces of paper and colored pens to the other children in the group. Don’t let the other kids see Child 1’s piece of paper.
Now, ask Child 1 to describe the image to guide the rest of the group to draw it. Encourage them to use numbers, shape names, and colors to describe the image.
Then, everyone shares the image they’ve drawn, discussing how each is similar or different and why that might be.
HOW DOES THIS RELATE TO ALGORITHMS?
The instructions Child A gives to the group are the algorithm. And how similar the other children’s images look relies on the precision and accuracy of their given instructions.
It sounds simple, but children quickly learn how to adapt their language. And this is an excellent inclusive activity for neurodiverse learners and those with a very logical brain.
However, it also depends on the comprehension abilities of the children taking the instructions — representing how different machines might use a different language or understand instructions in slightly different ways.
LEARNING A COMMON LANGUAGE
This is all about adapting language to suit the receiver. For example, university students might describe the first stage as:
Draw three concentric green circles, each one smaller than the previous.
But a child probably doesn’t know the word “concentric,” and they might not be able to describe the function so succinctly. They might say:
Draw a big green circle.
Inside that, draw a smaller green circle.
Inside the smaller green circle, draw another smaller green circle.
So, writing an algorithm is partly:
Understanding the objective, and
Learning the computer’s vernacular (i.e., the language it uses to translate the instruction into an action).
Here’s another algorithm exercise for your kids to try:
Guide the Monkey
This game starts with an obstacle course you could easily set up in your living room or the classroom.
Set up a range of non-hazardous obstacles, such as socks, chairs, or pieces of paper around the room, and get the children into pairs.
Then, blindfold one of the kids (they’re the Monkey) and ask the other (the Instructor) to guide them around the obstacle course, avoiding contact with the obstacles.
You could even place a grid over the floor that dictates how many steps the Monkey needs to make to navigate around, up, and over the obstacle course. And the Instructor can use algorithm commands such as STEP forward/backward/left/right while determining the number of steps.
HOW DOES THIS RELATE TO ALGORITHMS?
This is a great way to teach basic animation algorithms that they can apply to simple computer game coding platforms, such as CodeMonkey Jr.
Guide the Monkey shows children how to develop instructional language, which comes in super-handy when they come to write algorithms. It also helps children learn the importance of sequencing and strategizing — how might they streamline their process for faster results?
You could even limit the words they’re allowed to use — perhaps just using the words:
Forward
Back
Right
Left
Jump
Steps
And numbers
Paper airplanes
All kids love making paper airplanes, right? Well, now they can turn their origami creativity into algorithmic games!
Get each child to make a paper airplane. Then, ask them to unfold it and write the instructions for making their airplane from scratch. Encourage them to be creative, adding their own flourishes, like drawn symbols and extra folds for more streamlined planes.
Get each child to pass their instructions around the group, asking other kids to make their invention from their algorithm.
You could even challenge them to mix the order of instructions up a bit or miss a step. What happens then?
Egg Carton Lava Game!
Keep things analog with the egg carton lava game. This is an excellent game for playing in pairs.
All you need is:
A large egg carton for 30 eggs. Tape several cartons together to increase the difficulty.
Screwed-up pieces of red paper (the lava)
A green plastic egg
A blue plastic egg
A playing piece, such as an action figure.
Alternatively, you could substitute the plastic eggs for Kinder Surprise Eggs!
Here’s how to set it up:
Place your green egg in one of the slots around the edge of the egg carton.
Place your blue egg in a slot away from the green egg.
Screw up four or five pieces of red paper into balls, and place them in random slots around the egg carton. This is the lava.
Now, encourage one child in the pair to write down the steps the action figure will take to get first to the green egg and then to the blue. Then, ask the other child to follow those steps.
If the instructions work, they win the Kinder egg — if they don’t, they’ll need to streamline the instructions together.
If the action figure ever lands on a lava rock, the game is over, and they’ll need to start again; reassessing their algorithm.
HOW DOES THIS RELATE TO ALGORITHMS?
Ultimately, this activity encourages kids to think like computers and plan their moves in advance. To make the game harder, use a larger grid, and perhaps get older kids to collect as many eggs as possible for different prizes.
When their action figure lands on a lava rock, they need to go back to the planning stage to “debug” their code, which real-life programmers need to do when a piece of code fails to work.
This game offers rewards for accuracy, encouraging children to develop logical thinking and spatial awareness.
Algorithm exercises for kids!
I hope you’ve enjoyed exploring these simple algorithm exercises for kids. Ultimately, consider any fun task that requires a sequential process for successful completion and turn it into an algorithm game, such as:
Making and baking a cake (it will nearly always go wrong if you miss a step)
Tying your shoelaces
Making a cup of coffee or tea
Cleaning the windows
Setting the TV to record a program
Making a sandwich
Climbing a tree
Tidying their bedroom
In fact, if you’re really clever about it, you’ll get a very tidy house and your lunch made for you. All in the name of fun and learning!
Check out our blog for more ideas about algorithms and coding for kids.
Our world today is undergoing a rapid technological change. Which raises a very important question for educators and school leaders – how can we prepare our next generation for all the technological surprises the future holds?
Our world today is undergoing a rapid technological change. Which raises a very important question for educators and school leaders – how can we prepare our next generation for all the technological surprises the future holds?
Stay Up To Date on The Latest NEWS AND LEARN MORE ABOUT CODING FOR KIDS.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. However you may visit Cookie Settings to provide a controlled consent.
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Cookie
Type
Duration
Description
_codemonkey_session_rails_4
1
1 year
_ga
persistent
2 years
This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
cookielawinfo-checkbox-advertisement
persistent
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics
persistent
11 months
This cookies is set by GDPR Cookie Consent WordPress Plugin. The cookie is used to remember the user consent for the cookies under the category "Analytics".
cookielawinfo-checkbox-functional
persistent
11 months
cookielawinfo-checkbox-necessary
persistent
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-non-necessary
0
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Non Necessary".
cookielawinfo-checkbox-other
persistent
11 months
cookielawinfo-checkbox-performance
persistent
11 months
This cookie is used to keep track of which cookies the user have approved for this site.
JSESSIONID
1
1 year
Used by sites written in JSP. General purpose platform session cookies that are used to maintain users' state across page requests.
viewed_cookie_policy
persistent
1 hour
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
XSRF-TOKEN
persistent
1 year
The cookie is set by Wix website building platform on Wix website. The cookie is used for security purposes.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Cookie
Type
Duration
Description
rlas3
persistent
11 months
The cookie is set by rlcdn.com. The cookie is used to serve relevant ads to the visitor as well as limit the time the visitor sees an and also measure the effectiveness of the campaign.
UserMatchHistory
persistent
1 month
Linkedin - Used to track visitors on multiple websites, in order to present relevant advertisement based on the visitor's preferences.
This cookie is set by Google Analytics and is used to distinguish users and sessions. The cookie is created when the JavaScript library executes and there are no existing __utma cookies. The cookie is updated every time data is sent to Google Analytics.
__utmb
persistent
30 minutes
The cookie is set by Google Analytics. The cookie is used to determine new sessions/visits. The cookie is created when the JavaScript library executes and there are no existing __utma cookies. The cookie is updated every time data is sent to Google Analytics.
__utmc
persistent
1 year
The cookie is set by Google Analytics and is deleted when the user closes the browser. The cookie is not used by ga.js. The cookie is used to enable interoperability with urchin.js which is an older version of Google analytics and used in conjunction with the __utmb cookie to determine new sessions/visits.
__utmt
persistent
10 minutes
The cookie is set by Google Analytics and is used to throttle request rate.
__utmz
persistent
6 months
This cookie is set by Google analytics and is used to store the traffic source or campaign through which the visitor reached your site.
_gat
persistent
1 minute
This cookies is installed by Google Universal Analytics to throttle the request rate to limit the colllection of data on high traffic sites.
YSC
1
1 year
This cookies is set by Youtube and is used to track the views of embedded videos.
This cookie is used by Google Analytics to understand user interaction with the website.
_gid
persistent
1 day
This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the wbsite is doing. The data collected including the number visitors, the source where they have come from, and the pages viisted in an anonymous form.
GPS
persistent
30 minutes
This cookie is set by Youtube and registers a unique ID for tracking users based on their geographical location
MR
persistent
5 months
This cookie is used to measure the use of the website for analytics purposes.
MUIDB
1
1 year
This cookie is used by MicroSoft and collects data about users of visits on multiple website. This data is used to analyze the efficiency of advertisements on websites.
This cookie is set by Facebook to deliver advertisement when they are on Facebook or a digital platform powered by Facebook advertising after visiting this website.
bscookie
1
2 years
This cookie is a browser ID cookie set by Linked share Buttons and ad tags.
fr
1
3 months
The cookie is set by Facebook to show relevant advertisments to the users and measure and improve the advertisements. The cookie also tracks the behavior of the user across the web on sites that have Facebook pixel or Facebook social plugin.
IDE
1
2 years
Used by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
MUID
persistent
1 year
Used by Microsoft as a unique identifier. The cookie is set by embedded Microsoft scripts. The purpose of this cookie is to synchronize the ID across many different Microsoft domains to enable user tracking.
pxrc
persistent
2 months
The purpose of the cookie is to identify a visitor to serve relevant advertisement.
rlas3
persistent
11 months
The cookie is set by rlcdn.com. The cookie is used to serve relevant ads to the visitor as well as limit the time the visitor sees an and also measure the effectiveness of the campaign.
skimCSP
persistent
11 months
This cookie is set by SkimResources. The cookie is used to record data on the visitor to optimize the relevance of the advretisements served to the users.
TapAd_DID
persistent
2 months
The cookie is set by tapad.com. The purpose of the cookie is to track users across devices to enable targeted advertising
TapAd_TS
persistent
2 months
The cookie is set by Tapad.com. The purpose of the cookie is to track users across devices to enable targeted advertising.
TDCPM
persistent
1 year
The cookie is set by CloudFare service to store a unique ID to identify a returning users device which then is used for targeted advertising.
TDID
persistent
1 year
The cookie is set by CloudFare service to store a unique ID to identify a returning users device which then is used for targeted advertising.
test_cookie
persistent
15 minutes
This cookie is set by doubleclick.net. The purpose of the cookie is to determine if the users' browser supports cookies.
VISITOR_INFO1_LIVE
1
5 months
This cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.