![cover image](https://wikiwandv2-19431.kxcdn.com/_next/image?url=https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Bubblesort-edited-color.svg/langsimple-640px-Bubblesort-edited-color.svg.png&w=640&q=50)
Bubble sort
simple sorting algorithm / From Wikipedia, the free encyclopedia
Bubble sort is a simple sorting algorithm. It is simple to understand, so it is usually taught to new students. It is not as efficient as some other sorting algorithms.
![]() | The English used in this article or section may not be easy for everybody to understand. (October 2019) |
![](http://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Bubblesort-edited-color.svg/320px-Bubblesort-edited-color.svg.png)
Bubble sort's name comes from the fact that each item in the list “bubbles” up to where it should go, like bubbles in water.