Spring 2024 - CS601 - 2 - BC240219108
Spring 2024 - CS601 - 2 - BC240219108
02 Total Marks: 20
Semester: Spring 2024
CS601: Data Communication Due Date: 24-June-2024
Instructions:
Please read the following instructions carefully before submitting assignment:
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:
Objective:
Checksum
Hamming Distance
Minimum Hamming Distance
Solution file
Question No.1
Suppose two devices need to communicate with each other in such a way that the data sent by the sender could be
verified at the receiver side for accuracy. For this purpose, both the sender and the receiver agreed upon the use of
Checksum algorithm at both sides.
Carry bits 1 1 1 1 1
Segment 1 1 1 0 1 1 0 1 1
Segment 2 1 0 1 0 1 0 1 0
1 1 0 0 0 0 1 0 1
Carry bits
Segment 1 0 1 1 1 0 1 1 0
Segment 2 0 0 0 0 0 0 0 1
0 1 1 1 0 1 1 1
Carry bits 1 1 1 1 1 1 1
Segment 1 0 1 1 1 0 1 1 1
Segment 2 0 0 0 0 1 1 1 1
1 0 0 0 0 1 1 0
Hamming distance:
Pair of Words Hamming Distance(d)
(11001, 01100) 3
(10110, 01011) 4
(11100, 11110) 1
(01101, 11101) 1
Minimum Hamming distance 1