3Medium
0/5

A botanist is recording the heights of five sunflower plants in centimetres. The recorded heights are: [165, 132, 110, 154, 143]

Complete the table to show the steps involved in applying the bubble sort algorithm to sort these heights into ascending order. You only need to show the state of the array after each individual swap is completed.

165132110154143
110132143154165
[5]

Sorting algorithms Questions

Practise AQA GCSE Computer Science Sorting algorithms with exam-style questions for GCSE Computer Science. 62 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Sorting algorithms Questions

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