0% found this document useful (0 votes)
0 views

Algorithm, Flowchart and Pseudocode (Part 1)

The document discusses the concepts of algorithms, flowcharts, and pseudocode as essential tools for problem-solving in computer science. It outlines the steps involved in developing algorithms, including understanding the problem, designing solutions, coding, and testing. Additionally, it explains the importance of abstraction and decomposition, and provides guidance on reading flowcharts and the iterative testing process.

Uploaded by

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

Algorithm, Flowchart and Pseudocode (Part 1)

The document discusses the concepts of algorithms, flowcharts, and pseudocode as essential tools for problem-solving in computer science. It outlines the steps involved in developing algorithms, including understanding the problem, designing solutions, coding, and testing. Additionally, it explains the importance of abstraction and decomposition, and provides guidance on reading flowcharts and the iterative testing process.

Uploaded by

Sanika Jain
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

ALGORITHM,

FLOWCHART AND
PSEUDOCODE
Arkoalo Palchaudhuri
Sr. School Lecturer (CAIE)

Dept. of Computer Science


FLOWCHART

• Diagrammatic representation of algorithm


• Different figures having different functions

• Easy to explain program logic


• Different symbols used
• Easy to detect, locate and remove bugs in a program
CONCEPT DEVELOPMENT OF ALGORITHM
We are aware that computers are unable to resolve the issues on their own. In addition, we need to
provide detailed instructions on how to solve the problem.
Basic problem-solving Steps:
1. Understanding the problem
2. Finding solutions for the problem
3. Implementing the solution to it

Before writing any code, we can create Algorithms and Flowcharts to represent the solution.
Additionally,
• Identifying logical and arithmetic operations is crucial for program development.
B A S I C F E AT U R E S O F A L G O R I T H M
• Sequential solution of any problem.
Properties of Algorithm
• Written in Human understandable form. 1. Finiteness
2. Properly Defined
• Requires a clear understanding of the problem.
3. Input
4. Output
Major 4 Steps are: 5. Effectiveness
1. Analysis→ Abstraction and Decomposition 6. Independent to any
Programming Language
2. Design→ Structure Diagram, Flowcharts and Pseudocode
3. Coding→ Iterative testing
4. Testing→ Reverification of the task completion
ABSTRACTION AND DECOMPOSITION
Abstraction keeps the key elements required for the solution to the problem and discards
any unnecessary details and information that is not required.

Decomposition breaks down a complex problem into smaller parts, which can
then be subdivided into even smaller parts, that can be solved easily.
STRUCTURE DIAGRAM, FLOWCHARTS AND PSEUDOCODE

Structure Diagram : A hierarchical diagram that shows the decomposition of a


system.
Flowcharts : Diagrammatic representation of an algorithm with a set of standard
symbols.
Pseudocode: Pseudocode is a way of describing the steps of an algorithm using
natural language and programming conventions. It is not a real programming
language, but it helps to plan and explain the logic of a program or a solution to a
problem. Pseudocode is usually easier to read and understand than code syntax, and
it can be translated into any programming language.
I T E R AT I V E T E S T I N G

To test a module until it works as


needed, iterative testing involves
conducting modular tests,
making changes to the code, and
repeating the tests.
R E V E R I F I C AT I O N O F T H E TA S K C O M P L E T I O N
The completed program or set of programs is run many
times with different sets of test data. This ensures that all
the tasks completed work together as specified in the
program design.
READING TECHNIQUE(STEPS) OF A FLOWCHART
1. Start at the beginning: The starting point of the flowchart is usually represented by a rounded
rectangle with the word “Start” inside it. This is where you begin reading the flowchart.

2. Follow the arrows: The arrows in the flowchart represent the direction of the flow. Follow the
arrows to the next step in the process.
3. Read the shapes: Each shape in the flowchart represents a different step in the process. The most
common shapes are rectangles, diamonds, and circles. Rectangles represent a process step,
diamonds represent a decision point, and circles represent the end of a process.
4. Understand the decision points: When you come across a diamond shape, it represents a
decision point. The flowchart will have arrows coming out of the diamond, each pointing to a different
process step. The decision point represents a question that needs to be answered before moving on
to the next step.
5. Follow the process: Continue following the arrows and reading the shapes until you reach the end
of the flowchart. The end of the flowchart is usually represented by a rounded rectangle with the word
“End” inside it.
DIFFERENT SHAPES AND
FLOWLINE

12/4/2023 Sample Footer Text 10


EXPLAIN THE
FLOWCHART

You might also like