Bubble sort

From Wiki :-)
Revision as of 22:58, 27 May 2018 by Savoundg (talk | contribs)
Jump to navigation Jump to search

Bubblesort exchange algorithm is the simplest sorting algorithm.

Each element of the array is compared (and swapped if bigger) with every other element of the array.

The worst-case and average complexity is O(n2).

Resources

https://en.wikipedia.org/wiki/Bubble_sort