GithubHelp home page GithubHelp logo

ameanasad / syndrome-error-decoding Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 147 KB

A class that is able to develop any (n, k) linear code. Includes an implementation of an ASCII correcting linear code along with a simulation of error correction.

Python 100.00%
python statistics statistical-analysis error-messages error-correcting-codes syndrome-decoding matplotlib error-correction linear-codes

syndrome-error-decoding's Introduction

Syndrome-Error-Decoding

Update June 2022: The simulation plot is not a very informative plot due to the time being multiplied by the error percentage. There is an issue of relative scales and also multiplication by zero. I do not recommend using this plot and I plan to make changes to make it more informative.

I developed a class that is able to develop any (n, k) linear code including by generating a generator matrix, parity check matrix, and a syndrome decoding table. I used that class to develop an ASCII code class in order to correct errors in the ascii representation of alphabet letters.

I developed a stochastic simulation in order to test the accuracy of different error correcting codes. This was done by
writing a random text generator. Thanks to https://www.wordfrequency.info/ for supplying me with a 5000 word data set. I used the output from the text generator to feed it into a function that parses the text and transforms it into a vector of binary representations of each character based on it's ASCII representation. I then used a function that randomly distorts bits in each character. From there I was able to apply the linear code to try and retrieve the original text. My simulation focused on measuring the time required for the operation and also the amount of errors that where corrected.

Here are some results from the simulation:

This is the Simulation Plot: Simulation Plot

This is the Error Percentage Table:

Percentage Error Table

syndrome-error-decoding's People

Contributors

ameanasad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

syndrome-error-decoding's Issues

Syndrome-Error-Decoding

Hello sir,
I tried to run the program it shows no error but the simulation result is not showing anything

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.