definition examples algorithm flowchart

Definition and Examples of Algorithm and Flowchart

Algorithm and Flowchart

BBA | BBA-TT | BHCM

Definition of algorithm and flowchart as below:

Algorithm

It is well known that the programs are used to solve the various kinds of problems by computerized technique. The algorithm is a step-by-step procedure that guarantees a solution if followed correctly.

It is written process. To write an algorithm the the given sequence of instruction must possess the following characteristics:

  • Each and every instruction should be accurate and clear.
  • Each instruction should finish within the definite time interval.
  • One or more instruction should not repeat. It obvious that the process one should be terminated.
  • After termination of the algorithm, the definite output must appear.

 

Flowchart

The pictorial representation of a sequence of events that describe activities required in the program to solve the particular problem is called flowchart. Therefore, a flowchart is a pictorial representation of an algorithm.

Features of flowchart:

  • Originating or origination
  • Inputting
  • Processing
  • Storage/ storing
  • Outputting

 

1. Originating or origination

The collection of source data is an important job in any system either to draw a flowchart or to develop a program. Logically the collection of resources to develop the program called as originating features.

2. Inputting

The processing of supplying data or instruction to a computer is inputting of records to a computer.

3. Processing

To obtain a specific output with respect to given data or instruction, the certain process should happen into the computer called as processing.

4. Storage/ storing

After manipulating of system or program or data or instruction and output results either store temporarily or permanently into the computer. This is called storing of information.

5. Outputting

The output results appear after the completion or processing work. This is called outputting.

 

Advantages:

Disadvantages:

  • Time-consuming and laborious work.
  • Expensive and difficult to modify.
  • Standard limit of investment.

 

 

Some basic symbols of the flowchart are as given below:

Start/ end symbol

algorithm flowchart start end symbol

Action or process symbol

algorithm flowchart Action process symbol

Decision or conditional symbol

algorithm flowchart Decision conditional symbol

Input/ output symbol

algorithm flowchart input output symbol

Examples are:

Example one

Write an algorithm and draw a flowchart to finding a given number is odd or even.

Solution to this question as follows:

Algorithm:


algorithm flowchart

 

 

Flowchart

algorithm flowchart


Example two

2017 Fall Q. No. 13 b

Draw a flowchart to find the greatest number among the three numbers.

Solution to this question as follows:

For e.g. Algorithm:


algorithm flowchart

Flowchart

algorithm flowchart

 


Example three

2015 Fall Q. No. 15 a

Write the algorithm and draw the flowchart to find the smallest number among the three numbers.

Solution to this question as follows:

Algorithm


algorithm flowchart

 

Flowchart

algorithm flowchart


Also, for more notes visit or read

Types of programming language

Leave a Comment

Your email address will not be published. Required fields are marked *

%d bloggers like this: