Question: Write a program that uses the ( 8 , 4 ) Hamming code as presented in class for automatic error correction. The encoder should generate
Write a program that uses the Hamming code as presented in class for automatic error correction. The encoder should generate a file encoded that consists of codewords and should be twice the size of the original dataFile. The decoder uses encoded as input and generates file decoded that should have the same content as dataFile when only single errors occurred in codewords. To test your program, the decoder should corrupt one bit in each codeword read from encoded before actual decoding of this codeword is performed. To process bytes properly, use type unsigned char in C for reading and writing; also, use get for reading, not In Java, use type int, but read with method read from FileInputStream or BufferedInputStream and write with method write to FileOutputStream or BufferedOutputStream Use bitwise operators ~ & shifts wherever they can be used.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
