In which sorting algorithm do larger or smaller elements "bubble" to the top of the array?

  • Bubble Sort
  • Merge Sort
  • Quick Sort
  • Selection Sort
In Bubble Sort, larger or smaller elements "bubble" to the top of the array as the algorithm repeatedly passes through the list and swaps adjacent elements if they are in the wrong order. The "bubbling" process continues until the entire list is sorted. Bubble Sort is so named due to this bubbling behavior.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *