bubbleSort

Source Code

Results

Array ( [0] => 0 [1] => 1 [2] => 3 [3] => 5 [4] => 22 [5] => 30 [6] => 45 [7] => 50 [8] => 300 )
Bubble sort improved

Source Code

Results

Array ( [0] => 0 [1] => 1 [2] => 3 [3] => 5 [4] => 22 [5] => 30 [6] => 45 [7] => 50 [8] => 300 )
Selection sort

Source Code

Results

Array ( [0] => 0 [1] => 1 [2] => 3 [3] => 5 [4] => 22 [5] => 30 [6] => 45 [7] => 50 [8] => 300 )
Counting sort

Source Code

Results

Array ( [8] => 300 [1] => 1 [4] => 22 [2] => 3 [6] => 45 [3] => 5 [5] => 30 [7] => 50 [0] => 0 )
Quicksort

Source Code

Results

Array ( [0] => 0 [1] => 1 [2] => 3 [3] => 5 [4] => 22 [5] => 30 [6] => 45 [7] => 50 [8] => 300 )
insertion sort

Source Code

Results

Array ( [0] => 0 [1] => 1 [2] => 3 [3] => 5 [4] => 22 [5] => 30 [6] => 45 [7] => 50 [8] => 300 )