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.4 | 4.5 | 5.2 | 1.1 | 2.3 |
| 1.1 | 2.3 | 3.4 | 4.5 | 5.2 |
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.