lexicow

algorithmvslogarithm

An algorithm is a step-by-step procedure for solving a problem; a logarithm is a mathematical operation that measures a number by its order of magnitude, in powers of ten. They look and sound almost the same — the same letters jumbled — but an algorithm is a method you follow, while a logarithm is a calculation about scale.

algorithm

A token drops into a diamond marked '?', the single fork where the path is decided. Answer yes and the left branch lights and carries it to one box; answer no and the right branch lights to another. Same question, a fixed rule, two clean outcomes — a method that routes every case by its answer.

/ˈælɡəˌrɪðəm//ˈælɡərɪðəm/·noun
vs
logarithm

Beside it, a column whose rungs are spaced evenly, yet labelled 1, 10, 100, 1000 — each ten times the last. The fill climbs one equal stride at a time while the value behind it multiplies tenfold. Where the first scene follows a route, this one measures a magnitude.

/ˈlɔːɡəˌrɪðəm//ˈlɒɡərɪðəm/·noun

These two are confused for one reason only: they are near-anagrams that share a rhythm and a Greek-flavoured ending, so the eye and ear keep swapping them. Yet they come from different worlds. Algorithm honours the mathematician al-Khwārizmī and means an ordered recipe of steps — a process. Logarithm was coined by John Napier from logos ('ratio') and arithmos ('number') and names an operation that turns powers of ten into equal steps — a measure of scale. One tells you how to do something; the other tells you how big something is.

What each means

algorithm

An algorithm is a finite sequence of exact, ordered steps that turns an input into a result: do this, then this, then stop. The name is a worn-down tribute to the 9th-century mathematician al-Khwārizmī, whose rules for calculation reached medieval Europe as 'algorism'. What defines an algorithm is not cleverness but repeatability — follow the same steps in the same order and you reach the same answer every time. A recipe, a long-division method, and the strategy a search engine uses to rank pages are all algorithms. It is constantly confused with logarithm, a word that merely sounds alike.

logarithm

A logarithm answers one question: how many times must I multiply the base by itself to reach this number? The base-10 logarithm of 1000 is 3, because 10 × 10 × 10 = 1000. Coined in 1614 by John Napier from the Greek logos ('ratio') and arithmos ('number'), it turns multiplication into addition and compresses enormous ranges into a readable scale. That is why earthquakes, sound, and acidity are read on logarithmic scales, where each equal step is a tenfold jump in the real quantity — a hidden surge that the even spacing politely conceals. It rhymes with algorithm but shares none of its meaning.

At a glance

algorithmlogarithm
Meaninga step-by-step procedure to solve a probleman operation measuring a number's order of magnitude
Fieldcomputing, maths, any methodmaths, science, data
Key axishow to do it — a processhow big it is — a scale
Often withsorting / search · run an algorithmnatural / base-10 · a logarithmic scale
Adjectivealgorithmiclogarithmic
Examplea sorting algorithma logarithmic scale

How to remember the difference

Hear the hidden words. AlGORITHM carries a faint 'rhythm' — a set of steps with a beat you follow in order, like dance moves. LOGARITHM starts with 'log', and a log is a record of numbers; it is about counting how many tens. Steps with a rhythm → algorithm. Counting in logs of ten → logarithm. Or simply: an algorithm is something you DO; a logarithm is something you CALCULATE.

Examples

algorithm

  • The app uses a simple algorithm to decide which notification to send first.
  • Sorting a million names by hand is hopeless, but the right algorithm does it in seconds.
  • Critics want the company to reveal the algorithm that decides what each user sees.

logarithm

  • On a logarithmic scale, the jump from 1 to 10 takes the same space as 10 to 100.
  • Engineers use the logarithm of the signal strength to keep the numbers manageable.
  • The pH scale is a logarithm, so acid at pH 3 is ten times stronger than pH 4.

They are never interchangeable: you run an algorithm and you take a logarithm. If the sentence is about a method or a set of steps, it is algorithm; if it is about scale, magnitude, or powers of ten, it is logarithm. A quick tell: 'algorithmic' describes procedures and rules, while 'logarithmic' describes scales and growth.

FAQ

What is the difference between an algorithm and a logarithm?
An algorithm is a step-by-step procedure for solving a problem or completing a task. A logarithm is a mathematical operation that measures a number by its order of magnitude — how many powers of ten it represents. One is a method; the other is a calculation about scale.
Are algorithm and logarithm related?
No, beyond a coincidental resemblance. They share many letters and a similar rhythm, but algorithm comes from the name al-Khwārizmī and means a procedure, while logarithm comes from the Greek logos and arithmos and means a scale operation. Different roots, different fields.
Why are algorithm and logarithm so easily confused?
Because they are near-anagrams that sound alike and both end in '-rithm'. The confusion is purely about spelling and sound; their meanings are unrelated, so context makes the right choice clear once you look at it.
How do I remember which is which?
Algorithm hides a 'rhythm' — ordered steps you follow in time. Logarithm starts with 'log', a record of numbers, and counts tens. You DO an algorithm; you CALCULATE a logarithm.
Which one is used in computer science?
Algorithm. Programs run algorithms — ordered instructions. Logarithms appear in computer science too, but as a mathematical tool (for example, to describe how fast an algorithm runs), not as the procedure itself.
What are the adjective forms?
Algorithmic (as in 'algorithmic trading') and logarithmic (as in 'a logarithmic scale'). The adjectives differ in meaning just as sharply as the nouns.

Related confusing words

algorithm — full entrylogarithm — full entry← All confusing words