Question

Q2 : Assume we are having a linear block coding, use Hamming code to do the...

Q2 : Assume we are having a linear block coding, use Hamming code to do the following

A. Encode the dataword 10011010 ?

B. Examine the codeword 10100110001000 to see if it is correct or not? If you think is incorrect, then show the position of the bit causing the error and correct as appropriate?

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

Part A:

For encoding to Hamming code we should create the data word leaving space for parity bit(all positions that are power of 2 i.e. 1,2,4,8.... and all other bits are for data to be encoded) as: _ _ 1 _ 0 0 1 _ 1 0 1 0.

Parity bit at position 1: even parity(P1: _10111) hence parity bit at 1 position is 0 i.e _ _ 1 _ 0 0 1 _ 1 0 1 0

Parity bit at position 2: odd parity(P2: _10101) hence parity bit at 2 position is 1 i.e 0 _ 1 _ 0 0 1 _ 1 0 1 0

Parity bit at position 4: odd parity(P4: _0010) hence parity bit at 4 position is 1 i.e 0 1 1 _ 0 0 1 _ 1 0 1 0

Parity bit at position 8: even parity(P8: _1010) hence parity bit at 8 position is 0 i.e 0 1 1 1 0 0 1 _ 1 0 1 0

Ans: 011100101010

Part B:

No it is not correct. For checking correctness we have to check for position 1,2,4,8,16..

for parity 1: P1:_101010 ie odd hence 1 which is correct

for parity 2: P2:_1110100 ie even hence 0 which is correct

for parity 4: P4:_011000 ie odd hence it should be 1 but it is incorrect in given code

for parity 8: P8:_001000 ie odd hence it should be 1 but it is incorrect in given code

there is issue with 4th and 8th position hence we could say 12(4+8) is location of bad bit. If we make 12th bit 1 ie new correct codeword is 10100110001100

Add a comment
Know the answer?
Add Answer to:
Q2 : Assume we are having a linear block coding, use Hamming code to do the...
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
  • assume we want to send a dataword of two bits using FEC based on the Hamming...

    assume we want to send a dataword of two bits using FEC based on the Hamming distance. Show how the following list of dataword/codewords can automatically correct up to a one bit error in transmission dataword-codeword 00- 00000 01- 01011 10- 10101 11- 11110

  • 1. Channel Coding We would like to add linear block code (3,6) using the generator matrix:...

    1. Channel Coding We would like to add linear block code (3,6) using the generator matrix: 1 001 01 G-0 1 0 0 1 1 (a) (5 points) Determine the parity check matrix H (b) (20 points) What is the minimum distance of this code? How many error can this code correct? (c) (5 points) What is the code word for the data sequence 011000101111? (d) (20 points) If you receive the codeword 010001000010101010, what is the transmitted sequence?

  • 4. In this problem you will use CodeWarrior to develop the code to implement a three-light...

    4. In this problem you will use CodeWarrior to develop the code to implement a three-light traffic signal. The program should do the following: a. Turn on a green LED attached to Port B bit 2 for 60 seconds, b. Turn off the green LED and turn on a yellow LED attached to Port B bit 1 for 30 seconds, c. Turn off the yellow LED and turn on a red LED attached to Port B bit 0 for 60...

  • cs55(java) please Part 1: You are a programming intern at the student transfer counselor's office. Having...

    cs55(java) please Part 1: You are a programming intern at the student transfer counselor's office. Having heard you are taking CS 55, your boss has come to ask for your help with a task. Students often come to ask her whether their GPA is good enough to transfer to some college to study some major and she has to look up the GPA requirements for a school and its majors in a spreadsheet to answer their question. She would like...

  • Coding for Python - The pattern detection problem – part 2: def calculate_similarity_list(data_series, pattern) Please do not use 'print' or 'input' statements. Context of the assignme...

    Coding for Python - The pattern detection problem – part 2: def calculate_similarity_list(data_series, pattern) Please do not use 'print' or 'input' statements. Context of the assignment is: In this assignment, your goal is to write a Python program to determine whether a given pattern appears in a data series, and if so, where it is located in the data series. Please see attachments below: We need to consider the following cases: Case 1 - It is possible that the given...

  • the picture above is the one you are supposed to use for the MATlab code please...

    the picture above is the one you are supposed to use for the MATlab code please help Problems. Grayscale images are composed of a 2D matrix of light intensities from O (Black) to 255 (White). In this lab you will be using grayscale images and do 2D-array operations along with loops and iflelse branches. 1. We can regard 2D grayscale images as 2D arrays. Now load the provided image of scientists at the Solvay Conference in 1927 using the imread)...

  • Using C++ in Visual Studios Rewrite the code to use a Stack instead of a Queue....

    Using C++ in Visual Studios Rewrite the code to use a Stack instead of a Queue. You will need to think about the differences in the Stack and Queue. Think about how they operate and how the nodes may differ.   Modify the code as necessary. You will need to push to the Stack, pop from the Stack, peek at the Stack. You will need a member functions like in the example code. Your program will need to show that everything...

  • Please use C programming to write the code to solve the following problem. Also, please use the i...

    Please use C programming to write the code to solve the following problem. Also, please use the instructions, functions, syntax and any other required part of the problem. Thanks in advance. Use these functions below especially: void inputStringFromUser(char *prompt, char *s, int arraySize); void songNameDuplicate(char *songName); void songNameFound(char *songName); void songNameNotFound(char *songName); void songNameDeleted(char *songName); void artistFound(char *artist); void artistNotFound(char *artist); void printMusicLibraryEmpty(void); void printMusicLibraryTitle(void); const int MAX_LENGTH = 1024; You will write a program that maintains information about your...

  • **TStack.py below** # CMPT 145: Linear ADTs # Defines the Stack ADT # # A stack (also called a pushdown or LIFO stack)...

    **TStack.py below** # CMPT 145: Linear ADTs # Defines the Stack ADT # # A stack (also called a pushdown or LIFO stack) is a compound # data structure in which the data values are ordered according # to the LIFO (last-in first-out) protocol. # # Implementation: # This implementation was designed to point out when ADT operations are # used incorrectly. def create(): """ Purpose creates an empty stack Return an empty stack """ return '__Stack__',list() def is_empty(stack): """...

  • Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an...

    Additional code needed: PartA: BurgerOrder class (1 point) Objective: Create a new class that represents an order at a fast-food burger joint. This class will be used in Part B, when we work with a list of orders. As vou work through this part and Part B, draw a UML diagram of each class in using the UML drawing tool 1) Create a new Lab5TestProject project in Netbeans, right-click on the lab5testproject package and select New>Java Class 2) Call your...

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