Algorithm: - It Is A Finite Set of Instructions That Represent The Step by Step Logical Procedures For
Algorithm: - It Is A Finite Set of Instructions That Represent The Step by Step Logical Procedures For
solving a problem
Properties of Algorithms:-
(1) input:- zero or more inputs
(2) output – at least one quantity is produced
(3) Definiteness – each instruction is clean and unambiguous.
(4) Finiteness – the algorithm should terminate after a finite number of steps. It should not
enter into infinite loop.
(5) Effectiveness: - each operation must be simple and should complete in a finite time.
Algorithm can be written in English like sentences. Algorithm written in English like language is
called pseudo code.
Flowchart:-
A Flowchart is a practical representation of an algorithm that uses boxes of different
shapes to denote different types of instructions.
à A flowchart shows the flow of operations in pictorial form, any error in the logic of the problem
can be detected very easily.
Flowchart symbols:-
A few symbols are needed to indicate the necessary operations in a flowchart. These symbols
have been standardized by the ANSI(American National Standard Institute).
I. Terminal:- The terminal (oval) symbol as the name implies is used to indicate the
beginning <START>, ending <STOP> and pause <HALT> in the program logic flow.
IV. Flow lines:- Flow lines with arrow Heads are used to indicate the flow operations i.e. the
exact sequence in which the instructions are to be executed.
V. Decision :- The decision <Diamond> symbol is used in a Flowchart to indicate a point at
which a decision has to be made and a branch to one of two or more alternate points is
possible.
VI. Connectors: - if a flowchart becomes very long the flow lines start crises crossing at many
places that cause confusion and reduce understandability of the flowchart.
VII. Predefined Process:- the predefined process(Double sided rectangle) symbol is used in
flowcharts to indicate modules or subroutines are specified.
VIII. Annotation: - The annotation (Bracket with broken line) symbol is used in flowcharts to
indicate the descriptive comments or explanation of the instruction.
----------------