Posted by Jared Anderson on August 05, 1999 at 19:03:50:
Well I got everything going on the small scale, just needed to have it cover n from 100 to 1000 in intervals of 100. And now something weird's happening.
I have an "outer" counter, j, which goes from 100 to 200 to 300 ... 1000.
Then my "inner" counter i goes from 0 to j-1, planting random values in the array(s) at position i, and then the sorts run on the arrays.
Any my output is strange. Sometimes, it works for n = 100 and 200 but not for 300-1000. Then it will work for 200, 300 and not anything else, then 100-300 but not the rest, etc., etc.
I don't know if it's the sorts or just the check ON the sorts that isn't working, but it seems like something's not "resetting". The values that ARE there are correct. But the rest just aren't happening.
I've got a true random seed coming in every time.
Anyone have any suggestions for something I might be forgetting to reset?
I know everyone probably has a different way they've gone about all this, so it's tough to get into someone else's frame of mind.
But ANY suggestions would be appreciated.
Thanks
Later