實現最優二叉樹的構造;在此基礎上完成哈夫曼編碼器與譯碼器。 假設報文中只會出現如下表所示的字符: 字符 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 要求完成的系統應具備如下的功能: 1.初始化。從終端(文件)讀入字符集的數據信息,。建立哈夫曼樹。 2.編碼:利用已建好的哈夫曼樹對明文文件進行編碼,并存入目標文件(哈夫曼碼文件)。 3.譯碼:利用已建好的哈夫曼樹對目標文件(哈夫曼碼文件)進行編碼,并存入指定的明文文件。 4.輸出哈夫曼編碼文件:輸出每一個字符的哈夫曼編碼。
上傳時間: 2014-11-23
上傳用戶:shanml
C編譯器產生的可顯示機器碼/匯編代碼文件,其中附有源C v: v: @8 g: X& z代碼作為注釋 : z! [3 \) O&...UWOW Grave Composer音樂模塊(MOD)文件 + Q* T) \ z) R f$ a: H, iWP WordPerfect文檔 H! t7 D2 |...
上傳時間: 2013-12-14
上傳用戶:love_stanford
程序名稱: 數碼管顯示與鍵盤管理芯片ZLG7289的標準驅動程序(C51) 文件名: ZLG7289.h ZLG7289.C 說明: 本程序已經調試通過 程序的可移植性很好,僅做少量修改就可以直接包含使用 程序占用資源少,僅使用4根必須I/O口線,不占用定時器等其它資源 所有全局性的標識符都以ZLG7289_開頭,不必擔心命名沖突問題 程序結構清晰,思路明確,結合ZLG7289的數據手冊很容易理解 用法: 1、重新定義I/O接口 2、如果CPU的主頻比較高,則要適當調整延時,詳見ZLG7289_Delay()函數 3、在用戶程序中包含本頭文件 4、在main()函數的開始處添加初始化函數ZLG7289_Init() 5、以后在程序中可以直接使用ZLG7289的用戶指令集 6、讀取鍵盤掃描碼使用函數ZLG7289_Key(),查詢方式、中斷方式皆可
上傳時間: 2013-12-09
上傳用戶:zhangzhenyu
指定一個數字轉換回十進位,八進位,十六進位#include <stdio.h> #include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ printf("十六進位為%x\n",number) /* %x 為十六進位輸出格式*/ system("pause") return 0 }
上傳時間: 2013-11-29
上傳用戶:tyler
A novel met hod t o p artially compensate sigma2delta shap ed noise is p rop osed. By injecting t he comp en2 sation cur rent int o t he p assive loop f ilte r during t he delay time of t he p hase f requency detect or ( PFD) , a maximum reduction of t he p hase noise by about 16dB can be achieved. Comp a red t o ot he r compensation met hods , t he tech2 nique p rop osed he re is relatively simple and easy t o implement . Key building blocks f or realizing t he noise cancel2 lation , including t he delay va riable PFD and comp ensation cur rent source , a re sp ecially designed. Bot h t he behavior level and circuit level simulation results a re p resented.
標簽: sigma2delta compensate injecting artially
上傳時間: 2013-12-18
上傳用戶:qlpqlq
H. Yang, A.P. Petropulu, X. Yang and T. Camp, ?ALLIANCES with Optimal Relay Selection,"IEEE Trans. on Vehicular Technology, January 2008. (MATLAB Code)
上傳時間: 2013-12-21
上傳用戶:star_in_rain
BP神經網絡程序,C語言源代碼 如下: #include "iostream.h" #include "iomanip.h" #include "stdlib.h" #include "math.h" #include "stdio.h" #include "time.h" #include "fstream.h" #define N 120 //學習樣本個數 #define IN 3 //輸入層神經元數目 #define HN 2 //隱層神經元數目 #define ON 2 //輸出層神經元數目 #define Z 20000 //舊權值保存-》每次study的權值都保存下來 double P[IN] //單個樣本輸入數據 double T[ON] //單個樣本教師數據 double U11[IN][HN] //輸入層至第一隱層權值 double V[HN][ON] //隱層至輸出層權值 double X1[HN] //第一隱層的輸入 double Y[ON] //輸出層的輸入 double H1[HN] //第一隱層的輸出 double O[ON] //輸出層的輸出 double YU_HN1[HN] //第一隱層的閾值 double YU_ON[ON] //輸出層的閾值 double err_m[N] //第m個樣本的總誤差 double a //學習效率 double alpha //動量因子
標簽: include iostream iomanip stdlib
上傳時間: 2017-06-15
上傳用戶:xinzhch
M i c r o s o f t公司編譯了一個所有可能的錯誤代碼的列表,并且為每個錯誤代碼分配了一個3 2 位的號碼。Wi n E r r o r. h 頭文件包含了M i c r o s o f t 公司定義的錯誤代碼的列 表。
上傳時間: 2013-12-08
上傳用戶:凌云御清風
I2C 總線8 位遠程I-O 擴展口芯片PCF8574 的原
上傳時間: 2013-07-28
上傳用戶:eeworm
專輯類----單片機專輯 I2C-總線8-位遠程I-O-擴展口芯片PCF8574-的原.rar
上傳時間: 2013-06-04
上傳用戶:portantal