Advantages of Algorithms
Some advantages of algorithm are as follows:
- Reduced Complexity
Writing algorithm and program separately simplifies the overall task by dividing it into two simpler tasks. While writing the algorithm, we can focus on solving the problem instead of concentrating on a particular language.
- Increased Flexibility
Algorithm is written so that the code may be written in any language. Using the algorithm, the program could be written in Visual Basic, Java or C++ etc.
- Ease of Understanding
It is not necessary to understand a particular programming language to understand an algorithm. It is written in an English like manner.
Flowchart is combination of two words flow and chart. A chart consists of different symbols to display information about any program. Flow indicates the direction of processing that takes place in the program.
Flowchart is a graphical representation of an algorithm. It is a way of visually presenting the flow of data, operations performed on data and sequence of these operations. Flowchart is similar to the layout plan of a building. A designer draws the layout plan of the building before constructing it. Similarly, a programmer prefers to design the flowchart before writing the computer program. Flowchart is designed according to the defined rules.
Uses of Logic Flowchart
Flowchart is used for the following reasons:
- Flowchart is used to represent an algorithm in simple graphical manner.
- Flowchart is used to show the steps of an algorithm in an easy way.
- Flowchart is used to understand the flow of the program.
- Flowchart is used to improve the logic for solving a program.
- Programs can be reviewed and debugged easily.
Flowchart uses simple symbols to show different types of statements:
Parallelogram symbol is used to represent an input or output step. Input statement is used to get input from user. The output statement is used to display a message to the user or to display a value.
Rectangular symbol is used to represent a process step. A process may be a complex calculation or simply an assignment statement.
Diamond symbol is used to represent a selection step. A condition is given in the diamond. The flow of control from diamond may go in two directions i.e. one direction if the condition is true and the second direction if the condition is false.
Oval symbol is used to represent the start or end of the flowchart.
- Flow Lines
Arrow symbol is used to represent the start or end of the flowchart.
Circle symbol is used to combine different flow lines. It is used when two or more flow symbols come from different directions and more to one direction.
- Function Call
Rectangular symbol with double lines on left and right sides is used to call a function. The name of function with parameters is written inside the symbol.
This symbol is used with for loops to specify start and stop conditions.
More blogs to get me use my links, please visit
Join FILMANNEX and explore your writing power with best earnings.