0% found this document useful (0 votes)
28 views2 pages

Understanding Algorithms and Flowcharts

Algorithms, pseudocode, and flowcharts are essential tools for designing and representing problem-solving solutions. An algorithm is a step-by-step instruction set, pseudocode offers a high-level description in plain language, and flowcharts provide a graphical representation using symbols. Each tool serves to simplify the understanding and implementation of programming tasks.

Uploaded by

demo class
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Understanding Algorithms and Flowcharts

Algorithms, pseudocode, and flowcharts are essential tools for designing and representing problem-solving solutions. An algorithm is a step-by-step instruction set, pseudocode offers a high-level description in plain language, and flowcharts provide a graphical representation using symbols. Each tool serves to simplify the understanding and implementation of programming tasks.

Uploaded by

demo class
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Algorithms, Pseudocode, Flowcharts

Algorithms, pseudocode, and flowcharts are fundamental tools used to


design and represent solutions to problems.

Algorithm
An Algorithm is a step-by-step set of instructions given in correct order
to complete a task. It is written in English or any other language
understandable by user. Algorithms serve as a blueprint to write a
program.

Pseudocode

Pseudocode is an informal, high-level description of an algorithm. It uses


plain English statements and basic programming structures like loops and
conditions, but lacks the strict syntax of a specific programming
language. Its purpose is to make the algorithm easily understandable by
humans.
Flowchart

A flowchart is a graphical representation of an algorithm. It makes use of


symbols that are connected by arrows to show the flow of information and
processing.

Key Symbols in Flowchart


Name Symbol Function
Represents start and
Terminator (Start/End) Oval Shape
end of flowchart.
Used for arithmetic
Process Rectangle shape operations and data
manipulations.
Used to take input and
Input / Output Parallelogram shape
show output.
Used to check condition
Decision Diamond shape and take decision
accordingly.
Arrows connecting the
Flow Lines Arrow Shape symbols to indicate the
sequence of operations.
Connects two segments
of a flow chart, when
Connector Circle Shape
segments are written in
different pages.
Example: Algorithm, Pseudocode, and Flowchart for Adding Two Numbers

Algorithm

Step 1: Start
Step 2: Read two numbers, num1 and num2
Step 3: sum = num1 + num2
Step 4: Print sum
Step 5: Stop

Pseudocode

BEGIN
READ num1
READ num2
sum = num1 + num2
PRINT sum
END

Flow Chart
Start

Declare variables
num1, num2 and sum

Read num1 and


num2

Sum  num1 + num2

Display sum

Stop

You might also like