An acoustic engineer measures the sound levels in decibels (dB) at five different positions inside a recording studio. The recorded values are: [35,55,25,15,45][35, 55, 25, 15, 45][35,55,25,15,45]
The engineer wants to sort these sound levels into ascending order using the bubble sort algorithm.
Complete the table below to show the steps involved. You only need to show the missing steps where a change is applied to the array.
| 35 | 55 | 25 | 15 | 45 |
| 15 | 25 | 35 | 45 | 55 |