HomeTestsSearchRankProfile
mediumMCQGATE EC 2019 Question Paper (09-Feb-2019) (Shift 1)General
1 mark (−0.33)

A linear Hamming code is used to map 4-bit messages to 7-bit code words. The encoder mapping is linear. If the message 0001 is mapped to the code word 0000111, and the message 0011 is mapped to the code word 1100110, then the message 0010 is mapped to

  1. A
    0010011
  2. B
    1100001
  3. C
    1111000
  4. D
    1111111

Solution & Step-by-step Explanation

Hamming Code Encoder Explained

The question describes a situation where a linear Hamming code is used. This type of code maps 4-bit messages to 7-bit codewords. A crucial property mentioned is that the encoder mapping is linear. Understanding what "linear" means in the context of coding theory is key to solving this problem.

In a linear code, if two messages, say and , are mapped to codewords and respectively, then the message formed by the bit-wise XOR (exclusive OR) sum of and , i.e., , will be mapped to the codeword formed by the bit-wise XOR sum of and , i.e., . This property holds true for any combination of messages in a linear code.

Given Message and Codeword Mappings

We are provided with the following two mappings for the linear Hamming code:

- **Message 1 ():** is mapped to **Codeword 1 ():**
- **Message 2 ():** is mapped to **Codeword 2 ():**

Our goal is to find the codeword for the message . Let's call this target message and its unknown codeword .

Applying Linearity to Find the Codeword

First, let's examine the relationship between the given messages and the target message using the XOR operation (modulo 2 addition):

- Let
- Let
- Let

We can observe that if we XOR with , we get :



This means:

Since the encoder mapping is linear, the same relationship must hold true for their corresponding codewords. Therefore, if corresponds to , corresponds to , and corresponds to , then:



To find , we can rearrange the equation by XORing both sides with . Remember that :



Calculating the Unknown Codeword

Now, let's perform the bit-wise XOR operation on the given codewords:





Calculating :
Bit Position1st2nd3rd4th5th6th7th
Codeword 1 ()0000111
Codeword 2 ()1100110
**XOR Result ()**1100001
Therefore, the codeword for the message is .

This result aligns with one of the provided options.

Practice this question

Try it yourself before checking the explanation above.

A linear Hamming code is used to map 4-bit messages to 7-bit code words. The encoder mapping is linear. If the message 0001 is mapped to the code word 0000111, and the message 0011 is mapped to the code word 1100110, then the message 0010 is mapped to
A
0010011
B
1100001
C
1111000
D
1111111

Share This Question

Related Questions

Ready for a Full Test?

Practice with timed mock tests and track your performance across General.

Discussion