Skip to content

Haidyasser/Hamming-code-implementation-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Hamming Code Implementation

Description

This is a simple implementation of Hamming Code in Python.

The program asks for the number of data bits and calculates the number of redundant bits required to implement Hamming Code.

It then asks for the data bits and calculates the redundant bits using the standard Hamming Code algorithm.

The program then asks for the position of the bit to be altered and alters it.

Finally, it calculates the syndrome and corrects the error, if any.

The program then displays the original data bits and the corrected data bits.

Usage

Run the program using the following command:

python3 main.py

Code

Importing the required libraries

import math

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages