Skip to content

LamprosM-prog/HammingCode74

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hamming(7,4) Error Correction in C#

This is a console application implementing the Hamming(7,4) error-correcting code from scratch.

Features

  • Encode messages into Hamming(7,4) codewords.
  • Introduce single-bit errors using a random noise simulation.
  • Decode and correct single-bit errors automatically.
  • Reconstruct original message.

How to Run

  1. Clone the repository.
  2. Open the folder in your terminal.
  3. Run the program using dotnet run.
  4. Type your message and see encoding, noise, and decoding in action.

Example

  • dotnet run
  • Enter message: "Hi world" (No UTF8 Characters)
  • The program will encode the message, and show you the binary form of it.
  • It will also show what bits were flipped due to noise and will show you the final version of the message after the error correction.

Notes

  • This project is educational and shows the underlying mechanics of Hamming code.
  • This program is framework dependent, it will only run on machine with .NET 10 installed.

About

A simple encoder and decoder using Hamming(7,4), with simulated noise and error correction! The project is done in C#.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages