AQA GCSE Computer Science (8525)Specification point 3.1.4

AQA 8525 3.1.4: Sorting algorithms

The free BugBot lessons that teach this point, a robot to try it on, and the past-paper questions that test it.

What it covers

Binary search needs sorted data, and so do leaderboards, timetables and the robot's "nearest first" lists. Sorting puts items in order. This lesson and the next two meet the three sorting algorithms on the GCSE specifications, and this one you can hear: the robot plays a list of notes, and as the sort works the tune turns into a scale.

  • The algorithm
  • In Python
  • Hear it sort
  • How much work it does
Read the free lesson (15 min)

Or do it in the simulator, with tasks that mark themselves

Lessons that teach it

  1. F5.7 Bubble sort Algorithms
    Passes and swaps, stopping early, and hearing a tune become a scale.
  2. F5.8 Insertion sort Algorithms
    Building a sorted part one item at a time, on the robot's readings.

Try it on a robot

The task from F5.7 Bubble sort, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is AQA's own document; this page says which of our lessons teach point 3.1.4 and is not endorsed by the board.