壓縮技術(Huffman Encoding)

一般編碼會使用0,1來做儲存,例如這樣:
notion image
那10個數字就會用到30個bits
要如何壓縮呢
就是用Huffman Encoding
先做排序,接下來做Huffman Tree
notion image