Bubble Sort, Bubble Sort Algorithm, Data Structure Algorithm, Dsa Courses, Naem Azam.
It is an adaptive sorting algorithm because if some of the elements of the array are sorted itself or we can say if the array is almost sorted, then it will take into account the ‘already sorted’ elements and the overall estimations will come down to O(n). A Better version of Bubble Sort: Modified