CS FundamentalsVery hardGATE CS

A 7-bit cyclic code uses the generator x³ + x + 1. Bits are indexed by powers of x, from x⁶ (leftmost) down to x⁰ (rightmost). A received word gives the remainder (syndrome) 110 when divided by the generator. Assuming exactly one bit is in error, which bit is it?

  1. A. The x⁴ bit, third from the left
  2. B. The x¹ bit, second from the right
  3. C. The x² bit, fifth from the left
  4. D. The x⁶ bit, the leftmost one

Correct answer: A. The x⁴ bit, third from the left

A single error at xⁱ leaves the syndrome xⁱ mod (x³ + x + 1). Working up: x³ → 011, x⁴ = x·x³ → x² + x = 110. So the x⁴ bit (third from the left) is wrong; this code is the cyclic (7, 4) Hamming code, which can locate single errors.

More Computer Networks questions

Exams that ask this topic