Computer ScienceGeneralQuality 78 · Exceptional
What an Algorithm Actually Is
PR
Niko Varma Verified Teacher
@author · 2026-08-11 · 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 inline with $...$.
Sign in to join the discussion.
Aisha Khan
23 days agoThe 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.
Ethan Park
23 days agoYeah, 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.
Noah Williams
23 days agoQuick 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.
Olivia Murphy
23 days agoAdding 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.
Maria Santos
23 days agoWhat 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.
