Question

Question 2. Using the Hamming code algorithm (7,4), convert a data message (0111) using 7bit. a) b) c) d) e) Find number of p

0 0
Add a comment Improve this question Transcribed image text
Answer #1

given message is 0111

So here

m1 = 0

m2 = 1

m3 = 1

m4 = 1

a).

Number of parity bits = Total bits - message bits = 7- 4 = 3

b).

1 2 3 4 5 6 7
P1 P2 m1 P3 m2 m3 m4
P1 P2 0 P3 1 1 1

Now we will calculate the even parity using Exclusive - OR

P1 --> 1,3,5,7 --> P1 0 1 1 --> 0 0 1 1 ----> P1 = 0

P2 --> 2,3,6,7 --> P2 0 1 1 --> 0 0 1 1 ----> P2 = 0

P3 --> 4,5,6,7 --> P3 1 1 1 --> 1 1 1 1 ----> P3 = 1

c).

from the above step we have parity bits P1 = 0,  P2 = 0, P3 = 1

So, the final message bits with parity bits is 0001111

d).

To identify that the received message has error calculate decimal value of P3P2 P1 = (100)2 = 4

The 4th bit has error

So, to correct the final message invert the 4th bit

So, now the final message becomes 0000111

e).

Here we are asked to find out error position by injecting(Inverting the 3rd position of initial message )

So, now we have to repeat the steps above again.

Step1:

1 2 3 4 5 6 7
P1 P2 m1 P3 m2 m3 m4
P1 P2 1 P3 1 1 1

Now we will calculate the even parity using Exclusive - OR

P1 --> 1,3,5,7 --> P1 1 1 1 --> 1 1 1 1 ----> P1 = 1

P2 --> 2,3,6,7 --> P2 1 1 1 --> 1 1 1 1 ----> P2 = 1

P3 --> 4,5,6,7 --> P3 1 1 1 --> 1 1 1 1 ----> P3 = 1

P3P2P1 = 1 1 1 = 7

Therefore the 7th bit has error

Add a comment
Know the answer?
Add Answer to:
Question 2. Using the Hamming code algorithm (7,4), convert a data message (0111) using 7bit. a)...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT