0
9.9kviews
Convert (11011)2 into gray code
1 Answer
0
2.6kviews

The given number (11011) is a binary number. So, we need to convert binary number into gray code.

Steps for the conversion of binary into gray code.

  1. The most significant bit of the gray code will be exactly equal to the first bit of the given binary number.
  2. Now, the second bit of the code will be exclusive-OR of the first and second bit of the given binary number i.e. if both the bits are same, the result will be '0' and if they are different, the result will be '1'.
  3. The tird bit of the gray code will be equal to the XOR of the 2nd and 3rd bit of the given binary number and so on.

$\begin{align*} &11011\rightarrow \text{binary}\\&\downarrow\\ &\begin{matrix}1&1\oplus1&1\oplus0&0\oplus1&1\oplus1\\1&0&1&1&0&\rightarrow \text{GRAY code}\end{matrix} \end{align*}$

Gray Code=10110.

Please log in to add an answer.