What is Huffman Coding?

Fixed Length Code vs Prefix Code

Application

Encoding Algorithm

  1. Scan target file and calculate frequency of each characters

  2. Compose Min-Heap with frequency as priority

  3. Remove two nodes that have least frequency

  4. Insert empty node with two removed nodes as child node

  5. Repeat 3 - 4 until a node is left

  6. Set left node as root node

Decoding Alogorithm

Application to Deep Learning