Question

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 "parity check" bits as follows:

                Bit 1 checks positions 1, 3, 5, and 7. That is, the bit for position 1 is chosen in such a way that the total number of 1's in positions 1, 3, 5, and 7 is even.

                Bit 2 checks positions 2, 3, 6, and 7.

                Bit 4 checks positions 4, 5, 6, and 7.

For example, if I wanted to send the message   0 1 0 0,    I would encode it as follows:

                                                1   0   0   1   1   0   0

A. How would you encode the following messages:                    0 1 0 1

                                                                                                                                                                0 0 1 0

B. What messages did the sender intend to send you if you receive:

                                0 1 1 1 1 0 0

                                1 1 1 1 1 1 0

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

Data (B1, B2, B3, B4) Transmitted Code (x1, x2, B1, x3, B2, B3, B4) B1 B2 B3 B4 X1 X2 B1 X3 B2 B3 B4 010 1 Part 1: B1+B2+B4 0Transmitted Code (x1, x2, B1, x3, B2, B3, B4) Data (B1, B2, B3, B4) 01 11 1 00 11 00 11 1 0

Add a comment
Know the answer?
Add Answer to:
A Hamming code is a technique where errors can not only be detected but can also...
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
  • Create a chat-server gui that implements a hamming code where each client has the ability to...

    Create a chat-server gui that implements a hamming code where each client has the ability to send a message of 4-bits , a 7-bit hamming code is generated, randomly one of the bits get messed up, is sent to reciever, and reciever automically finds location of error, fixes the hamming code, and shows the original message. JAVA PLEASE

  • 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...

  • C++ Program with 2 functions 1. Hamming Functions Tester Write a function that displays a menu...

    C++ Program with 2 functions 1. Hamming Functions Tester Write a function that displays a menu to test the functions from 2 - 4. You must call the functions from 2 - 4 and cannot reimplement their functionality in this function. The menu is displayed as follows: 1) Enter a 4-bit message to encode into a 7-bit Hamming message. 2) Enter a 7-bit Hamming message to transmit through a noisy channel. 3) Enter a 7-bit Hamming message to receive and...

  • 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...

  • an someone explain how to do this? I understand how to do this when there are...

    an someone explain how to do this? I understand how to do this when there are 12 bits like 0x72e. but this hex number has only 8 so i dont get it.    Error Correction, 5 Data bits are interspersed among the parity bits Let pi be the i-th parity bit i means read i, skip i Let di be the j-th data bit Let's encode 0x9A 1001 1010 We'll need 4 parity bits p1 checks positions 1, 3, 5,...

  • [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...

  • A protocol is a set of rules that define some operation. For example, the Internet Protocol...

    A protocol is a set of rules that define some operation. For example, the Internet Protocol (IP) specifies how messages are routed throughout the internet. In this problem, you are asked to implement your 1st messaging protocol (MP1). MP1 is a binary protocol that is used to efficiently encode a set of arithmetic operations using a 4-byte data type (e.g., int). The specification of the protocol is as follow. Using a 4-byte (32-bit stream), MP1 messages encode the ‘+’, ‘-‘,...

  • 5-Given that the ASCII code for A is 1000001, what is the ASCII code for J?...

    5-Given that the ASCII code for A is 1000001, what is the ASCII code for J? Express the answer as 7 binary digits. 6- Suppose we are working with an error-correcting code that will allow all single-bit errors to be corrected for memory words of length 7. We have already calculated that we need 4 check bits, and the length of all code words will be 11. Code words are created according to the Hamming algorithm presented in the text....

  • 1. (1 pt) Under what conditions would an open-loop protocol such as an error-correcting Hamming code...

    1. (1 pt) Under what conditions would an open-loop protocol such as an error-correcting Hamming code be preferable to the feedback type protocols discussed in Chapter 3? 2. (1 pt) Suppose that a stop-and-wait protocol was used on a channel has a 300 millisecond propagation delay and sender frames sizes of 100 milliseconds. The receiver must fully receive the frame before sending an acknowledgment. The size of the acknowledgment can be ignored. What is the channel utilization? 3. (1 pt)...

  • Write legibly to receive good rating. Consider a CRC code with a generator polynomial of g(x)...

    Write legibly to receive good rating. Consider a CRC code with a generator polynomial of g(x) -xSx21 a. (15 points) Show step by step (using the longhand division) how to find the codeword that corresponds to information bits of 10011 b. (15 points) Show the shift-register circuit that implements this CRC code. C. Suppose the codeword length is 10. Answer the following questions, with proper justifications i. (10 points) Give an example of undetectable error burst of length 9 ii....

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