Algorithm and Flowchart concept
Algorithm
An algorithm is defined as sequence of steps to solve a problem (task). The steps must be finite, well defined and unambiguous. Writing algorithm requires some thinking. Algorithm can also be defined as a plan to solve a problem and represents its logic. Note that an algorithm is of no use if it does not help us arrive at the desired solution.
Algorithm characteristics
- It should have finite number of steps. No one can be expected to execute infinite number of steps.
- The steps must be in order and simple
- Each step should be defined clearly stated e. without un-ambiguity (without doubtfulness)
- Must include all required information
- Should exhibit at least one output
Flowchart
A flowchart is a pictorial (graphical) representation of an algorithm. A flowchart is drawn using different kinds of symbols. A symbol is used for a specific purpose. Each symbol has name.
Disadvantages of Flowcharts
Takes more time to draw. Imagine developing a detailed flowchart for a program containing 50000
lines or statements of instructions