+ 1
What's the difference between pseudocode and algorithm?
is there any differences between the pseudocode for a program and the algorithm for a program? What are they? if no, why?
1 Odpowiedź
0
They aren't the same thing in any way. You could just as well ask "What's the difference between an assay about cars and a car?" You couldn't quite name differences, because there weren't any similarities to begin with.
An algorithm is kind of a recipe for solving a task in a determined manner. It's the abstract idea of performing certain (maybe conditional) steps, to arrive at a goal.
Pseudocode is a syntax to describe the flow of a program or process. As such, it *can* describe algorithms. But the pseudocode is in no case the algorithm, as describing something isn't being that something. Just as an assay about cars isn't a car (or anything near a car), even tho it might describe one or more cars.