哈夫曼编码 译码java_基于Java的哈夫曼编码译码系统_报告毕业论文
基于Java的哈夫曼編碼譯碼系統(tǒng)_報(bào)告畢業(yè)論文
1課 程 設(shè) 計(jì)Java 與面向?qū)ο蟪绦蛟O(shè)計(jì)課程設(shè)計(jì)基于 Java 的哈夫曼編碼譯碼系統(tǒng)1.問(wèn)題描述和分工情況1.1 問(wèn)題描述使用 Java 語(yǔ)言實(shí)現(xiàn)哈夫曼算法,對(duì)英文文章進(jìn)行編碼和譯碼。輸入輸出界面要求使用Web 頁(yè)面,用 JSP 實(shí)現(xiàn)。1.2 分工情況組長(zhǎng):曾慶偉在本課程設(shè)計(jì)是負(fù)責(zé)如下工作:1, 環(huán)境的搭建(主要是 web 服務(wù)器的搭建)2, 代碼編寫工作,實(shí)現(xiàn)本課程設(shè)計(jì)的主要功能,即對(duì)英文的編碼以及譯碼。3, 主要的界面設(shè)計(jì),主要是設(shè)計(jì) jsp 的界面組員 1:徐華濤 王錦賢 周基霖1,主要負(fù)責(zé)上網(wǎng)搜索 26 個(gè)英文字母在文章中出現(xiàn)的概率,并且根據(jù)哈夫曼算法設(shè)計(jì)出26 個(gè)字母對(duì)應(yīng)的編碼。……2,畫出設(shè)計(jì)的編碼圖…2.系統(tǒng)總體設(shè)計(jì)2.1 系統(tǒng)設(shè)計(jì)方案綜述設(shè)計(jì)方案:這個(gè)課程設(shè)計(jì)就是圍繞著吧哈夫曼編碼體現(xiàn)出來(lái)的目的做的第一步是把在輸入框中的字符串——也就是需要編碼的文章轉(zhuǎn)成 01 的字符串。這里我設(shè)計(jì)成可以顯示出來(lái) 01 字符串第二步,在本地,也就是輸入框那個(gè) jsp 頁(yè)面吧他的類型轉(zhuǎn)成 byte,這樣就真正實(shí)現(xiàn)了他的目的——傳送的時(shí)候能節(jié)省流量。2.2 系統(tǒng)模塊設(shè)計(jì)沒什么模塊的,就是一整體實(shí)現(xiàn)那功能。22.3 數(shù)據(jù)庫(kù)設(shè)計(jì)無(wú)數(shù)據(jù)庫(kù)2.4 系統(tǒng)功能設(shè)計(jì)就是簡(jiǎn)單的傳送文件2.5 界面設(shè)計(jì)很簡(jiǎn)單的黃綠兩種顏色:32.6 開發(fā)環(huán)境描述開發(fā)環(huán)境是在 Macromedia Dreamweaver 8 上進(jìn)行的。主要是因?yàn)檫@個(gè)課程設(shè)計(jì)的要求比較簡(jiǎn)單,還有因?yàn)榉奖阍O(shè)計(jì)界面,.3.系統(tǒng)詳細(xì)設(shè)計(jì)3.1 網(wǎng)上搜索資料 abc26 個(gè)英文字母出現(xiàn)概率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.01564V - 0.0102K - 0.0060X - 0.0016J - 0.0010Q - 0.0009Z - 0.00063.2 畫哈夫曼編碼圖為(加入了字符, 。!等等)1二一 三 四一ASLG Y。 ,( )!!- 回車!‘5二ORDPB三T NM FWXKVJZQ End6四EIHC U3.3 轉(zhuǎn)成編碼為: a :“0010“ b :“010010“ c :“111100“ d :“01000“ e :“110“ f :“101111“ g :“000010“ h :“111110“ i :“1110“ j :“1011001110“ k :“10110010“ l :“00000“ n :“1010“ m :“101110“ o :“011“ p :“010011“ q :“10110011111“ r :“0101“7 s :“0001“ t :“1000“ u :“111101“ v :“1011000“ w :“101101000“ x :“101100110“ y :“000011“ z :“10110011110“ :“00110000“ , ,“001111“ . ,“001110“ \ :“001100011“ ! :“00110010“ - :“00110011“ ( :“0011010“ :“0011011“3.4 系統(tǒng)主要函數(shù)及其功能描述3.5 核心代碼片段描述和注釋4.系統(tǒng)部署4.1 開發(fā)環(huán)境的建立開發(fā)環(huán)境:Web 服務(wù)器用的是 Apache編寫代碼的工具: Dreamweaver 84.2 系統(tǒng)運(yùn)行環(huán)境的建立運(yùn)行的操作系統(tǒng)是 windows XP瀏覽器是用 IE84.3 系統(tǒng)的部署和運(yùn)行85.系統(tǒng)測(cè)試和運(yùn)行效果5.1 系統(tǒng)運(yùn)行主要界面及其功能說(shuō)明在這個(gè)輸入框中輸入要編碼的文章。然后點(diǎn)擊轉(zhuǎn)成哈夫曼編碼按鈕即可。5.2 系統(tǒng)測(cè)試數(shù)據(jù)描述輸入測(cè)試文章為: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 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 traditional 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 work will be done after the party! By mid-December, most homes will also be decorated with Christmas trees, coloured lights and 9paper 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 been 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 h
總結(jié)
以上是生活随笔為你收集整理的哈夫曼编码 译码java_基于Java的哈夫曼编码译码系统_报告毕业论文的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。