|| Algorithm & Flowchart | Introduction | Symbols | Basic Guidelines to Draw | Advantages | Limitations ||

Algorithm

  • When we want to do anything on the computer, we have to write a program. To write a computer program we have to give step by step instruction to the computer, the computer follows each step and gives us output as required by us
  • When we tell the computer what to do, then we have also to decide how to do that. These steps are called an algorithm
Some definitions of Algorithm are given below..

👉An algorithm is a step by step instruction to solve any problem.
👉An algorithm is a finite sequence of well-defined steps to solve a problem.
👉A step by step problem-solving procedure, especially an established, recursive
      computational procedure for solving a problem in a finite number of steps.

Flowchart

  • A flowchart is a graphical representation of data that shows the sequence of operations to be performed to obtain the solution of a problem. 
  • The program flowchart can be compared to the blueprint of a building. Just as a designer draws a blueprint before starting to construct a building, a programmer draws a flowchart before writing a computer program.
  • It is a great way to express the logic of the program.
  • It is easy to convert a flowchart to any programming language.

Flowchart Symbols

We draw a flowchart using some various symbols. Following are the most common symbols used when creating a flowchart :-  
     

Points to Remember :-

  1. In drawing a flowchart, all the necessary requirements must be listed in a logical order.
  2. The direction of flow of the process should generally be from left to right or top to bottom.
  3. Only one flow line should be come out from a single symbol.
  4. Only one flow line can enter the Decision box, but two or three flow line(according to condition ) can leave it. 
  5. Ensure that flowchart has a logical start and end.

Advantages of using Flowchart in a Programming Language

Some advantages of the flowchart are given below :-
  • Influential analysis: The problem can be analyzed more effectively with the help of a flowchart.
  • Effective Coding: Flowchart works as a guide or blueprint in programming.
  • Communication: For a programmer, Flowchart is a good way to communicate with the logic of the program.
  • Proper Debugging: Flowchart helps in the debugging process.

Limitations

  • Sometimes program logic is complicated, in that case, the flowchart becomes complex and difficult.
  • Reproduction of the flowchart also becomes a problem as flowchart symbols cannot be typed.
                                                            🔚🔚🔚🔚🔚🔚🔚


Download PDF Notes
Click here to download pdf notes

No comments:

Post a Comment