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

What is the purpose of a 'bubble sort' algorithm?
To search for a specific value in a list.
To sort a list of items.
To calculate the average of a set of numbers.
To find the maximum value in a list.

Explanation

Bubble sort is a sorting algorithm that iteratively compares adjacent elements and swaps them if they are in the wrong order.

Comments (0)

Advertisement