to
Programming
, Introduction to Programming
Problem solving is a natural human tendency. Some problems
require high computational power and therefore cannot be
solved manually. These problems can be solved using a
Computer
Computer is simply a machine with no intelligence. Since it
cannot do any task on its own, it must be instructed in
unambiguous (clear) steps by a programmer in such a way that
it follows them one after the other to solve a problem.
Programming is defined as letting the Computer know how to
solve a problem. It becomes programmer’s duty to tell the
computer what sequence of steps are to be followed in order
to solve a problem. Therefore, a Program is the final form of
expressing the sequence of steps to computer using a particular
programming language
, Algorithm
An algorithm can be defined as a well defined sequence of steps
that are to be followed to solve a given problem .
or
A step by step procedure to solve a given problem.
The desirable features of an Algorithm are :
Each step of algorithm should be simple
It should be unambiguous in the sense that the logic should be
clear
It should be effective i.e. it must lead to a unique solution of the
problem
It must end in a finite number of steps
It should be as efficient as possible