My Morning Algorithm
An Introduction to Algorithms
An algorithm is a list of steps you follow to finish a task. For example, a recipe for how to make pizza in an algorithm:
1. Spread the dough in the pan
2. Cover the dough in a layer of pizza sauce
3. Sprinkle cheese on top of the sauce
4. Bake the pizza for 20 minutes at 350 degrees Fahrenheit.
5. Take the pizza out of the oven and let it cool
6. Dig in!
You may not have realized it before, but you use algorithms like this one all day every day – from making a peanut butter and jelly sandwich to solving math problems at school. Computers need algorithms and programs to show them how to do even the simplest things that we can do without thinking about them.
What is it?
Coding, or Programming, is simply the way people tell a computer what to do using instructions that the computer understands.
Computer science is the study of computers and the processes that use algorithms – including their principles, their hardware and software designs, and their impact on society.
What is the difference between an algorithm and a program?
An algorithm is the thinking behind what needs to happen, while the program is the actual instructions that make it happen. An algorithm has to be translated into a program before a computer can run it.
My Morning Algorithm
In this activity, you’re going to write your own algorithm for something you do every day – your morning routine! Make a list of the things you do in the morning to get ready for school – from waking up to leaving for school. You may want to write each action as numbered steps in a sequential order. Share your morning algorithm with your team.
Did you notice anything that you all did the same or different? Are there places where the order of your routine matters and places where it doesn’t? Brainstorm with your team other examples of algorithms that you do each day.