Question

4. Using Hamming code, assume the sender want to send a message of 4 bits, 1111....

4. Using Hamming code, assume the sender want to send a message of 4 bits, 1111.
(a) What is actually being transmitted
(b) Assume during transmission the parity bit p1 is inverted by an error (noise)
i. How does the receiver detect the error? ii. How does the receiver correct the error?
Show your work by calculating parity bits and syndrome bits.

Homework Answers

Answer #1

a) With 4 data bits we need 3 parity bits.

p1 = d1 + d2 + d4
p2 = d1 + d4 + d3
p3 = d2 + d4 + d3

+ is XOR operation here.

The transmitted string will be d1d2d3d4p1p2p3.

So the three parity bits will be

p1 = 1 + 1 + 1 = 1
p2 = 1 + 1 + 1 = 1
p3 = 1 + 1 + 1 = 1

So transmitted data will be all 1's, i.e., 1111111.

b) i)It is said that p1 gets flipped so the received data will be 1111011.

Now here again we check parities:-

p1 = 1 + 1 + 1 = 1 (but p1 is 0 here)
p2 = 1 + 1 + 1 = 1
p3 = 1 + 1 + 1 = 1

Error detected successfully.

ii) If it would have been an error in one of the data bits then it would have been reflected in two or more parity checks but there is an error in only one calculation, which means the parity bit p1 was flipped. So to correct it we can simply flip the parity bit again. It really doesn't matter because we have correctly received all the data bits.

Hope this helps. If you have any queries or suggestions regarding the answers please leave them in the comments section so I can update and improve the answer. Thank you

Know the answer?
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
Similar Questions
A 4-bit data is transmitted using a Hamming code to ensure that the receiver can detect...
A 4-bit data is transmitted using a Hamming code to ensure that the receiver can detect and correct single bit errors. Show the bit pattern transmitted for data 1010 (left to right: from the most significant bit to the least significant bit). Assume that even parity is used in the Hamming code. How many redundant bits are needed in the Hamming code? And what is the value of each Hamming code bit? In your answer, please indicate the data bit...
A set of parity-check equations for a distance-4 Hamming code with 64 data bits and 8...
A set of parity-check equations for a distance-4 Hamming code with 64 data bits and 8 parity-check bits are specified by the eight 72-bit constants below, each representing one row the parity-check matrix: C[1] = 72'h80000000000000007f; C[2] = 72'h400000003FFFFFFF80; C[3] = 72'h20001FFFC0007FFF80; C[4] = 72'h100FE03FC07F807F80; C[5] = 72'h0871E3C3C78787878F; C[6] = 72'h04B66CCCD9999999B3; C[7] = 72'h02DAB5556AAAAAAAD5; C[8] = 72'hFFFFFFFFFFFFFFFFFF; Assuming that bits are numbered D[17:0], bits D[71:64] are the check bits, D[63:0] are the data bits. Write a Verilog model for a...
Consider linear block code with n=8 and k=4. The parity bits of Linear block code is...
Consider linear block code with n=8 and k=4. The parity bits of Linear block code is obtained as c1=m2+m3+m4 , c2=m1+m2+m3 ,c3=m1+m2+m4 ,c4=m1+m3+m4 where m1,m2,m3 and m4 are the message bits and c1,c2,c3 and c4 are the checkbits Obtain the generator matrix and parity check matrix                                                                 List out all codewords and Calculate the minimum distance (dmin )                                    Draw the encoding Circuit.                                                                                                                     Construct the syndrome circuit                                                                                                      Compute the syndrome for the received vector r=[11011011]. Is this a valid code vector?If...
Consider a noisy communication channel, where each bit is flipped with probability p (the probability that...
Consider a noisy communication channel, where each bit is flipped with probability p (the probability that a bit is sent in error is p). Assume that n−1 bits, b1,b2,⋯,b(n−1), are going to be sent on this channel. A parity check bit is added to these bits so that the sum b1+b2+⋯+bn is an even number. This way, the receiver can distinguish occurrence of odd number of errors, that is, if one, three, or any odd number of errors occur, the...
A digital signal has four levels. How many bits are needed per level? Draw the digital...
A digital signal has four levels. How many bits are needed per level? Draw the digital signal assume the baud rate is 8 baud per second. Increasing the levels of a signal increases the probability of an error occurring, in other words it reduces the reliability of the system. Why and how can this be resolve? What determines how successful a receiver will be in interpreting an incoming signal? Spectrum of a channel between 5 MHz and 4 MHz; SNRdB...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT