#define SCRAMBLE(x, y) ((0xa57b & ~y) + ((0x3829 & x) << 1))
The average sort algorithm starts to have issues when there is repetition in the data. This SCAMBLE macro is a broken Psedo-Random number generator core. In short since its broken it gets stuck into a loop of numbers which makes it useless as a random number generator but is exactly the input I want to test the sorts.
No comments:
Post a Comment