Question

In: Computer Science

Given the data-bits m = 11010110, determine the number of k (parity-bits) by using Hamming Code...

Given the data-bits m = 11010110, determine the number of k (parity-bits) by using Hamming Code requirements. Illustrate the error detection and correction scheme using Hamming code method, for both the sender and receiver to detect an error at the following positions:

a.6thbit position.

b.11thbit position.Assume an odd-parity scheme for this problem.

Solutions

Expert Solution

According to the question the data-bits m = 11010110 => n= 8, the number of parity bits used in the hamming code can be calculated as follows:-

n+p+1 <= 2p

=> 8+p+1 <= 2p

=> 9+p <= 2p

=> for p=4, the above condition will satisfy therefore, we will take p=4, that is 4 parity bits will be used, hence the size of hamming code will be 4+8 = 12.

The hamming code will be as follows:-

Power of 2 23 22 21 20
position 12 11 10 9 8 7 6 5 4 3 2 1
message 1 1 0 1 p8 0 1 1 p4 0 p2 p1

Since it is given that odd-parity scheme is used, therefore the value parity bits will be calculated as follows:-

Calculation of p1:-

Positions used = 1, 3, 5, 7, 9, 11

values used = p1, 0, 1, 0, 1, 1

=> p1 = 0

Calculation of p2:-

Positions used = 2, 3, 6, 7, 10, 11

values used = p2, 0, 1, 0, 0, 1

=> p2 = 1

Calculation of p4:-

Positions used = 4, 5, 6, 7, 12

values used = p4, 1, 1, 0, 1

=> p4 = 0

Calculation of p8:-

Positions used = 8, 9, 10, 11, 12

values used = p8, 1, 0, 1, 1

=> p8 = 0

Therefore the hamming code that the sender will send be 110100110010

(a.) The there is an error at 6th bit position therefore 1 at 6th position will change to 0, and message that receiver will receive will be 110100010010.

Error detection :- we use the odd parity scheme to detect error

Calculation of c1:-

Positions used = 1, 3, 5, 7, 9, 11

values used = 0, 0, 1, 0, 1, 1

=> c1 = 0

Calculation of c2:-

Positions used = 2, 3, 6, 7, 10, 11

values used = 1, 0, 0, 0, 0, 1

=> c2 = 1

Calculation of c4:-

Positions used = 4, 5, 6, 7, 12

values used = 0, 1, 0, 0, 1

=> c4 = 1

Calculation of c8:-

Positions used = 8, 9, 10, 11, 12

values used = 0, 1, 0, 1, 1

=> c8 = 0

Since c2 & c4 has value 1 therefore there is an error in received message.

Error correction :- the bit which has the error is c8c4c2c1

=> position of error bit = 0110 =(6)10

For error correction change the value of 6th position bit, therefore the message will become 110100110010.

(b.) The there is an error at 11th bit position therefore 1 at 11th position will change to 0, and message that receiver will receive will be 100100110010.

Error detection :- we use the odd parity scheme to detect error

Calculation of c1:-

Positions used = 1, 3, 5, 7, 9, 11

values used = 0, 0, 1, 0, 1, 0

=> c1 = 1

Calculation of c2:-

Positions used = 2, 3, 6, 7, 10, 11

values used = 1, 0, 1, 0, 0, 0

=> c2 = 1

Calculation of c4:-

Positions used = 4, 5, 6, 7, 12

values used = 0, 1, 1, 0, 1

=> c4 = 0

Calculation of c8:-

Positions used = 8, 9, 10, 11, 12

values used = 0, 1, 0, 0, 1

=> c8 = 1

Since c8, c2 & c1 has value 1 therefore there is an error in received message.

Error correction :- the bit which has the error is c8c4c2c1

=> position of error bit = 1011 =(11)10

For error correction change the value of 6th position bit, therefore the message will become 110100110010.


Related Solutions

Given the data-bits m = 11010110, determine the number of k (parity-bits) by using Hamming Code...
Given the data-bits m = 11010110, determine the number of k (parity-bits) by using Hamming Code requirements. Illustrate the error detection and correction scheme using Hamming code method, for both the sender and receiver to detect an error at the following positions: a. 6th bit position. b. 11th bit position. Assume an odd-parity scheme for this problem.
Construct an even parity Hamming code with a total of 7 bits (4 data bits and...
Construct an even parity Hamming code with a total of 7 bits (4 data bits and 3 check bits).
Differentiate between parity code and hamming code with examples
Differentiate between parity code and hamming code with examples
The data to be sent : 11011100110, how to create the Hamming code with even parity?...
The data to be sent : 11011100110, how to create the Hamming code with even parity? If the right most bit is changed due to noise during transmission, how does the receiver to correct the incorrect bit. Assume only one bit is altered during transmission.  
Construct an even parity Hamming code for 1101010
Construct an even parity Hamming code for 1101010
Given the 21-bit even-parity Hamming code: 0 1010 0111 0011 0000 0101 and assuming there is...
Given the 21-bit even-parity Hamming code: 0 1010 0111 0011 0000 0101 and assuming there is one incorrect bit. a. Which bit is incorrect? My educated guess for what the incorrect bit maybe has me thinking it is the '1' bit at the end of the '0111' byte, but I have no full proof as to why it is that specific bit. Am I in the right area to think that? b. After the error is corrected, what decimal number...
Construct a generator matrix and a parity check matrix for a ternary Hamming code Ham(2, 3)....
Construct a generator matrix and a parity check matrix for a ternary Hamming code Ham(2, 3). Assume a codeword x from for the ternary Hamming code Ham(2, 3)$ was sent and the word y was received. Use the partiy check matrix you constructed in part (a) to decode y in each part using syndrome decoding: (b) y = ( 1 , 1 , 1 , 0 ), (c) y = ( 2 , 2 , 2 , 2 ), (d)...
write and explain two dimensional parity check code and hamming codes in simple way please
write and explain two dimensional parity check code and hamming codes in simple way please
Design a 1-bt eror correction code for m=8 data bits and r=4 check bits. The 8...
Design a 1-bt eror correction code for m=8 data bits and r=4 check bits. The 8 data bits are 10101011. For odd parity,assign the 4 check bits ,and give the 22 bits CODE WORD.
Task 8 - Hamming & SECDED Code (5+20= 25 marks) (a) (5 marks) For data, using...
Task 8 - Hamming & SECDED Code (5+20= 25 marks) (a) For data, using 3 Hamming code parity bits determine the maximum number of data bits that can be protected. (b) A SECDED encoded character has been retrieved, with the hexadecimal value of 409 to power of 16. You may assume that the SECDED parity is even. 1. (1 + 4 marks) Was there an error in transmission? Explain your answer. 2. If there was an error, either correct it...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT