Sorting algorithms

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 21
Medium

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.

3555251545
1525354555
[5]

Sorting algorithms Questions

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