Sorting algorithms

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 12
Medium

An agricultural scientist is analyzing five soil samples and has recorded their pH levels. She wants to sort these levels in ascending order using the bubble sort algorithm.

Complete the table to show the steps involved in applying the bubble sort algorithm to sort the list [3.4, 4.5, 5.2, 1.1, 2.3] into ascending order. You only need to show the state of the list after each individual swap is completed.

3.44.55.21.12.3
1.12.33.44.55.2
[5]

Sorting algorithms Questions

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