III MAEncoding the information before transmission is necessary to ensure data security and efficient delivery of the information. The MATLAB program present here should encodes and decodes the information. Huffman algorithm is a popular encoding method used in electronics communication systems.It is widely used in all the mainstream compression formats that you might encounter- from GZIP, PKZIP (win zip, etc) and BZIP2, to image formats such as JPEG and PNG. Some programs use just the Huffman coding method, while others use it as one step in a multistep compression process. Huffman coding & deciding algorithm is used in compressing data with variable-length codes.The shortest codes are assigned to the most frequent characters and the longest codes are assigned to infrequent characters.