Cs601 Assignment No.2
Cs601 Assignment No.2
Assignment No.2
Bc200405739
Instructions:
You need to use MS word document to prepare and submit the assignment on VU-LMS.
It should be clear that your assignment will not get any credit if:
Objectives:
The objective of this assignment is to enhance the learning capabilities of the students about:
Redundancy
Block Coding
Hamming Distance
Assignment
1. Valid code-words
2. Invalid code-words
Note: You are required to show all the necessary calculation steps.
Solution
Dataword bits = k = 8
Redundant bits = r = 2
Total bits = k + r = 8+2 = 10
Now
Codewords = 2n = 210 = 1024
And
Datawords = 2k = 28 = 256
Calculate the Hamming distance given in the below table for each of the following code words?
Solution
Hamming distance can be calculated by comparing bit from left notation to one bit from right notation. the number of
different bits is noted as the hamming distance.
d (10101, 10000) 2
d (00000, 11111) 5
d (00000, 00000) 0
d (000, 011) 2
Best of Luck!