Tag: bubble sort
-
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 = […]
-
BUBBLE SORT USING C . ARRAY SIZE 500
Fri Mar 28 18:17:40 IST 2014 real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.003s user 0m0.000s sys 0m0.000s real 0m0.004s user 0m0.000s sys 0m0.000s real 0m0.002s user 0m0.000s sys 0m0.000s