Skip to content

Language

Sign in

Learn › Class 9 › Mathematics › The World of Algorithms

Algorithms and flowcharts

You will learn to

  • Describe an algorithm as a clear, finite list of steps
  • Read and draw a simple flowchart with decisions and loops
  • Trace a searching or sorting algorithm on a small list

Helpful to know first: Comparing numbers.

An algorithm is a step-by-step method that solves a problem. Each step must be clear, and the method must finish after a limited number of steps.

A recipe for making chai is an everyday algorithm. Long division and finding the HCF of two numbers are mathematical algorithms.

Flowchart symbols

Oval: start or stop. Rectangle: an action. Diamond: a yes or no decision. Arrows show the order. A loop is an arrow going back to an earlier step.

Linear search checks items one by one until it finds the target. Binary search works on a sorted list and halves the search range each time.

Bubble sort compares neighbours and swaps them if they are out of order. It repeats passes until no swaps are needed.

Common mix-ups

  • Not quite: Binary search works on any list.

    Instead: The list must be sorted first, or halving can throw away the target.

  • Not quite: Any list of instructions is an algorithm.

    Instead: Each step must be precise, and the process must end. 'Keep adding 1 forever' never stops.

Reviewed by EduFlint team on 1 Dec 2026 · version 1

Written by us for this site. Independent; not affiliated with NCERT or CBSE.

Report a mistake

Looking for another topic?