Safekipedia

Algorithm

Explorer · ages 7 and underAdapted from Wikipedia
An imagined portrait of Al-Khwarizmi, the 9th-century scholar whose work helped give us algebra.

What Is an Algorithm?

An algorithm is a set of clear, exact instructions. People use algorithms in computer science to do calculations and to sort out data processing. They work like step-by-step plans.

Algorithms help solve problems. You follow one step at a time, and each step leads you closer to the answer.

Where Does the Word Come From?

The word "algorithm" comes from a clever person named al-Khwarizmi. He was a scientist who lived more than 1,000 years ago. He wrote books about numbers and math.

People have used step-by-step plans for a very long time. Some of the oldest ones were written down on clay tablets, long before computers existed.

Algorithms All Around Us

You can think of a recipe as an algorithm. It gives you clear steps to follow, one after another. Every computer program is also a set of steps that a computer follows.

Computers became much more useful thanks to early helpers like Ada Lovelace. She wrote one of the first algorithms meant for a computer. Her work was made possible by ideas from Charles Babbage.

Today, apps like Instagram and YouTube use algorithms. These help the apps learn what people enjoy and show them more of it.

Quiz time!

3 questions about Algorithm

Question 1 of 3

What is an algorithm?

Pictures

Flowchart of an algorithm to find the greatest common divisor of two numbers.
A diagram from Ada Lovelace's notes showing a step-by-step method for the Analytical Engine to calculate Bernoulli numbers.

Keep exploring

This article is a child-friendly adaptation of the Wikipedia article on Algorithm, available under CC BY-SA 4.0.

Images from Wikimedia Commons. Tap any image to view credits and license.