Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 5 - No. 1)

What is the primary function of a 'bubble sort' algorithm?
Searching for a specific value in a list
Calculating the average of a set of numbers
Sorting a list of items
Finding the maximum value in a dataset

Explanation

A bubble sort algorithm sorts a list of elements by repeatedly comparing adjacent items and swapping them if they are in the wrong order.

Comments (0)

Advertisement