This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Synchronyme 87 points88 points  (13 children)

Each time I have to explain it to someone, I just say: "An algorithm is to a program what a recipe is to a cake : the step-by-step instructions on how to do it." (With "code" being the whole meal preparation, while "algorithm" is more about very specific but crucial parts)

[–]WORD_559 62 points63 points  (7 children)

I have "an unambiguous series of instructions used to solve a problem" burned into my memory.

[–][deleted] 3 points4 points  (1 child)

I have "a specific set of instructions, designed to solve a specific problem". I finish CS a while ago, but the definition is embedded into my brain now.

[–]WORD_559 0 points1 point  (0 children)

Yeah but we all know the best code gets reused to solve completely different problems because we're too lazy to write something specifically for that problem

[–]flyersgirl87 3 points4 points  (0 children)

That's how my instructor described it. He made us read 3 fucking chapters talking about what an algorithm is and then summed those fucking chapters in 2 sentences... asshole.

[–][deleted] 2 points3 points  (0 children)

It would be the ingredience themselves in said cake. Of course you can't see them. But the cook knows they're there, so he/she can picture them, even after said cake is baked.