Algorithms

Which of the following best describes Bubble sort?

Correct answer

C. A simple sorting algorithm that repeatedly swaps adjacent elements if they are in the wrong order.

Explanation

Bubble sort refers to a simple sorting algorithm that repeatedly swaps adjacent elements if they are in the wrong order.