Bubble Sort
Contents Bubble sort . 2 Definition . 2 How bubble sort works? . 2 Bubble sort program in c . 2 Sample of program .. 2 Bubble Sort Definition Bubble sort is a sorting algorithm that works by repeatedly stepping through lists that need to be sorted, comparing each pair of adjacent items and swapping them if they are in the wrong order. This passing procedure is repeated until no swaps are required, indicating that the list is sorted. Bubble sort gets its name because smaller elements bubble toward the top of the list. Bubble sort is also referred to as sinking sort or comparison sort. How bubble sort works? We take an unsorted array for our example. 14 33 27 35 10 Bubble sort starts with very first two elements, comparing them to check which one is ...