Coder Social home page Coder Social logo

cie425---convolutional-channel-coding-with-source-coding's Introduction

CIE425---Convolutional-Channel-Coding-with-Source-Coding

This program will take a text file as input and encode it using Huffman lossless algorithm.

This code is fully developed by Ahmed Wael for the Information Theory and Coding class in Fall 2018.

How to use

  • For channel coding only:
    • Run the .m file named main_channel.
  • For both the source and channel coding :
    • Run the .m file named main.

For code details and documentation, please take a look at the documentation folder.

Algorithm

  1. Encode the input stream block by block
    • creating a temporary array and shift the elements right with each iteration a new input bit enters.
    • Calculate the parity output bits based on the chosen generation functions K.
  2. Add the additive white gaussian noise (AWGN) to simulate the channel effect.
  3. Decode the encoded stream block by block
    • Calculate the output of each of the different branches are the are equal to 2n where n is equal to the output size over the input size.
    • For each K bits, calculate 2n hamming distances corresponding the different branches by summing the different bits.
    • Calculate the hamming distance for each node by comparing the accumulated distances of the branches leading to this node.
    • Loop from the end of the trellis to the beginning of it, and get the current state and the previous state, which can lead to finding the decoded bit.
  4. Calculate the bit error rate by summing all the different bits of the decoded versus the input streams, and divide by the input size.
  5. Compare the performance of the uncoded code versus the convolutional code.
  6. All this is integrated with the source coding from Huffman project.

SNR vs BER

For the attached example, the SNR vs BER for both the encoding with the convoluational encoding and without the convolutional encoding can be generated in a MATLAB as following : alt text

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

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.