Wednesday, 26 June 2013

difference between Algorithm, Pseudo-code and Program? [ simple and short but yet everything ]

algorithm: ( set of logic statement/method ) :
is a detailed sequences of steps from beginning to end to carry out the whole process.
logic or the basic plan of the action, behind of getting something done.it has rules to follow.

pseudo-code: ( function of describing/outlining the algorithm ) :
pseudo code is kinda like "intermediary" between algorithm and implemented program.
algorithm is the semantic of the process while pseudo code is the syntax to communication sake to solve any problem or do any task. no rules

program:
a detailed set of instruction for a machine (in this case the computer itself) to carry out the task.
its the real implement of computer algorithms. program start working after when the  algorithm is done making.


in short:
algorithm is the "skeleton" of the plan/task and program  is like "giving it it's shape" and pseudo code is telling the program how the algorithm wants the plan/ task to turn out to be.

among these three PSEUDO-CODE is the most easiest for human brain to understand or to make.

No comments:

Post a Comment