Sorting
Arranging the elements of an array in ascending and descending order is known as sorting.
There are different methods of sorting.
- Insertion sort
- Selection sort
- Bubble sort
- Merge sort
- Two way merge sort
- Heap sort
- Quick sort
Bubble sorting is a simple sorting technique in sorting algorithm. In bubble sort, the elements of the list are arranged by forming pairs of adjacent elements. It means we repeatedly step through the list which we want to sort, compare two items at a time and swap them if they are not in the right order.
CACKLE comment system