案例講解-哈夫曼編碼的使用

下面模擬對原文本進行編碼,而後傳輸後,進行相應的解析獲得原有的數據,真個過程也能夠看做是一個典型的壓縮、解壓縮操做,具體演示代碼以下:this #include <stdio.h> typedef struct INPUT { unsigned char * data; int len; }INPUT; void test(INPUT test, char code[][21]); vo
相關文章
相關標籤/搜索