Algorithm, Flowchart and Pseudocode (Part 1)
Algorithm, Flowchart and Pseudocode (Part 1)
FLOWCHART AND
PSEUDOCODE
Arkoalo Palchaudhuri
Sr. School Lecturer (CAIE)
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
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