Computer ScienceGeneralQuality 85 · Exceptional

What an Algorithm Actually Is

PR
Ian CastroTeacher Tier
@author · 2026-07-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.

Lena Volkov
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.
Sanjay Gupta
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.
Theo Andersson
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.
Elena Rossi
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.
Amara Okafor
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.
Elena Rossi
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.
Olivia Murphy
23 days ago
The textbook comparison is fair — I think the reason instructions gets glossed over is that most authors assume you already see the link to ingredients. Breaking out algorithms separately like this is what makes it beginner-friendly.