Algorithm:
An algorithm is a step-by-step finite set of instructions that is used to solve well define computational problems. Every algorithm must have five criteria.
- Input: Every algorithm must have one or more inputs.
- Output: Every algorithm must produce at least one output.
- Definiteness: Every algorithm in instruction must be cleared
- Finiteness: Every algorithm must be terminated after a finite no of steps.
- Effectiveness: Each algorithm must be carried out by a mass using a pen, paper, and pencil.
A symbol used in a Flow-chart
- start and stop symbol – Oval shape
- Input and output symbol – parallelogram
- Process indicator – Rectangle
- Decision-making statement – Rhombus