Technology
The algorithm: what it really is (and why it's not a dirty word)
In 30 seconds quick read
An algorithm is a finite, precise sequence of steps to achieve a result: the definition covers a cooking recipe as much as Google's code. The word comes from the Persian mathematician al-Khwarizmi, who lived more than a thousand years ago. Today "the algorithm" has become the popular name for the systems that rank content on social media — which are algorithms, of a particular kind.
Key Points
- Algorithm = a computable set of steps to achieve a desired result (NIST definition).
- It must be precise (no ambiguous steps) and finite (it eventually ends).
- The word comes from al-Khwarizmi, a Persian mathematician who wrote an arithmetic treatise around 825 A.D.
- A recipe, assembly instructions, long division: algorithms you've executed all your life.
- All software is made of algorithms; the computer executes them literally, without interpreting.
- 'The social media algorithm' is a recommendation system: it picks what to show you based on your behavior.
Key figures
- ~825 A.D. the era of al-Khwarizmi's arithmetic treatise, from which the word 'algorithm' derives Source: NIST
Deep Dive
The most misunderstood word of the decade
“The algorithm decided.” In everyday speech the word has become shorthand for the dark power of social media. A pity, because the concept is among the clearest humanity has produced: an algorithm is a finite, precise sequence of steps to achieve a result — in NIST’s formula, “a computable set of steps to achieve a desired result”.
That’s all. And you’ve been executing them all your life.
Practical example: the long division you learned in school is a full-fledged algorithm: precise steps, mandatory order, guaranteed result. It works identically for anyone who executes it — which is exactly the point of the definition.
A name with a thousand years of history
No Silicon Valley here: the word comes from the Persian mathematician al-Khwarizmi, author around 825 A.D. of a treatise on the rules of calculation. The Latinization of his name, century after century, became “algorithm”. When Google was still eleven centuries away, algorithms were already at work: procedures for computing, dividing, solving.
Two properties make a procedure an algorithm. Precision: no step may be ambiguous (“add salt to taste” disqualifies a recipe from mathematical rigor). Termination: the steps eventually end and the result arrives.
Inside every piece of software, literally
A computer doesn’t understand, interpret or intuit: it executes. Every app you use is a weave of algorithms — for ranking results, searching archives, compressing photos, routing messages — executed billions of times per second, to the letter.
An algorithm’s quality is measured above all in efficiency: how many steps it needs as the data grows. On a thousand items any method works; on a billion, the gap between a well-designed algorithm and a naive one is the gap between a second and a week.
So what is “the algorithm” on social media?
What we call a social network’s “algorithm” is a recommendation system: it observes your behavior — clicks, pauses, shares — and ranks content by predicting what will keep you around longest. Technically, these days it’s largely machine learning: the rules aren’t written by hand but learned from billions of users’ data, often through neural networks.
Two things deserve clarity. First: it’s not an autonomous entity — it’s a product designed by people with a business objective, usually maximizing time on the platform. Second: its precision doesn’t make it neutral. An algorithm faithfully executes the choices of whoever built it, and if it learns from data it inherits the data’s distortions. Understanding this is the best antidote to both the fear and the blind trust — and, in the end, the reason this word deserved an article.
Common myths
-
✗ Myth Algorithms are a matter for mathematicians and programmers.
✓ Reality You've been executing algorithms forever: the long division you learned in school is one, and so are a recipe or furniture assembly instructions. Computing made them fast; it didn't invent them.
-
✗ Myth The social media algorithm is a mysterious entity deciding on its own.
✓ Reality It's a recommendation system designed by people with a stated objective, usually maximizing time on the platform: it learns from your clicks and shows what it predicts will keep you there. No magic, plenty of business decisions.
-
✗ Myth If an algorithm says it, it's objective.
✓ Reality An algorithm faithfully executes its designers' choices and, if it learns from data, absorbs the data's distortions. Precision of execution doesn't guarantee neutrality of outcome.
Mind map
Drag the background to move around and the nodes to reposition them; use − and + to collapse and expand branches.
- The algorithm
- The definition
- Computable steps toward a result Finite, precise, in order.
- The two properties
- No ambiguity, termination
- The history
- al-Khwarizmi, ~825 A.D. The treatise the word comes from.
- Before computers
- Long division, recipes
- In computing
- All software is made of them
- Efficiency
- Steps and memory on large data
- In everyday speech
- The social media algorithm A recommendation system.
- Objective, keeping you engaged
- Not neutrality It executes its designers' choices.
- The social media algorithm A recommendation system.
- The definition
Quiz: test yourself
Answer the questions to check what you have learned: you get instant feedback and a short explanation.
Flashcards
Tap the card to flip it and check whether you remember the answer, then move to the next one.
Explain it in your own words
The ultimate test: if you can explain it in simple words, you've truly understood it. Write your explanation, then compare it with the Recap.
An algorithm is a finite, precise sequence of steps to achieve a result: the definition covers a cooking recipe as much as Google's code. The word comes from the Persian mathematician al-Khwarizmi, who lived more than a thousand years ago. Today "the algorithm" has become the popular name for the systems that rank content on social media — which are algorithms, of a particular kind.
Frequently asked questions
What's the difference between an algorithm and a program?
The algorithm is the abstract procedure; the program is its translation into a language the computer executes. The same sorting algorithm can be written in Python, JavaScript or on paper: the packaging changes, the logic doesn't.
What makes one algorithm 'better' than another?
For the same result, efficiency: how many steps and how much memory it needs as the data grows. Sorting a thousand numbers is easy with any method; sorting a billion separates well-designed algorithms from naive ones.
Can social media algorithms be 'gamed'?
Every recommendation system responds to the signals it receives: engaging with certain content brings more of it. It works in reverse too: creators study which signals get rewarded to gain visibility, and platforms keep updating their systems precisely because of that chase.
Has AI made traditional algorithms obsolete?
No — it joined them: machine learning models are themselves executed by algorithms, and under every app, classic algorithms (sorting, searching, routing) coexist with components learned from data. Who writes the rules changes; the nature of the procedure doesn't.