Graph for Sorting Plotted using R

The following graph shows the time details to execute a sorting algorithm written in python.Array size for sort is 200. The values for plotting the above graph is taken from the following readings. Sat May 24 18:48:25 IST 2014 real 0m0.032s user 0m0.028s sys 0m0.000s real 0m0.027s user 0m0.020s sys 0m0.004s real 0m0.029s user 0m0.024s …

bubble(think so) sort in python programming language

# bubblesort attempted to be ported to python by # Jeffrin Jose T <ahiliation@yahoo.co.in> # from bubble.php by # detour@metalshell.com # License : GPL.   array_size = 20; import random result = [] # hash values of numbers between -5 to 256 are the same as the # numbers themselves. So, whatever may be the …

BUBBLE SORT USING RUBY ARRAY SIZE 100

#!/usr/bin/ruby =begin bubble sort in php by detour@metalshell.com Generate random numbers then sort them. Ported to Ruby by Jeffrin Jose T Licensed : GPL =end array_size = 100 x = 0 y = 0 z = 0 hold = 0 ran = Array.new(array_size) while x < array_size ran[x] = rand(1..1000) x +=1 end x = …