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
  • ASAP Computer Architecture and Organization CSC 264 all questions Question 1. Write a note on general-purpose...

    ASAP Computer Architecture and Organization CSC 264 all questions Question 1. Write a note on general-purpose and special-purpose computers. Briefly explain logic gates and various gates used in digital logic design. Explain how data is represented in a digital computer and state how the signed binary numbers are represented. Using the Hamming code algorithm (7, 4), convert a data message (0110) using 7bit. Find the number of parity bits needed Evaluate the values of parity bits Final message bits with...

  • Hamming & SECDED Code (a) For data, using 3 Hamming code parity bits determine the maximum...

    Hamming & SECDED Code (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(base16). You may assume that the SECDED parity is even. 1. Was there an error in transmission? Explain your answer. 2. If there was an error, either correct it (reporting the corrected ASCII character) or explain why it could not be corrected (Show...

  • Q3. In a (7,4) Hamming Code, three parity bits p1, p2, p3 are added to four...

    Q3. In a (7,4) Hamming Code, three parity bits p1, p2, p3 are added to four data bits dl, d2, d3, and d4, and the coverage of each parity bit is as shown in the table below: Bit position 2 3 4 5 6 7 Encoded data bits p1 p2 di p3 d2 d3 d4 da X p1 X X X x Parity bit coverage p2 х X X p3 X X X х 1) (3 pts) Assume even parity...

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

    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. 6 th bit position . b. 11 th bit position . Assume an odd-parity scheme for this problem. You must show detailed calculations to receive full-credit.

  • Hamming Code: m = 1010 (4-bit message); odd-parity scheme; Compute Hamming Code on the sender’s side....

    Hamming Code: m = 1010 (4-bit message); odd-parity scheme; Compute Hamming Code on the sender’s side. On the receiver’s side, detect and verify a 7th bit error-position in the transmitted data.

  • Hamming & SECDED Code

    Showing all your working out and intermediate steps. a) For data, using 4 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 BE4. You may assume that the SECDED parity is even.     i.  Was there an error in transmission? Explain your answer.     ii. If there was an error, either correct it (and report the corrected data binary string) or explain why it could not be...

  • 7. Show parity using odd I's with double parity, for following data 11001101110. (10 pt.) UG 8. Show the hamming code for any 6-bit data. (10pt.) 9. What are the polynomial equivalence of fol...

    7. Show parity using odd I's with double parity, for following data 11001101110. (10 pt.) UG 8. Show the hamming code for any 6-bit data. (10pt.) 9. What are the polynomial equivalence of following bits. (10 pt.) 1100101 0011101 1110001 010100 Assume a sender has the following data frames. Suppose the sender using burst error detection/correction. Show the actual row and column that is send and received. (10pt.) 1- 0110 2- 1101 3- 0011 4- 0101 11. In terms of...

  • A Hamming code is a technique where errors can not only be detected but can also...

    A Hamming code is a technique where errors can not only be detected but can also be corrected. The simplest example of this kind of code is the (7,4)-Hamming code. In this scheme, a codeword is 7 bits long. We number the positions as follows:                 1   2   3   4   5   6   7 The message that is sent is only four bits long, with these four bits occupying positions 3, 5, 6, and 7. Bits 1, 2, and 4 are...

  • 5) (2 pt) A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the orig...

    5) (2 pt) A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit word read out is 010011111000? Show your work. 5) (2 pt) A 12-bit Hamming code word containing 8 bits of data and 4 parity bits is read from memory. What was the original 8-bit data word that was written into memory if the 12-bit...

  • [Hamming algorithm] having problems understanding the step highlighted in bold. explain the part going over checking...

    [Hamming algorithm] having problems understanding the step highlighted in bold. explain the part going over checking the parity bits (the problem question is listed below) 12+1+r<=2^r-->r=5 5+12=17 for bit length--> -->parity bits check positions are 1,2,4,8,16-->fill in the using BIN skipping over the 1,2,4,8,16 positions--> --> 1=1 2=2 3=1+2 4=4 5=1+4 6=2+4 7=1+2+4 8=8 9=1+8 10=2+8 11=1+2+8 12=4+8 13=1+4+8 14=2+4+8 15=1+2+4+8 16=4+4+8 from my understanding, you check over the parity bits 1,2,4,8,16. using above as a reference. for bit 1...

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