You are on page 1of 1

Readme.

txt

1. Take input of data word that is to be transmitted.


2. calculate the number of redundant bits required. (it may differ from
code to code).
3. Here, I have used the power of the 2 functions and parity function for
clear understanding.
4. Checked the condition for parity and appended the values in the list.
5. Generate hamming code for the input data word, take parity digits for
P1, P2, P 4, P8, …
6. Check if the parity sum is even or odd.
7. Here we use XOR operations if the number of 1’s are even, we append
zero and if the number of 1’s are odd, we append 1.
8. Now, we detect errors in the hamming code using a function.
9. I have used a function for error detection, if we check by changing one
bit in the data word and perform the process, we can get the position of the error.
10. Based on that we can generate a code word for the Hamming Code after
correction.

You might also like