Git Product home page Git Product logo

fix-corrupted-emails's Introduction

Fix Corrupted Emails

This program uses (7,4) Hamming Code to recover data that has been corrupted. In this particular case, corrupted emails are passed in and corrected to show their original messages.

Each codeword in the test files have exactly 1 error. This program determines where that error occured and corrects it.

Getting Started

To get started, grab the https link above and clone this repo to your local machine

git clone https://github.com/benhurley/fix-corrupted-emails.git

Then run the Perl executable and pass in one of the test emails

Perl cn2.pl corrupted_email_1

Prerequisites

In order to clone and run this project, you will need the following:

  1. Perl

How it works

cn2.pl

This Perl script loads in the corrupted emails, finds the inavlid bit in each codeword, fixes it, and then prints the original version and the correct version to the console.

corrupt_email_1 and corrupt_email_2

These are corrupted text files containing several hundred 7-bit codewords. Each codeword has exactly one error. When fixed by the above Perl script, they will print as legible email message.

Acknowledgments

FSU Department of CS for providing test files

fix-corrupted-emails's People

Contributors

benhurley avatar

Watchers

 avatar  avatar

fix-corrupted-emails's Issues

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.