From: brabuhr@... Date: 2010-08-18T05:20:53+09:00 Subject: Re: can i do this in ruby? a simulation process On Tue, Aug 17, 2010 at 1:19 PM, wrote: > On Tue, Aug 17, 2010 at 7:34 AM, Andrew Wagner wrote: >> Anyway, I did this, for fun, and consistently got an average of around 833 >> seconds on average for 100000 trials. Anyone else give this a shot? I'm >> curious to see whether different implementations give different results. The >> standard deviation seems to be pretty high. > > 58,387 trials > > Number of vehicles used >  min 16,  max 77,  avg 38.3,  stdev 7.9 > > Elapsed time (seconds) >  min 533,  max 2550,  avg 1273.1,  stdev 258.1 Two alternate implementations: 5,689 trials Vehicles min, max, avg, stdev: 16, 77, 38.4, 8.0 Time min, max, avg, stdev: 348, 1637, 808.9, 169.2 and: 19,121 trials Vehicles min, max, avg, stdev: 14, 80, 38.4, 8.0 Time min, max, avg, stdev: 318, 1714, 807.9, 168.3