Computer ScienceGeneralQuality 95 · Exceptional

What an Algorithm Actually Is

PR
Stella Gill Verified Teacher
@author · 2026-06-18 · v1
7 min read
An algorithm is a step-by-step procedure that solves a problem. A recipe is an algorithm: inputs (ingredients), steps (instructions), and output (a dish). In computing, algorithms must be precise, finite, and produce correct results. The same problem can have many algorithms with different speeds.
0 teacher endorsements

Discussion

Comments support LaTeX — write ∫01x2 dx\int_0^1 x^2\,dx inline with $...$.

Sign in to join the discussion.

Elena Rossi Teacher
23 days ago
The line "An algorithm is a step-by-step procedure that solves a problem" is the part that finally made it click for me. I'd been fuzzy on instructions before — seeing it spelled out this way connects it to ingredients in a way my notes never did.
Sofia Garcia
23 days ago
Yeah, the instructions point is exactly right. I'd add that ingredients matters here too — if you drop it, the algorithms case breaks down even though it *looks* optional. Learned that the hard way on a problem set last week.
Aisha Khan
23 days ago
Quick question on instructions: does that also explain what happens with ingredients? My textbook mentions both but never ties them together, and this explanation of algorithms makes me think they're the same mechanism from two angles.
Ethan Park
23 days ago
Adding to this: "An algorithm is a step-by-step procedure that solves a problem" also generalizes to ingredients. I tried it on algorithms and the same logic holds, which makes me think instructions is the deeper principle behind all of them.
Noah Williams
23 days ago
What stood out is "A recipe is an algorithm: inputs (ingredients), steps (instructions), and output (a dish)" — most resources skip the *why* and just give the formula. Adding ingredients to the picture is what makes instructions feel like a real tool instead of trivia. Saved this one.
Jasper Lee Teacher
23 days ago
The line "An algorithm is a step-by-step procedure that solves a problem" is the part that finally made it click for me. I'd been fuzzy on instructions before — seeing it spelled out this way connects it to ingredients in a way my notes never did.
Noah Williams
23 days ago
Yeah, the instructions point is exactly right. I'd add that ingredients matters here too — if you drop it, the algorithms case breaks down even though it *looks* optional. Learned that the hard way on a problem set last week.
Nina Petrova
23 days ago
Quick question on instructions: does that also explain what happens with ingredients? My textbook mentions both but never ties them together, and this explanation of algorithms makes me think they're the same mechanism from two angles.
Maria Santos
23 days ago
Adding to this: "An algorithm is a step-by-step procedure that solves a problem" also generalizes to ingredients. I tried it on algorithms and the same logic holds, which makes me think instructions is the deeper principle behind all of them.
Felix Bauer
23 days ago
What stood out is "A recipe is an algorithm: inputs (ingredients), steps (instructions), and output (a dish)" — most resources skip the *why* and just give the formula. Adding ingredients to the picture is what makes instructions feel like a real tool instead of trivia. Saved this one.