In communications, symbols are usually mapped to gray encoded binary representations to ensure that only a single bit changes from a word to another. Gray encoding can be implemented using binary xor operations on the bits of the binary representation. Could you implement a pair gray encoding and decoding functions (bin2gray and gray2bin)?
Good afternoon,
I liked the suggestion professor, thank you. I can try to implement the suggestion. Do you have any directions on how I can do this coding?
In communications, symbols are usually mapped to gray encoded binary representations to ensure that only a single bit changes from a word to another. Gray encoding can be implemented using binary xor operations on the bits of the binary representation. Could you implement a pair gray encoding and decoding functions (bin2gray and gray2bin)?