CS601 ASSIGNMENT NO. 2 SPRING 2023 || 100% RIGHT SOLUTION || DATA COMMUNICATION || BY VuTech
Visit Website For More Solutions
www.vutechofficial.blogspot.com
KINDLY, DON’T COPY PASTE
QUESTION-1:
Given are the pairs of words in the following table.
You are required to mention the Hamming distance associated with each Pair of Words.
ANSWER:
Pair of Words | Hamming Distance |
d (10111,1100) | 4 |
d (1101, 10101) | 3 |
d (10100, 00010) | 3 |
d (1110,0111) | 2 |
d (010,10000) | 4 |
QUESTION-2:
Consider a sender station wants to send “10111011010010111011010101110100” data bits to a destination station. You are required to compute the 8-bit Checksum that the sender will send to destination along with original data bits. Write all necessary calculation steps.
ANSWER:
To compute the 8-bit checksum for the data bits "10111011010010111011010101110100," we'll follow these steps:
Split the data bits into groups of 8 bits:
"10111011 01001011 10110101 01110100"
Add up the binary values of each group:
10111011 + 01001011 + 10110101 + 01110100
Perform 1's complement on the sum:
10111011 + 01001011 + 10110101 + 01110100 = 100110101
Add the carry (if any) back to the sum:
In this case, there is no carry.
Take the 1's complement of the sum to get the 8-bit checksum:
100110101 → 01100110
So, the 8-bit checksum that the sender will send to the destination along with the original data bits is "01100110."
KINDLY, DON’T COPY PASTE
SUBSCRIBE, SHARE, LIKE AND COMMENTS FOR MORE UPDATES
SEND WHATSAPP OR E-MAIL FOR ANY QUERY
0325-6644800
kamranhameedvu@gmail.com
Visit Website For More Solutions
www.vutechofficial.blogspot.com