Papers/algorithm
huffman coding
tomato13
2015. 3. 14. 09:03
1. you should order frequencies of each character.
2. Then, the more often written character should get the shorter length index and the less often written character should has longer length index.
3. Then, you should make huffman tree. For you should generate indexes where each index must not the prefix value of other indexes.
( The way of making huffman tree is simple. You can refer to it on the internet. )