Bubble Sort/Selection Sort

Bubble Sort/Selection Sort
Last edited on
Selection sort is supposed to be slower than bubble sort

Well, not according to Wikipedia


(Comparison to other sorting algorithms)

Among simple average-case Θ(n2) algorithms, selection sort almost always outperforms bubble sort and gnome sort...
So, then my program is functionally properly?
I get 0,0,0,1,6,13,22,91,363,1280 for selection sort.
I get 0,0,0,0,17,38,69,275,1098,3861 for bubble sort.
Does these numbers seem correct?
Those look sorted to me :)
Topic archived. No new replies allowed.