Monday, 12 November 2018
Sorting algorithms are used to put a elements of a list into a certain order. One example of a sorting algorithm is the bubble sort. The bubble sort works by comparing successive pairs of numbers in the list and then stops when no more swaps are required. The bubble sort is not a very efficient sorting algorithm.