Who’s exploring?

DISCOVER · ARTICLE

Algorithms are recipes for thinking

An algorithm is just a set of steps guaranteed to finish a job — you use them when you sort laundry, follow a recipe or find a name in a list.

A microscope in a bright laboratory

A word with a person's name inside

The word algorithm comes from the Latinised name of Muhammad ibn Musa al-Khwarizmi, a scholar in 9th-century Baghdad whose books on calculation taught Europe the Hindu-Arabic numerals we still use. His name became the word for any step-by-step method of solving a problem.

An algorithm must be precise enough that no judgement is needed mid-step, and it must finish. A cake recipe is nearly an algorithm — 'bake until golden' leaves a little judgement in, which is why recipes still sometimes fail us.

Algorithms you already know

Searching a printed phone book teaches the most elegant trick in computing. Open it in the middle: if your name comes later, throw away the entire first half. Repeat. Each step halves the search, so a million entries fall in about twenty steps. That is binary search, and computers use it constantly.

Sorting works the same way. Dealing cards into order one at a time, or splitting a pile into smaller piles and merging them sorted — these are real sorting algorithms, differing only in how much work they make you do.

Why steps matter

The study of algorithms is mostly the study of effort: how does the work grow as the problem grows? A method fine for ten names may be hopeless for ten billion. Choosing the right steps is the quiet heart of computer science.

When people argue about 'the algorithm' in daily life, they usually mean a company's recipe for ranking posts or videos. Remember the humble original: a recipe for thinking, written so carefully that even a machine — or a tired human — can follow it to the end.

Keep reading? Spark picked your next article.

Your first microscope slide: a drop of pond waterMore about Science

More in Computing

— forget which articles you’ve read on this device.

Sources, credits & transparency

Development reference photograph · Unsplash. Reference use; provenance and final image approval pending; see public/images/manifest.json.

Created with AI assistance as part of a bulk seed pack approved by the SparkKindly site owner on 15 November 2026. No independent specialist review is claimed.

Report a mistake on this page