欢迎来到天天文库
浏览记录
ID:41642184
大小:136.75 KB
页数:23页
时间:2019-08-29
《实验51赫夫曼编译》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、界面请输入您要进行的操作(1/2/3/町:输入的数据已经保存在"BData.txt"中字符串中共含有字符61个字符串中字符种类有17种MMMKMMMMMMMMMMXMMMMMMMMMMMMMMMMMMMMMMMMMMXMMMMMMMMXMMMMMMMMMMMMMMMMMMMMMMMMM:输入字符串并进行编码
2、
3、MMMMMMMMMXMMXMMXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM请输入您要编码的字符串:(输入林后输入回车结束)LINZA
4、RALGEBRAINTRODUCTIONOFCOMPUTERPASCALLANGUGEMICROCOMPUTERttLINZARALGEBRAINTRODUCTIONOFCOMPUTERPASCALLANGUGEMICROCOMPUTER请输入您要进行的操作(1/2/3严):1II温馨提不:II在执行1操作时务必在您输入的字符串后加上“卵II译码操作2应在编码操作1后才能进行
5、
6、MMMMXMMMMMMMMMMMMMMXMMMMXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
7、MMMMMKII请输入:II1•对您输入的字符串进行编码II2•从文件提取字符串,然后对提取的字符串进行编码II3•对“RFCdoc.txt”生成的二进制编码进行译码II4•退出本系统字符L出现4次字符I出现1*次字符N出现4次字符E出现5次字符A出现6次字符R出现6次字符G出现3次字符B出现1次字符T出现4次字符0出现6次字符D出现1次字符U出现4次字符C出现5次字符F出现1次字符M出现3次字符P出现3次字符S出现1次您输入的字符串编码为:0111010000011G11110011011010011010
8、1101110111G111010101110111011101000001101010113101100110100011011101010111011100110111100110110100110110001110101011101110101011601101110001101001001101100001101111011101100011011010111011000110110001101001011101100011010100011101001001101110001101160001101
9、011011101010111110111011100110100010001101001011101110111010000111010000111011100110110100111000311011100011010000001101011001191010000116111100110100101110101011101100090131116110001101010001110100100110111000110110000110101101110101字符串的二进制编码已经保存在"BCode.tx
10、t"中:ooneme:901101001:90110101010:9011010100:911101001S:90110100010怎输入的字符串编码为:11loieeeeoi101111001101101Q01iQioiioiiioiiieiiioioioiiioiiioiiiGi0ooooiioioooo119101106110100011011101010111011100110111180110110100110110001110101011101100ioioieneon0111coolidooio
11、oi10110000110111ionion0001101ieiei11eiieeeiioioioO0I1010G10111O11O0011O101O0011101001OO110111OOO11O11OOOQ11O1O110111O1O1O111O1O611101iieonoioooioooiioiooioiiioi11on1010000111oiooooi11oi11oeiioi101col1010999116111000110100000011010110011010100001191111001101
12、0010111010101110110001100191110110001101010001110100100110111000116110000110101101110101匸符串的二进制编码己经保存在"BCode.txt"中F字符对应的编码为::911101G0Q:901101111:901101101:901101011•911101119111010190110100009011010001
此文档下载收益归作者所有