字数不算数...... [英] Word Count not Counting Right...

查看:89
本文介绍了字数不算数......的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几周之后就完成了这项任务,因为我完成了即将到来的任务,所以决定尽早尝试下一个,而不是迟早。它的第一部分要求我对文本文档进行字符统计,我必须使用霍夫曼编码进行编码。


下面是我创建的用于计算和显示的代码字符及其在文档中的频率。

Got this assignment due a few weeks later and since I am done with the up coming assignment, decided to try out the next one early rather than rush later. First part of it requires me to do a character count on a text document which i will have to use huffman coding to encode.

Below is my code that i created to count and display the characters and its frequency in the document.

展开 | 选择 | Wrap | 行号

推荐答案

为什么使用Map< ;整数,整数>而不是Map< Character,Integer> ?
Why did you use Map<Integer, Integer> instead of Map<Character, Integer> ?



为什么使用Map< Integer,Integer>而不是Map< Character,Integer> ?
Why did you use Map<Integer, Integer> instead of Map<Character, Integer> ?



试图使用Ascii代码作为密钥。

Was trying to use the Ascii code as the key.



Unix给出:
Unix gives:


这篇关于字数不算数......的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆