Split It, Sort It, Join It

Part of Merge Sort ยท Section 1 of 8

IntroductionUnit: 3.1 Fundamentals of AlgorithmsGCSE

Merge sort is like sorting a huge pile of exam papers with friends. You split the pile in half, then split again, until everyone holds a single paper (one paper is already sorted). Then you pair up and merge the small sorted piles into bigger sorted piles, until one sorted pile is left.

Three worked examples that sort the list 5, 3, 8, 1, 4. Bubble sort rows: after pass 1 the list is 3 5 1 4 8, after pass 2 it is 3 1 4 5 8, and after pass 3 it is 1 3 4 5 8. Merge sort divides the list into 5 3 and 8 1 4, then into 5, 3, 8 and 1 4, then into single items. It then merges 5 and 3 into 3 5, merges 1 and 4 into 1 4, merges 8 with 1 4 into 1 4 8, and merges 3 5 with 1 4 8 into 1 3 4 5 8. Insertion sort inserts 3, 8, 1 and 4 in turn, so the sorted part on the left grows until the list is 1 3 4 5 8. Sorted items are green and bold.

Bubble sort compares neighbouring items and swaps them if they are in the wrong order, then repeats the pass. Merge sort divides the list down to single items, then merges the sorted parts back together. Insertion sort inserts each item into the sorted part. On long lists bubble sort and insertion sort make many comparisons, and merge sort makes fewer. Bubble sort and merge sort are named by OCR, AQA and Edexcel. Insertion sort is named by OCR only.

This introduction covers Split It, Sort It, Join It within Merge Sort for GCSE Computer Science. Revise Merge Sort in 3.1 Fundamentals of Algorithms for GCSE Computer Science with 16 exam-style questions and 10 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. It is section 1 of 8 in this topic. Use this introduction to connect the idea to the wider topic before moving on to questions and flashcards.

Practice questions for Merge Sort

Which design strategy does merge sort use?

  • A. Brute force โ€” try every possible ordering
  • B. Greedy โ€” always pick the locally best element
  • C. Divide and conquer โ€” split the list, sort halves, then merge
  • D. Dynamic programming โ€” store results to avoid repeated work
1 markfoundation

Describe how merge sort works. You should include what happens in both the divide and merge phases.

3 marksstandard

Quick recall flashcards

What technique does merge sort use?
Divide and conquer - splits list in half repeatedly then merges sorted halves
Is merge sort a recursive algorithm?
Yes - it calls itself on smaller sub-lists

16 questions on Merge Sort: practise free

Instant marking, adaptive difficulty and spaced-repetition flashcards โ€” all aligned to your exam board.

Start revising free โ†’

PrepWise is a trading name of A3M Quality Solutions Limited, registered in England and Wales, company number 14959172. Registered office: 202 Stroud Road, Gloucester, GL1 5LA. ICO registration ZC267069.