Huffman Coding

Huffman coding is one data compression algorithm that is commonly used for lossless data compression. The algorithm assigned binary codes to ASCII symbols based on frequency of the symbol’s appearance, which reduces the overall bits used to encode a message, and creates a Huffman tree which can be decompresed to recreate the original string.