Sorting algorithms

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 4
Medium

An environmental scientist records the pH values of four soil samples as [6.8, 2.1, 5.4, 3.9].

Explain how the merge sort algorithm works to sort these values in ascending order. In your explanation, refer to how the algorithm processes this specific list.

You may refer to the tree diagram below, which outlines the structure of the process:

A diagram showing the split and merge phases of the merge sort algorithm for the values 6.8, 2.1, 5.4, and 3.9

[4]

Sorting algorithms Questions

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