# Algorithm

**Topic:** Maths · Applied mathematics  
**Page:** https://curium.ctopass.com/en/c/l-algorithme  
**Updated:** 2026-09-30

## The three levels

### Beginner — What do a recipe and a computer program have in common?

Both are algorithms: a finite, ordered sequence of instructions leading to a result. A recipe says to add, mix, and bake in order; a program adds, compares, and displays. Following the steps in the correct order is enough to get the dish, or the calculation you want.

### Intermediate — What does a loop do in an algorithm?

To repeat instructions without rewriting them. To display numbers from 1 to 100, you do not write a hundred lines: a loop repeats 'display the number, then move to the next' until the count is reached. A loop is what makes an algorithm both short and powerful.

### Expert — How can an algorithm make a choice while it runs?

Through a conditional test, in the form 'if... then... else'. The algorithm evaluates a condition — for example 'is this number even?' — then executes different instructions depending on whether it is true or false. This is what allows the same program to respond to different data.

## Explore next

- [Travelling salesman problem](https://curium.ctopass.com/en/c/probleme-du-voyageur-de-commerce.md)
- [Tower of Hanoi](https://curium.ctopass.com/en/c/tours-de-hanoi.md)
- [Prisoner's dilemma](https://curium.ctopass.com/en/c/dilemme-du-prisonnier.md)
- [Monte Carlo method](https://curium.ctopass.com/en/c/methode-de-monte-carlo.md)
- [Percentage](https://curium.ctopass.com/en/c/pourcentage.md)
- [Linear programming](https://curium.ctopass.com/en/c/programmation-lineaire.md)
- [Proportionality](https://curium.ctopass.com/en/c/proportionnalite.md)
- [Graph theory](https://curium.ctopass.com/en/c/theorie-des-graphes.md)
- [Chebyshev's inequality](https://curium.ctopass.com/en/c/inegalite-de-bienayme-tchebychev.md)
- [Inequality](https://curium.ctopass.com/en/c/inequation.md)

---

Curium — Knowledge, one question at a time.

App Store: https://apps.apple.com/fr/app/curium/id6793886587
Google Play: https://play.google.com/store/apps/details?id=com.ctopass.curium
