Assignment No 4
Assignment No 4
Answer:
The codeword corresponding to the dataword 10 is 101. However, due to the occurrence of
a 3-bit burst error, the codeword is altered to 010. As this modified pattern is not a valid
codeword, the receiver promptly identifies the error and rejects the received data, ensuring the
integrity of the transmission.
2). In Table 10.2, the sender sends dataword 10. If a 3-bit burst error corrupts
the first three bits of the codeword, can the receiver detect the error? Defend your
answer.
Datawords Codewords
00 00000
01 01011
10 10101
11 11110
Answer:
The codeword corresponding to the dataword 10 is 10101. However, in the event of a 3-bit
burst error, the codeword is transformed to 01001. Since this altered pattern does not align
with any valid codewords, the receiver identifies the error and rejects the received data,
ensuring the integrity of the transmission.
3). Using the code in Table 10.2, what is the dataword if one of the following
code-words is received?
Datawords Codewords
00 00000
01 01011
10 10101
11 11110
a). 01011
Answer:
The codeword 01011 is legitimate, resulting in the decoded dataword being 01.
4). We need a data word of at least 11 bits. Find the values of k and n in the
Hamming code C (n, k) with 𝒅𝒎𝒊𝒏 = 𝟑.
Answer:
The detection of burst errors of size 15 is generally reliable, with a probability of slipping by
𝟏 𝟏
of approximately ( )r or ( ))8 = 0.004 .This translates to a small likelihood of 4 out of 1000
𝟐 𝟐
burst errors of size 15 remaining undetected. While the error detection mechanism is effective,
there exists a minimal probability that some specific burst patterns may go unnoticed,
emphasizing the importance of considering error probabilities in the reliability assessment of
the system.
6). Assuming even parity, find the parity bit for each of the following data units.
In even parity, the parity bit is chosen so that the total number of 1s in the data unit (including the
parity bit) is even.
a). 1001011
Answer:
❖ To find the parity bit for the given data sequence "1001011", we need to determine the
value of the parity bit so that the total number of '1's in the data sequence, including the
parity bit, is even.
❖ Counting the number of '1's in the given data sequence: 1 (first position), 0, 0, 1, 0, 1,
1.
❖ There are a total of 4 '1's in the data sequence. Since we want an even parity, the parity
bit should be 0 to ensure that the total count becomes even.
❖ Therefore, the parity bit for the given data sequence "1001011" is 0.
b). 0001100
Answer:
❖ To determine the parity bit for the given data sequence "0001100" with even parity,
we need to calculate the value of the parity bit so that the total number of '1's in the
data sequence, including the parity bit, is even.
❖ Counting the number of '1's in the given data sequence: 0, 0, 0, 1, 1, 0, 0.
❖ There are a total of 2 '1's in the data sequence. Since we want an even parity, the parity
bit should be set to 0 to ensure that the total count becomes an even number.
❖ Therefore, the parity bit for the given data sequence "0001100" with even parity is 0.
7). Given the data word 1010011110 and the divisor 10111:
a). Show the generation of the codeword at the sender site (using binary
division).
(b) Show the checking of the codeword at the receiver site (assume no error).