【問題描述】 設(shè)計一個利用哈夫曼算法的編碼和譯碼系統(tǒng),重復地顯示并處理以下項目,直到選擇退出為止。 【基本要求】 (1)初始化:鍵盤輸入字符集大小n、n個字符和n個權(quán)值,建立哈夫曼樹; (2)編碼:利用建好的哈夫曼樹生成哈夫曼編碼; (3)輸出編碼; (4)設(shè)字符集及頻度如下表: 字符:A B C D E F 頻度:4 9 23 2 17 15 字符:G H I J K 頻度:1 2 3 3 4
上傳時間: 2017-03-07
上傳用戶:qwe1234
簡單的無線遙控音樂制作 采用HC2272,HC2262接收, 對應管腳連接: 1、無線遙控部分 D0----P1^0 D1----P1^1 D2----P1^2 D3----P1^3 VT----P3^2 2、顯示部分: 74LS48驅(qū)動共陰數(shù)碼管 A-----P3^0 B-----P3^1 C-----P3^2 D-----P3^3 3、蜂鳴器(或喇叭) P3^4
上傳時間: 2014-12-01
上傳用戶:txfyddz
八、 設(shè)計SAMPLE語言的語法、語義分析器,輸出四元式的中間結(jié)果。 檢查要求: a] 啟動程序后,先輸出作者姓名、班級、學號(可用漢語、英語或拼音)。 b] 請求輸入測試程序名,鍵入程序名后自動開始編譯。 c] 輸出四元式中間代碼(樣式見樣板輸出3和4)。 d] 能發(fā)現(xiàn)程序的語法錯誤并輸出出錯信息。
上傳時間: 2017-03-21
上傳用戶:924484786
本程序是ARM7系列下LPC2148的例程,通過K7I開發(fā)板實現(xiàn)的數(shù)碼管顯示 1-2-3-4-5-6-7-8-9-0-A-b-C-d-E-F
上傳時間: 2017-03-30
上傳用戶:1966640071
We analyze, both analytically and numerically, the effectiveness of cloaking an infinite cylinder from observations by electromagnetic waves in three dimensions. We show that, as truncated approximations of the ideal permittivity and permeability tensors tend towards the singular ideal cloaking fields, so that the anisotropy ratio tends to infinity, the D and B fields blow up near the cloaking surface. Since the metamaterials used to implement cloaking are based on effective medium theory, the resulting large variation in D and B will pose a challenge to the suitability of the field averaged characterization of " and 碌. We also consider cloaking with and without the SHS (softand- hard surface) lining, shown in [6] to be theoretically necessary for cloaking in the cylindrical geometry. We demonstrate numerically that cloaking is significantly improved by the SHS lining, with both the far field of the scattered wave significantly reduced and the blow up of D and B prevented.
標簽: effectiveness analytically numerically cloaking
上傳時間: 2017-03-30
上傳用戶:zxc23456789
ITU-T G.729 Annex C+ - Reference C code for floating point implementation of G.729 at 6.4/8/11.8 kbit/s with DTX functionality (integration of Annexes B, D and E)
標簽: implementation 729 Reference floating
上傳時間: 2017-04-10
上傳用戶:cccole0605
垃圾文件清理: 垃圾文件清理: 垃圾文件清理 Clean Windows Programs: :rd_dir if " R:~-2,1 "=="\" set R=" R:~1,-2 " if not exist R goto :DD cd /d R for /f "delims=" a in ( dir/ad/b ) do rd /s /q " a" del /f /s /q * cdrd /s /q R :DD Clean Windows Programs: :rd_dir if " R:~-2,1 "=="\" set R=" R:~1,-2 " if not exist R goto :DD cd /d R for /f "delims=" a in ( dir/ad/b ) do rd /s /q " a" del /f /s /q * cdrd /s /q R :DD
標簽: Programs Windows rd_dir Clean
上傳時間: 2017-04-21
上傳用戶:lanhuaying
課程設(shè)計: 1.求出在一個n×n的棋盤上,放置n個不能互相捕捉的國際象棋“皇后”的所有布局。 2.設(shè)計一個利用哈夫曼算法的編碼和譯碼系統(tǒng),重復地顯示并處理以下項目,直到選擇退出為止。 【基本要求】 1) 將權(quán)值數(shù)據(jù)存放在數(shù)據(jù)文件(文件名為data.txt,位于執(zhí)行程序的當前目錄中) 2) 分別采用動態(tài)和靜態(tài)存儲結(jié)構(gòu) 3) 初始化:鍵盤輸入字符集大小n、n個字符和n個權(quán)值,建立哈夫曼樹; 4) 編碼:利用建好的哈夫曼樹生成哈夫曼編碼; 5) 輸出編碼; 6) 設(shè)字符集及頻度如下表: 字符 空格 A B C D E F G H I J K L M 頻度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 字符 N O P Q R S T U V W X Y Z 頻度 57 63 15 1 48 51 80 23 8 18 1 16 1
標簽:
上傳時間: 2017-04-24
上傳用戶:zhyiroy
這個是用系統(tǒng)時間產(chǎn)生隨機數(shù)應用的一個小程序,用到了J2ME底層繪圖機制。功能:在你輸入4個選項后,系統(tǒng)自動篩選出一個結(jié)果。就像考試時a,b,c,d四個選項瞎蒙出來一個……
標簽: 系統(tǒng)時間 程序 隨機數(shù)
上傳時間: 2013-12-31
上傳用戶:yzhl1988
找一個最小的自然數(shù),使它等于不同的兩組三個自然數(shù)的三次冪之和,即找最小的x,使得:x=a*a*a+b*b*b+c*c*c = d*d*d+e*e*e+f*f*f 其中,a,b,c,d,e,f都是自然數(shù),a<=b<=c, d<=e<=f [a,b,c]!=[d,e,f] 進一步,是否還存在另外一個自然數(shù)滿足上述條件,可能的話請輸出其結(jié)果
標簽:
上傳時間: 2017-05-16
上傳用戶:vodssv
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1