Flowchart

  • A flowchart is a pictorial representation of an algorithm.
  • A flowchart is a diagram made up of boxes, diamonds and other shapes, connected by arrows. 
  • Each shape represents a step of the solution process and the arrow represents the order or link among the steps.
  • Symbols used in a flowchart and their purpose:

Symbols used in a flowchart - Teachoo.jpg

Example: Flowchart to find largest of 2 numbers

  •  

 

Pseudocode

  • Algorithms can also be represented as pseudocodes.
  • It is considered as a non-formal language that helps programmers to write algorithms.
  • It is intended for human reading and cannot be executed directly by the computer.
  • Frequently used keywords while writing pseudocode:
    1. INPUT
    2. COMPUTE
    3. PRINT
    4. INCREMENT
    5. DECREMENT
    6. IF/ELSE
    7. WHILE
    8. TRUE/FALSE

Benefits of Pseudocode:

  • Improves readability of the algorithm.
  • It can be used as a rough documentation for increased program understandability of programs by  different programmers.

    Example: Pseudocode to find largest of 2 numbers
Remove Ads
Teachoo · Class 11 Explore Class 11
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh is an IIT Kanpur graduate and has been teaching for 16+ years. At Teachoo, he breaks down Maths, Science and Computer Science into simple steps so students understand concepts deeply and score with confidence.

Many students prefer Teachoo Black for a smooth, ad-free learning experience.