Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

What is an Algorithm

An algorithm is a step-by-step set of instructions for solving a problem, exemplified by a process to calculate the sum of two numbers. Pseudo code provides a way to describe an algorithm without specific programming syntax, while flowcharts visually represent algorithms using symbols for different operations. Basic flowchart symbols include terminal points, input/output functions, processing steps, decision points, connectors, and flow lines to illustrate the order of operations.

Uploaded by

fatsoyes
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

What is an Algorithm

An algorithm is a step-by-step set of instructions for solving a problem, exemplified by a process to calculate the sum of two numbers. Pseudo code provides a way to describe an algorithm without specific programming syntax, while flowcharts visually represent algorithms using symbols for different operations. Basic flowchart symbols include terminal points, input/output functions, processing steps, decision points, connectors, and flow lines to illustrate the order of operations.

Uploaded by

fatsoyes
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

What is an Algorithm?

An algorithm as a set or list of instructions for carrying out some process step by step.

 Example of Algorithm

Algorithm: Calculate the sum of the numbers

1. Start.

2. Input the two number you want to add (a+b).

3. Store the result of the addition in a variable (result).

4. Output the value of the variable (result), which represents the sum of the input numbers.

5. End.

Algorithm
An algorithm represents the thinking process for solving a problem in an abstract yet precise way, rather than the
answer itself.

What is Pseudo code?


Pseudo code is a generic way of describing an algorithm without use of any specific programming language syntax.

 Pseudocode Example:

BEGIN

NUMBER s1, s2, sum

OUTPUT("Input number1:")

INPUT s1

OUTPUT("Input number2:")

INPUT s2

sum=s1+s2

OUTPUT sum

END

FLOW CHART

Flow chart is a type of diagram that represents an algorithm, workflow or process. The flowchart shows the
steps as boxes of various kinds, and their order by connecting the boxes with arrows.

Basic Symbols used in Flowchart Designs


 Terminal: The oval symbol indicates Start, Stop and Halt in a program’s logic flow. Terminal is the first and last
symbols in the flowchart.

 Input/Output: A parallelogram denotes any function of input/output type. Program instructions that take input
from input devices and display output on output devices are indicated with parallelogram in a flowchart.

 Processing: A box represents arithmetic instructions. All arithmetic processes such as adding, subtracting,
multiplication and division are indicated by action or process symbol.

 Decision: Diamond symbol represents a decision point. Decision based operations such as yes/no question or
true/false are indicated by diamond in flowchart.

 Basic Symbols used in Flowchart Designs

 Connectors: Whenever flowchart becomes complex or it spreads over more than one page, it is useful to use
connectors to avoid any confusions. It is represented by a circle.

 Flow lines: Flow lines indicate the exact sequence in which instructions are executed. Arrows represent the
direction of flow of control and relationship among different symbols of flowchart.

 EXAMPLE OF FLOWCHART

"Programming is the art of telling another human what one wants the computer to do."

- Donald Knuth
“The beginning of wisdom is this: Get wisdom. Though it cost all you have, get understanding."

-Proverbs 4:7

You might also like