Introduction To Algorithms and Programming Languages: Oxford University Press 2012. All Rights Reserved
Introduction To Algorithms and Programming Languages: Oxford University Press 2012. All Rights Reserved
INTRODUCTION TO ALGORITHMS
AND PROGRAMMING
LANGUAGES
Any algorithm has a finite number of steps and some steps may involve decision
making, repetition. Broadly speaking, an algorithm exhibits three key features that
can be given as:
Sequence: Sequence means that each step of the algorithm is executed in the specified
order.
Decision: Decision statements are used when the outcome of the process depends on
some condition.
Repetition: Repetition which involves executing one or more steps for a number of
times can be implemented using constructs like the while, do-while and for loops. These
loops executed one or more steps until some condition is true.
Design
OF CORRECT, EFFICIENT AND MAINTAINABLE
PROGRAMS
Implementatio
n The design and development of correct, efficient and maintainable
Testing programs depends on the approach adopted by the programmer
to perform various activities that needs to be performed during
Software
Deployment, the development process. The entire program or software
Training and
Support (collection of programs) development process is divided into a
Maintenance
number of phases where each phase performs a well defined task.
Moreover, the output of one phase provides the input for its
subsequent phase.
The phases in software development process is shown in the
figure.