哈夫曼编码 译码java_基于Java的哈夫曼编码译码系统_报告毕业论文
基于Java的哈夫曼編碼譯碼系統_報告畢業論文
1課 程 設 計Java 與面向對象程序設計課程設計基于 Java 的哈夫曼編碼譯碼系統1.問題描述和分工情況1.1 問題描述使用 Java 語言實現哈夫曼算法,對英文文章進行編碼和譯碼。輸入輸出界面要求使用Web 頁面,用 JSP 實現。1.2 分工情況組長:曾慶偉在本課程設計是負責如下工作:1, 環境的搭建(主要是 web 服務器的搭建)2, 代碼編寫工作,實現本課程設計的主要功能,即對英文的編碼以及譯碼。3, 主要的界面設計,主要是設計 jsp 的界面組員 1:徐華濤 王錦賢 周基霖1,主要負責上網搜索 26 個英文字母在文章中出現的概率,并且根據哈夫曼算法設計出26 個字母對應的編碼。……2,畫出設計的編碼圖…2.系統總體設計2.1 系統設計方案綜述設計方案:這個課程設計就是圍繞著吧哈夫曼編碼體現出來的目的做的第一步是把在輸入框中的字符串——也就是需要編碼的文章轉成 01 的字符串。這里我設計成可以顯示出來 01 字符串第二步,在本地,也就是輸入框那個 jsp 頁面吧他的類型轉成 byte,這樣就真正實現了他的目的——傳送的時候能節省流量。2.2 系統模塊設計沒什么模塊的,就是一整體實現那功能。22.3 數據庫設計無數據庫2.4 系統功能設計就是簡單的傳送文件2.5 界面設計很簡單的黃綠兩種顏色:32.6 開發環境描述開發環境是在 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.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 轉成編碼為: 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 系統主要函數及其功能描述3.5 核心代碼片段描述和注釋4.系統部署4.1 開發環境的建立開發環境:Web 服務器用的是 Apache編寫代碼的工具: Dreamweaver 84.2 系統運行環境的建立運行的操作系統是 windows XP瀏覽器是用 IE84.3 系統的部署和運行85.系統測試和運行效果5.1 系統運行主要界面及其功能說明在這個輸入框中輸入要編碼的文章。然后點擊轉成哈夫曼編碼按鈕即可。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 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
總結
以上是生活随笔為你收集整理的哈夫曼编码 译码java_基于Java的哈夫曼编码译码系统_报告毕业论文的全部內容,希望文章能夠幫你解決所遇到的問題。