Instruction: For every question you answer, please show the calculation steps, if you do not show the calculation step and show only the final result, you will not receive any score. You can use online resources for conversion, if the conversion is not a part of the question. There are a total of eight questions.
Question 5: 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. We now receive the following code word:
1 0 1 0 1 0 1 1 1 1 0
Assuming even parity, is this a legal code word? If not, according to our error-correcting, where is the error?
Solution
We know at sender end parity bits are at positions 1 , 2 , 4 and 8.
| D11 | D10 | D9 | P8 | D7 | D6 | D5 | P4 | D3 | P2 | P1 |
Parity bits are calculated at receiver end . The decimal equivalent of the parity bits (c1c2c3c4) is calculated. If it is 0, there is no error. Otherwise, the decimal value gives the bit position which has error.
c1 = EvenParity(1, 3, 5, 7, 9, 11)
c2 = EvenParity(2, 3, 6, 7, 10, 11)
c3 = EvenParity(4,5,6,7)
c4= EvenParity(8,9,10,11)
Code word received is :
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 |
Bit numbers for above codeword are:
| 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
c1= 0 XOR 1 XOR 1 XOR 1 XOR 1 XOR 1 = 1
c2= 1 XOR 1 XOR 0 XOR 1 XOR 0 XOR 1 = 0
c3 = 1 XOR 1 XOR 0 XOR 1 = 1
c4 = 0 XOR 1 XOR 0 XOR 1 = 0
Bit error position will be C1C2C3C4 = 1010 = 10 , since this is non zero so this code word is not legal.
So the error is in bit D10 so we can invert this bit from 0 to 1, , so correct pattern was 1 1 1 0 1 0 1 1 1 1 0
Instruction: For every question you answer, please show the calculation steps, if you do not show...
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....
6. Suppose we want an error-correcting code that will allow all single-bit errors to be corrected for memory words of length 10. a) How many parity bits are necessary? b) Assuming we are using the Hamming algorithm presented in this chapter to design our error-correcting code, find the code word to represent the 10-bit information word: 1001100110
9. Consider the following 4 bits to be stored in a memory with Hamming error correcting code. Assume even parity code. 1 0 0 a. Write the check bits. b. Assume when than an error changes one of the bits as follows. Can the error be detected and corrected/? 1
All that is needed is to fill in that one area that says
"Student provides missing code to compare computed
hammingCode[] bits to the codeword[] bits
to determine the incorrect bit." in the code below.
THAT IS ALL THAT IS NEEDED PLUS SCREENSHOT OF COMPILED OUTPUT
AFTERWARDS.
Please TAKE SCREENSHOT of the compiled output
which should look similar to the sample one provided.
//------------------------------------------------------
// Problem #6
// Problem6.c
//------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>...
Show how you got your answer. 5.12 For the 8-bit word 00100001, the check bits stored with it would be 1001. Suppose when the word is read from memory, the check bits are calculated to be 0101. What is the data word that was read from memory? You manu check hits are needed if the Hamming error correction code is used to 12
[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...
**I asked this question once, and the answer completely ignored a majority of the rules listed on this. PLEASE read what is necessary before giving an answer. **NEITHER answer when searching for this question has a ParityChain class, a ParityChainDemo class or even include some of the stated requirements (such as hasError method). **Parity bit was specified by instructor to be LEFT most bit in chain Done in Java using Apache NetBeans IDE 11.2 -- Objectives: To create a data...
Question 2. Using the Hamming code algorithm (7,4), convert a data message (0111) using 7bit. a) b) c) d) e) Find number of parity bits needed Evaluate values of parity bits using Exclusive-OR. Show final message bits with parity bits. How do you identify that the received message has error? Inject an error (o or 1) at position 3 and identify the error position.
Consider a binary communication channel transmitting coded words of n bits each. Assume that the probability of successful transmission of a single bit is p (and the probability of an error is q=1-p), and that the code is capable of correcting up to e (where e>= 0) errors. If we assume that the transmission of successive bits is independent, then what is the probability of successful word transmission? Hint: the word is successfully transmitted if there are e or fewer...
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...