cs601 a2
cs601 a2
SHAHMIR KHAN
BC230215178
CS601
ASSIGNMENT 2
Question No. 1
Calculate the bit 8-bit checksum for the given data packet at the sender side only.
11011011
+10101010
110000101
Carry bit = 1
So, if the carry bit is generated then adding carry bit into the answer
10000101
+ 1
10000110
10000110
+ 11110000
101110100
Carry bit = 1
Answer is 01110101
So, if the carry bit is generated then adding carry bit into the answer
01110100
+ 1
01110101
Put the answer in original segments:
01110101 00001111
01110101
+ 00001111
10000100
The complete message with the checksum for transmission by the sender.
Question No. 2
Find the hamming distance for the given pair of words. Also find out the minimum Hamming distance
from the given set of words.
(11001, 01100) 3
(10110, 01011) 4
(11100, 11110) 1
(01101, 11101) 1