Algorithms and Coding for Kids and Tweens
Start writing a post
Student Life

Algorithms and Coding for Kids and Tweens

Kids

61
Algorithms and Coding for Kids and Tweens

Algorithms or pseudocode is nothing but a logical set of flow of instructions to achieve some desired result. Algorithms are all around us and some common examples of algorithms we use in simple everyday life are: how to assort and store your fruits, vegetables and other food in the refrigerator, starting a car and going out for some work, planning your visit to the dentist, stacking a set of blocks, arranging the books in your bookshelf, and many other scenarios, playing a tic-tac-toe game or arranging a set of blocks to complete a puzzle.

For example, if you're sitting in the bedroom right now and you want to go out in a car, you can ask the child: what are the various steps you’re going to perform to achieve that desired result to go out in a car? The logical series of steps might be something like the below.

1.Get up

2.Take your car keys

3.Open the front door

4.Go to the car basement

5.Unlock the car

6.Get into the car

7.Wear the seat belt

8.Close the car door

9.Start the car

10.Ride!

Then, once children are comfortable with the basic grasp of the concept of algorithms, top quality coding courses for kids take it up a notch by introducing more complex examples such as how to program a lift in a building. When you ask a child to understand how the lift in a building works, there are multiple criteria to consider: there are a set of people pressing the buttons to go to different floors from different floors and a different set of people waiting to get-in and waiting to go out of the lift to designated floors. So, if the lift were to be a person, he or she would get overwhelmed by the requests. So, how should one program the lift? If the lift were to be on the 10th floor, should it prioritise going to the 20th floor or the ground floor? This is an example of a beautiful practical way to make children understand a slightly more complex problem and in the process introduce navigation and traversal algorithms.

The first focus is to help children to understand the basic problems of stacking, re-arranging arrays, working on small problems involving stacks and queues, searching and sorting algorithms, and then move onto the various algorithmic techniques once the children get a good hang of the big picture.There are different categories of algorithms classified depending on their approach and the kind of pattern of solutioning required to solve some problem. Something like, for example if we don’t have Google Maps and if we want to go from point A to point B, what is the approach. We probably know the rough direction to take and from thereon we would stop once a while and check and ask people for directions. You can call this a brute-force approach to getting directions because you’re willing to do multiple things on the journey that might get you the directions and there is no specific plan to use any technology or any approach.

Can children write algorithms?

Yes, children can write algorithms, after all it is nothing but a way of solving something and providing the computer a set of instructions in a specified syntax (programming language). You can get children started by writing down their morning routine or an algorithm for something easier like eating cereal or brushing their teeth. It will enable them to learn computational concepts like repetition (brush the bottom left tooth five times), sequencing (place food in the bowl and then add milk), and conditional logic (if you fill-up the bowl, stop eating).

Once children are introduced to the basic concepts and are comfortable writing small pseudo-code and using basic programming structures, then we can explain to children what are the common types of algorithms used in the technology that they use everyday like search engines, video recommendation engines, ad publishing, dictionary, timer and stop-clocks, etc. We can then integrate a lot of problem-solving using different types of algorithms and in various subject-knowledge applications such as physics, geography, and history, such that the child is enjoying and at the same time integrating practical application from various subjects and using that knowledge for problem-solving and algorithmic thinking.

The various classes of algorithms that are generally used are as follows:

●Brute-force approach - solve a problem by exhausting all options linearly

●Divide and Conquer - divide a problem into smaller problems and then solve the smaller problems and sum up to the larger problem in a meaningful way.

●Recursive algorithms - used very often, repetition of the same logic to solve a repeated pattern of problems.

●Greedy Algorithms - optimising for one aspect in solving the problem. For example, optimising for computation time or optimising for memory usage.

●Backtracking - an algorithmic technique to use all paths back and forth until all paths are covered to solve the problem.

●Dynamic Programming - technique used when there are overlapping recursive sub-problems which are repetitive in nature.

Coding for Kids is important to develop “how to think” skills

Most kids might usually start with Scratch and Python. But, if you are bored and want to do something exciting, while learning the problem-solving skills, logical thinking and creativity, then kids can take these coding courses apart from Scratch and Python. For example, it is a good choice for kids to learn Java because it is a widely used programming language in academia and industry. It is used to build a wide range of applications from desktop, mobile and web applications. It is used well to build both backend and frontend applications as it has a popular GUI and also strong support among the developer community.

In teaching coding to kids, the focus has to be a lot on providing children the building blocks of programming and logical thinking for problem-solving. Once these fundamental tenets of algorithmic-thinking are in place, as a tutor one can then start to build more complex layers of algorithms and various types of programming languages to achieve specific goals and develop their computer-science fundamentals.

Hope this post is useful to provide a glimpse of how exposing kids to algorithms and coding can be really helpful, thank you.

Report this Content
This article has not been reviewed by Odyssey HQ and solely reflects the ideas and opinions of the creator.
the beatles
Wikipedia Commons

For as long as I can remember, I have been listening to The Beatles. Every year, my mom would appropriately blast “Birthday” on anyone’s birthday. I knew all of the words to “Back In The U.S.S.R” by the time I was 5 (Even though I had no idea what or where the U.S.S.R was). I grew up with John, Paul, George, and Ringo instead Justin, JC, Joey, Chris and Lance (I had to google N*SYNC to remember their names). The highlight of my short life was Paul McCartney in concert twice. I’m not someone to “fangirl” but those days I fangirled hard. The music of The Beatles has gotten me through everything. Their songs have brought me more joy, peace, and comfort. I can listen to them in any situation and find what I need. Here are the best lyrics from The Beatles for every and any occasion.

Keep Reading...Show less
Being Invisible The Best Super Power

The best superpower ever? Being invisible of course. Imagine just being able to go from seen to unseen on a dime. Who wouldn't want to have the opportunity to be invisible? Superman and Batman have nothing on being invisible with their superhero abilities. Here are some things that you could do while being invisible, because being invisible can benefit your social life too.

Keep Reading...Show less
Featured

19 Lessons I'll Never Forget from Growing Up In a Small Town

There have been many lessons learned.

49290
houses under green sky
Photo by Alev Takil on Unsplash

Small towns certainly have their pros and cons. Many people who grow up in small towns find themselves counting the days until they get to escape their roots and plant new ones in bigger, "better" places. And that's fine. I'd be lying if I said I hadn't thought those same thoughts before too. We all have, but they say it's important to remember where you came from. When I think about where I come from, I can't help having an overwhelming feeling of gratitude for my roots. Being from a small town has taught me so many important lessons that I will carry with me for the rest of my life.

Keep Reading...Show less
​a woman sitting at a table having a coffee
nappy.co

I can't say "thank you" enough to express how grateful I am for you coming into my life. You have made such a huge impact on my life. I would not be the person I am today without you and I know that you will keep inspiring me to become an even better version of myself.

Keep Reading...Show less
Student Life

Waitlisted for a College Class? Here's What to Do!

Dealing with the inevitable realities of college life.

121629
college students waiting in a long line in the hallway
StableDiffusion

Course registration at college can be a big hassle and is almost never talked about. Classes you want to take fill up before you get a chance to register. You might change your mind about a class you want to take and must struggle to find another class to fit in the same time period. You also have to make sure no classes clash by time. Like I said, it's a big hassle.

This semester, I was waitlisted for two classes. Most people in this situation, especially first years, freak out because they don't know what to do. Here is what you should do when this happens.

Keep Reading...Show less

Subscribe to Our Newsletter

Facebook Comments