Subj : Re: Generating an Index To : comp.programming From : Willem Date : Fri Sep 09 2005 07:40 am Wavemaker wrote: ) Hmm, I've thought about this and was about to suggest using 10101010... ) as a reference value and calculating the distance of each item in ) reference to that value. There is no reason whatsoever why 10101010... would be a better reference value than 00000000... would be. To see this, you have to realise that XORing all numbers with a given pattern will not change the relative distances of any two numbers. SaSW, Willem -- Disclaimer: I am in no way responsible for any of the statements made in the above text. For all I know I might be drugged or something.. No I'm not paranoid. You all think I'm paranoid, don't you ! #EOT .