 In Gray code, these values are represented as "001" and "011".That way, incrementing a value from 1 to 2 requires only one bit to change, instead of two.Gray codes are widely used to prevent spurious output from electromechanical switches and to facilitate error correction in digital communications such as digital terrestrial television and some cable TV systems.