Skip to content
MathsGenie logo
Open app

Course home

  1. IGCSE
  2. Computer Science Edexcel
  3. Question bank

Algorithms

EasyMedium
123456789101112131415161718
Question 11

Marcus uses a bubble sort algorithm to sort a list of daily low temperatures (in °C) into ascending order.

Complete the table to show the state of the list after each complete pass of the bubble sort algorithm.

You may not need to use all the rows.

PassElement 1Element 2Element 3Element 4Element 5Element 6
Initial738295
Pass 1
Pass 2
Pass 3
Pass 4
Pass 5
[3]

Algorithms Questions

  1. IGCSE
  2. /Computer Science
  3. /Algorithms