Algorithm Visualiser

Algorithm
Step 1 of 1

Free · No login required

Algorithm Visualiser

Step through linear search, binary search, bubble sort, and merge sort and see exactly how each algorithm works.

How to use it

  • Choose an algorithm using the toggle buttons at the top.
  • Edit the List field to use your own numbers, separated by commas.
  • For search algorithms, set the Find field to the number you want to locate.
  • Use Previous and Next to move through one step at a time, or press Play to step through automatically. Adjust the speed with Slow / Normal / Fast.
  • Reset returns to the default list and target, starting over from step one.
Try Python Coach โ€” structured lessons →

Free algorithm visualiser for GCSE Computer Science

Understanding how a search or sort algorithm works from a written description alone is difficult. This tool makes every step visible โ€” each comparison, each elimination, each swap โ€” so students can follow the logic at their own pace rather than trying to picture it from a textbook.

See exactly what the algorithm is doing at each step

Linear search checks each element in turn from left to right. Binary search calculates a midpoint, compares it to the target, and eliminates half the list with every step. Bubble sort repeatedly compares adjacent pairs, swapping them when they are out of order, until a full pass produces no swaps. Each step is explained in plain language using the same terminology expected in GCSE exam answers.

Built for exam technique

The step explanations are written in the language of GCSE mark schemes โ€” "checking index 0", "middle element is index 3", "no swap needed, moving right". Working through an algorithm step by step is exactly the kind of trace question that appears in AQA, OCR, and Edexcel Computer Science papers. Use this tool to practise before an exam or to check your own manual traces.

Covers all four GCSE specification algorithms

Linear search, binary search, bubble sort, and merge sort are all required content in GCSE Computer Science specifications. This tool covers all four in one place, so students can practise every algorithm they need for the exam.

Want structured Python lessons alongside the tool?

Python Coach includes 27 lessons and 195 challenges โ€” from a first print statement through to functions and file handling, all mapped to the GCSE specification.

GCSE revision guides

Browse all GCSE Computer Science revision guides →