Question bank › GCSE Computer Science › Algorithms

Sorting algorithms: bubble, merge and insertion sort

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 4–54 marks

A bubble sort is used to put this list into ascending order.

[6, 2, 9, 1, 5]

(a) Show the list after the first pass. [2]

(b) Show the list after the second pass. [1]

(c) State how a bubble sort knows that the list is sorted. [1]

2Grade 6–74 marks

Show how a merge sort would sort this list into ascending order.

[38, 27, 43, 3, 9, 82, 10, 16]

[4]

3Grade 6–74 marks

An insertion sort is used to put these names into alphabetical order.

["Mo", "Ali", "Tia", "Ben", "Cat"]

Show the list after each pass of the insertion sort. [4]

4Grade 6–74 marks

A program needs to sort a list of 50 000 customer records.

Compare merge sort and bubble sort for this task. [4]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro