Algorithm ICT
Algorithm ICT
Before programming...
- Solving a problem means obtaining a result starting from a certain initial state and following an
appropriate
procedure.
- We need to analyze the problem by identifying the input data and, after processing, we shall obtain the
output data.
- Before writing the code to be executed we can "draw" a series of instructions that can solve the problem.
----------------------------------------------------------------------------------------------------------------------------------------------
ALGORITHM
The word “algorithm” relates to the name of the mathematician Al-khowarizmi, which means a procedure
or a technique. Software Engineer commonly uses an algorithm for planning and solving the problems. An
algorithm is a sequence of steps to solve a particular problem or algorithm is an ordered set of
unambiguous steps that produces a result and terminates in a finite time.
The algorithm and flowchart include following three types of control structures:
1. Sequence: In the sequence structure, statements are placed one after the other and the execution
takes place starting from up to down.
2. Branching (Selection): In branch control, there is a condition and according to a condition, a decision of
either TRUE or FALSE is achieved. In the case of TRUE, one of the two branches is explored; but in the case
of FALSE condition, the other alternative is taken. Generally, the ‘IF-THEN’ is used to represent branch
control.
3. Loop (Repetition): The Loop or Repetition allows a statement(s) to be executed repeatedly based on
certain loop condition e.g. WHILE, FOR loops.
----------------------------------------------------------------------------------------------------------------------------------------------
FLOWCHART
Flowcharts are diagrams that visually describe how the execution of a program proceeds. They are not
related to a specific language.
It is a visual language understandable to all programmers. The flow chart also helps the programmer to
correctly describe an algorithm.
Flowchart is diagrammatic /Graphical representation of sequence of steps to solve a problem. To draw a
flowchart following standard symbols are use.