Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc

上传人:re****.1 文档编号:510305527 上传时间:2023-06-02 格式:DOC 页数:17 大小:458KB
返回 下载 相关 举报
Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc_第1页
第1页 / 共17页
Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc_第2页
第2页 / 共17页
Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc_第3页
第3页 / 共17页
Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc_第4页
第4页 / 共17页
Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc_第5页
第5页 / 共17页
点击查看更多>>
资源描述

《Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc》由会员分享,可在线阅读,更多相关《Java与面向对象程序设计课程设计-基于Java的哈夫曼编码译码系统.doc(17页珍藏版)》请在金锄头文库上搜索。

1、课 程 设 计 课程名称 Java与面向对象程序设计 课程设计 题目名称_基于Java的哈夫曼编码译码系统学生学院 自动化学院 _ _专业班级_网络三班_姓名:_ 学号_指导教师_ _2011 年 6 月 10 日目 录1问题描述和分工情况1.1 问题描述使用Java语言实现哈夫曼算法,对英文文章进行编码和译码。输入输出界面要求使用Web页面,用JSP实现。1.2 分工情况组长:曾庆伟在本课程设计是负责如下工作:1, 环境的搭建(主要是web服务器的搭建)2, 代码编写工作,实现本课程设计的主要功能,即对英文的编码以及译码。3, 主要的界面设计,主要是设计jsp的界面组员1:徐华涛 王锦贤 周

2、基霖1,主要负责上网搜索26个英文字母在文章中出现的概率,并且根据哈夫曼算法设计出26个字母对应的编码。2,画出设计的编码图2系统总体设计2.1 系统设计方案综述设计方案:这个课程设计就是围绕着吧哈夫曼编码体现出来的目的做的第一步是把在输入框中的字符串也就是需要编码的文章转成01的字符串。这里我设计成可以显示出来01字符串第二步,在本地,也就是输入框那个jsp页面吧他的类型转成byte,这样就真正实现了他的目的传送的时候能节省流量。2.2 系统模块设计没什么模块的,就是一整体实现那功能。2.3 数据库设计无数据库2.4 系统功能设计就是简单的传送文件2.5 界面设计很简单的黄绿两种颜色:2.6

3、 开发环境描述开发环境是在Macromedia Dreamweaver 8 上进行的。主要是因为这个课程设计的要求比较简单,还有因为方便设计界面,.3系统详细设计3.1 网上搜索资料abc26个英文字母出现概率E - 0.1268T - 0.0978A - 0.0788O - 0.0776I - 0.0707N - 0.0706S - 0.0634R - 0.0594H - 0.0573L - 0.0394D - 0.0389U - 0.0280C - 0.0268F - 0.0256M - 0.0244W - 0.0214Y - 0.0202G - 0.0187P - 0.0186B - 0

4、.0156V - 0.0102K - 0.0060X - 0.0016J - 0.0010Q - 0.0009Z - 0.00063.2 画哈夫曼编码图为(加入了字符,。!等等)1二一三四一ASLGY。,()!- 回车!二ORDPB三TNMFWXKVJZQEnd四EIHCU3.3 转成编码为:a:0010b:010010c:111100d:01000e:110f:101111g:000010h:111110i:1110j:1011001110k:10110010l:00000n:1010m:101110o:011p:010011q:10110011111r:0101s:0001t:1000u:

5、111101v:1011000w:101101000x:101100110y:000011z:10110011110 :00110000,001111.,001110 :001100011!:00110010-:00110011(:0011010:00110113.4 系统主要函数及其功能描述3.5 核心代码片段描述和注释4系统部署4.1 开发环境的建立开发环境:Web服务器用的是Apache编写代码的工具: Dreamweaver 84.2 系统运行环境的建立运行的操作系统是windows XP浏览器是用IE84.3 系统的部署和运行5系统测试和运行效果5.1 系统运行主要界面及其功能说明在

6、这个输入框中输入要编码的文章。然后点击转成哈夫曼编码按钮即可。5.2 系统测试数据描述输入测试文章为:Christmas celebrations in the West today From November onwards, it is impossible to forget that Christmas is coming. Coloured lights decorate many town centres and shops, along with shiny decorations, and artificial snow painted on shop windows. In

7、streets and shops, Christmas trees (real or plastic evergreen conifer trees) will also be decorated with lights and Christmas ornaments. Shopping centres become busier as December approaches and often stay open till late.Shopping centre speaker systems systems will play Christmas carols - the tradit

8、ional Christmas Christian songs, and groups of people will often sing carols on the streets to raise money for charity. Most places of work will hold a short Christmas party about a week before Christmas. Although traditional Christmas foods may be eaten, drink (and plenty of it) means that little w

9、ork will be done after the party! By mid-December, most homes will also be decorated with Christmas trees, coloured lights and paper or plastic decorations around the rooms. These days, many more people also decorate garden trees or house walls with coloured electric lights, a habit which has long b

10、een popular in USA. In many countries, most people post Christmas greeting cards to their friends and family, and these cards will be hung on the walls of their homes. In UK this year, the British Post Office expects to handle over 100 million cards EACH DAY, in the three weeks before Christmas. Chr

11、istmas cards The custom of sending Christmas cards started in Britain in 1840 when the first Penny Post public postal deliveries began. (Helped by the new railway system, the public postal service was the 19th centurys communication revolution, just as email is for us today.) As printing methods imp

12、roved, Christmas cards were produced in large numbers from about 1860. They became even more popular in Britain when a card could be posted in an unsealed envelope for one half-penny - half the price of an ordinary letter. Traditionally, Christmas cards showed religious pictures - Mary, Joseph and b

13、aby Jesus, or other parts of the Christmas story. Today, pictures are often jokes, winter pictures, Father Christmas, or romantic scenes of life in past times.5.3 系统运行和测试结果运行的结果显示为:11110011111001011110000110001011100010000100110000111100110000001100100100101001010001110011101000010011000011101010001

14、10000100011111011000110000101101000110000110000011000010000110100000100000110011000000110001001011110101011101110001100001010011101100011010111001001011001010011000001110101011010000010010101000000100111100110000111010000011000011100001001100001110101110010011011000100011110010010000001100011000010000110011000010111101

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 资格认证/考试 > 人力资源管理师

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号