Tutorial Activity 2

# Tutorial Activity 2 - MH 8300 Tutorial Activity 2 Hamming...

This preview shows pages 1–4. Sign up to view the full content.

MH 8300 Tutorial Activity 2 Hamming Code Decoding Set A Group Members Name NTU Email ID Marks : /2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
MH 8300 Tutorial Activity 2 Hamming Code Decoding Set A Question 1. (Hamming Decoding Algorithm) Figure 1: Hamming Code Decoder Definition. The Hamming code of length 7 is the set { ( x 1 , x 2 , x 3 , x 4 , x 1 + x 2 + x 4 , x 1 + x 2 + x 3 , x 1 + x 3 + x 4 ) : x i ∈ { 0 , 1 }} . (a) Determine the following codewords from the first four coordinates. x 1 x 2 x 3 x 4 x 5 x 6 x 7 1 1 0 1 x 1 x 2 x 3 x 4 x 5 x 6 x 7 0 1 0 1 (b) For each of the following subset of coordinates of a Hamming codeword, determine if the number of 1s is always odd / always even / sometimes odd, sometimes even . { x 1 , x 2 , x 3 , x 4 } { x 1 , x 2 , x 4 , x 5 } { x 1 , x 2 , x 3 , x 6 } { x 1 , x 3 , x 4 , x 7 } (c) Using Qn 1(b), propose a simple method to determine if a received word belongs to the Hamming code.
(d) Use Qn 1(b) & 1(c) to determine the following Hamming codewords and fill in the blanks. x 1 x 2 x 3 x 4 x 5 x 6 x 7 0 0 0 1 1 x 1 x 2 x 3 x 4 x 5 x 6 x 7 1 0 0 0 1 x 1 x 2 x 3 x 4 x 5 x 6 x 7 0 0 0 1 0 (e) Given a received word of y = y 1 y 2 y 3 y 4 y 5 y 6 y 7 , where y = 1011101 , use the Hamming decoding algorithm to decode y . A 1 should be coloured A 2 should be coloured A 3 should be coloured So we should flip Hence, determine the output codeword of the Hamming code decoder.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern