Question

Consider the cyclic redundancy check (CRC) based error detecting scheme having the generator polynomial X3+X+1X^3 + X + 1. Suppose the message m4m3m2m1m0=11000m_4 m_3 m_2 m_1 m_0 = 11000 is to be transmitted. Check bits c2c1c0c_2 c_1 c_0 are appended at the end of the message by the transmitter using the above CRC scheme. The transmitted bit string is denoted by m4m3m2m1m0c2c1c0m_4 m_3 m_2 m_1 m_0 c_2 c_1 c_0. The value of the checkbit sequence c2c1c0c_2 c_1 c_0 is

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2021 answer key

Solution

Perform polynomial division using modulo-2 arithmetic (XOR) to determine the CRC check bits.

The generator polynomial is G(X)=X3+X+1G(X) = X^3 + X + 1, which corresponds to the binary divisor 10111011 (degree k=3k = 3).

The message is M=11000M = 11000. To determine k=3k = 3 check bits, append 3 zeros to the message:

Dividend=11000000\text{Dividend} = 11000000

Perform modulo-2 long division:

        11111
1011 ) 11000000
       1011
       ----
        1110
        1011
        ----
         1010
         1011
         ----
          00100 (bring down 0, 0)
          Remainder = 100

Detailed XOR steps:

  1. 1100⊕1011=01111100 \oplus 1011 = 0111, bring down 0→11100 \to 1110
  2. 1110⊕1011=01011110 \oplus 1011 = 0101, bring down 0→10100 \to 1010
  3. 1010⊕1011=00011010 \oplus 1011 = 0001, bring down 0→0100 \to 010
  4. bring down 0→1000 \to 100

The remainder is the 3-bit check sequence c2c1c0=100c_2 c_1 c_0 = 100, matching option C.

Final answer

C

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
Question
44 of 65, printed as CS Q.34
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.