實(shí)現(xiàn)最優(yōu)二叉樹的構(gòu)造;在此基礎(chǔ)上完成哈夫曼編碼器與譯碼器。 假設(shè)報(bào)文中只會(huì)出現(xiàn)如下表所示的字符: 字符 A B C D E F G H I J K L M N 頻度 186 64 13 22 32 103 21 15 47 57 1 5 32 20 57 字符 O P Q R S T U V W X Y Z , . 頻度 63 15 1 48 51 80 23 8 18 1 16 1 6 2 要求完成的系統(tǒng)應(yīng)具備如下的功能: 1.初始化。從終端(文件)讀入字符集的數(shù)據(jù)信息,。建立哈夫曼樹。 2.編碼:利用已建好的哈夫曼樹對(duì)明文文件進(jìn)行編碼,并存入目標(biāo)文件(哈夫曼碼文件)。 3.譯碼:利用已建好的哈夫曼樹對(duì)目標(biāo)文件(哈夫曼碼文件)進(jìn)行編碼,并存入指定的明文文件。 4.輸出哈夫曼編碼文件:輸出每一個(gè)字符的哈夫曼編碼。
上傳時(shí)間: 2014-11-23
上傳用戶:shanml
Let the following relational tables be given: R = (A, B, C) and S = (D, E, F) where A, B, C, D, E, and F are the attributes (columns). Write the SQL statements that will express each of the queries given below:
標(biāo)簽: relational following tables given
上傳時(shí)間: 2014-01-14
上傳用戶:cx111111
%調(diào)用格式 =trapez_g( f_name ,a,b,n) %f_name: 被積函數(shù)的文件名f(x) % a:x的上限 % b:x的下限 % 部分區(qū)間數(shù) %實(shí)例:trapez_g( sin ,0,pi,20)
標(biāo)簽: trapez_g f_name 函數(shù) 上限
上傳時(shí)間: 2013-12-19
上傳用戶:cjl42111
Smart antennas for wireless communication - With MATLAB (Gross F.B. - 2005 - McGraw-Hill)
標(biāo)簽: F.B. communication McGraw-Hill antennas
上傳時(shí)間: 2013-12-22
上傳用戶:蟲蟲蟲蟲蟲蟲
GA求最大值f=ab-bc+ac+c并顯示出a,b,c
上傳時(shí)間: 2013-12-21
上傳用戶:qb1993225
DESCRIPTION : BIN to seven segments converter -- segment encoding -- a -- +---+ -- f | | b -- +---+ <- g -- e | | c -- +---+ -- d -- Enable (EN) active : high -- Outputs (data_out) active : low
標(biāo)簽: DESCRIPTION converter segments encoding
上傳時(shí)間: 2016-08-17
上傳用戶:ainimao
RFID Security - F. Thornton, B. Haines, A. Das, et al - Syngress - 2006
上傳時(shí)間: 2013-12-13
上傳用戶:love_stanford
Problem B:Longest Ordered Subsequence A numeric sequence of ai is ordered if a1 < a2 < ... < aN. Let the subsequence of the given numeric sequence (a1, a2, ..., aN) be any sequence (ai1, ai2, ..., aiK), where 1 <= i1 < i2 < ... < iK <= N. For example, sequence (1, 7, 3, 5, 9, 4, 8) has ordered subsequences, e. g., (1, 7), (3, 4, 8) and many others. All longest ordered subsequences are of length 4, e. g., (1, 3, 5, 8).
標(biāo)簽: Subsequence sequence Problem Longest
上傳時(shí)間: 2016-12-08
上傳用戶:busterman
功能:用斐波那契法求f(x)在區(qū)間[a,b]上的近似極小值。當(dāng)且僅當(dāng)f(x)在[a,b]上為單峰時(shí)次方法適用
標(biāo)簽:
上傳時(shí)間: 2013-12-24
上傳用戶:csgcd001
黃金分割法求極小值 功能:用黃金分割法求f(x)在區(qū)間[a,b]上的近似極小值。當(dāng)且僅當(dāng)f(x)在[a,b]上為單峰時(shí)次方法適用
標(biāo)簽: 分割
上傳時(shí)間: 2016-12-18
上傳用戶:小鵬
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1