On Sat, Aug 15, 2009 at 10:31 PM, Sean Breheny wrote: > You might look up Hamming distance and Trellis Coded Modulation. They > are concepts which go beyond what you are talking about, but they are > somewhat similar since they involve assigning values to symbols in > such a way as to maximize the distance between the symbols for certain > values (in the TCM case, the goal is to reduce bit error rate). OK, thanks for the info. > I assume by "far apart" you mean in the circular sense (i.e., you > chose 0101=2 instead of 1001 because you consider the MSbit to be > "next" to the LSbit, in a wrap-around sense?) Yup. It's a circular buffer. Forgot to mention that, it's been a long day. > Also, your code is similar to Gray code because only one bit changes > between adjacent values. Yup, that's what I looked up, and found neither it nor balanced gray codes where quite right. > Why do you want to keep one-valued bits far apart? If I told you, I'd have to kill you. And I'm running out of places to hide the bodies... Bill -- Psst... Hey, you... Buddy... Want a kitten? straycatblues.petfinder.org -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist