/Huffman-Algorithm

Huffman Algorithm using Matlab

Primary LanguageMATLAB

Huffman

Discrete source coding method based on Huffman code using Matlab

This repository contains the following source code files:

  1. HuffmanMain.m
  2. HuffmanDict.m - calculate Huffman codewords using an input alphabet and the corresponding odds
  3. HuffmanEnco.m - compress / encode a sequence of symbols into bits
  4. HuffmanDeco.m - decompression / decoding of a binary sequence into symbols

You can use your own "txt" and "mat" files (texts or images)