Skip to content

Course home

Sorting algorithms

Sorting algorithms

EasyMediumHard
123456789101112131415161718192021222324252627
Question 22

A seismologist is analyzing the arrival times (in seconds past midnight) of P-waves at eight different sensors. The recorded times are:

| 14 | 5 | 23 | 11 | 19 | 8 | 17 | 3 |

To order these times, the seismologist uses a merge sort algorithm.

Complete the table below to show how the merge sort algorithm operates on this list of arrival times.

The first row shows the starting array, and the final row shows the sorted array. Fill in the values for the two intermediate rows showing the steps of the merge process.

Starting array:

1452311198173

Row 2 (after merging sublists of size 1):

Row 3 (after merging sublists of size 2):

Final sorted array:

3581114171923
[3]
Markscheme

Sorting algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Sorting algorithms

52 exam-style questions on AQA GCSE Computer Science Sorting algorithms. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank