I'm trying to perform bus invert coding among two binary sequences, say a 8 bit sequence like 00011011 & 10110011.
As per the method to perform invert coding, the hamming distances are first calculated (XOR operation is performed between the two sequences).
XOR Operation for the two sequences gives 10101000.
Hamming distances denotes the number of 1's in the XOR operation result.
Here Hamming distance is 3.
According to the general rule of Bus Invert Coding, the sequence will be inverted (0's as 1's & 1's as 0's), if hamming distance is greater than half the length of the bit sequence. An additional 1 will be added at the beginning of the sequence. If the hamming distance is less than half the length of the bit sequence, the sequence will not be inverted and a 0 is added at the beginning of the sequence.