1. Euphoria To C Translator - bucket sort

Platform: LINUX Mandrake 7.0

I am seeing some strange results in the bucket sort while running
allsorts.ex.  Allsorts.ex was modified to report 15 decimal points

on the 40 item / 500 trials iteration the bucket sort timing results
routinely drops to 0.000...015 then on iterations that follow it the timing
increases and then drops to  0 again.

I have had several iterations where the final run of the bucket sort was 0.

Running allsorts.ex from the interpreter results in significantly longer
time runs for each iteration of the bucket sort, but the results always
scale upward symetrically with each iteration.









_______________________________________________________
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html

new topic     » topic index » view message » categorize

2. Re: Euphoria To C Translator - bucket sort

Kenneth Rhodes writes:
> I am seeing some strange results in the bucket sort while
> running allsorts.ex.  Allsorts.ex was modified to
> report 15 decimal points
>
> on the 40 item / 500 trials iteration the bucket sort
> timing results routinely drops to 0.000...015 then on iterations
> that follow it the timing increases and then drops to  0 again.
>
> I have had several iterations where the final run of the
> bucket sort was 0.

The translated/compiled bucket sort is now so fast that
it can sometimes complete a batch of iterations before the
clock ticks, even once. That gives you a time of 0.

Try setting MAX=200000 instead of 20000 in allsorts.ex.
That will give you more accurate results, with fewer anomalies.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu