DCC HammingCode
DCC HammingCode
HOD:-
Principal:-
Index
Sr No. Title
1 Introduction
2 Abstract
3 Acknowledgement
Working of Hamming
4
Code
5 Detection and correction
Implementation of
6
Hamming Code in Java
Limitations of Hamming
7
Code
Applications of
8
Hamming Code
9 Conclusion
Introduction
Thank you….!!
Working Of Hamming Code
1 0 1 1 0 1 1
1
Error Word
1 0 1 1 0 1 1
0 1
• P2 D3 D6 D7=1 0 0 1=0
P2 there is no error ->so put P2=0 in
Error word
• P4 D5 D6 D7= 1 1 0 1=1
P4 is having error P4 ->so put P4=1 in
Error word
If all P1,P2,P3 result is 0 then
transmitted data is correct.
1 0 1
Write the word
Error word
1 0 1
1 0 1 1 0 1 1
Corrected Code
1 0 0 1 0 1 1
Implementation of Hamming
Code in Java
Output
PS C:\Users\amitl> cd
PS C:\Users\amitl\OneDrive\Documents\jdk1.8.0_202\bin>
Limitations of Hamming
Code
While Hamming code is effective at
detecting and correcting errors, it does
have some limitations. One limitation
is that it can only correct single-bit
errors. If multiple bits are flipped
during transmission, Hamming code
may not be able to correct them.
• www.geeksforgeeks.org
• En.m.wikipedia.org