Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/floressek/hamming_code

Project for Intro To Programming 2
https://github.com/floressek/hamming_code

Last synced: 8 days ago
JSON representation

Project for Intro To Programming 2

Awesome Lists containing this project

README

        

Hamming Code Encoder/Decoder
=========================

Encodes binary data using the Hamming Code method, detects and corrects errors, and displays the original data, encoded data, and corrected data.

Features
--------

* Encode user-input binary data using the Hamming Code.
* Automatically detect and correct errors in encoded data.
* Introduce a random error in the encoded data to demonstrate error detection and correction.
* Display the original data, encoded data, encoded data with an error, and the corrected data.

Requirements
------------

* Python 3.x
* Tkinter (usually included with Python)
* Additional Python libraries: random, math

Usage
-----

* Clone or download the source code from this repository.
* Run the script using Python: `python hamming_code_gui.py`
* Enter a binary number (e.g., 1101) in the input field.
* Click the "Encode/Decode" button to see the Hamming Code process in action. The application will display the encoded data, introduce and display an error, detect and correct the error, and finally, decode the corrected data.

Contributing
------------

* Contributions to enhance the functionality, improve the UI, or fix bugs in the application are welcome. Please fork the repository and submit a pull request with your changes.

License
-------

This project is open-source and freely available for personal and educational use under the [MIT License](https://opensource.org/licenses/MIT).