C++實現的哈弗曼編碼,并有流程圖(1)I:初始化(Initialization)。從指定的英文文件中Sourcefile.txt讀取數據,根據文件內容統計的字符的頻度,建立哈夫曼樹。 (2)E:編碼(Encoding)。利用已經建好的哈夫曼樹進行編碼,并將每個字符的編碼寫入文件HuffCode.txt中保存。 (3)C:壓縮(Compress)。根據HuffCode.txt中編碼對文件Sourcefile.txt進行重新編碼,并將重新編碼后的內容寫入文件CodeFile.txt中。 (4)D:譯碼(Decoding)。利用已經建好的哈夫曼樹將文件CodeFile.txt中的代碼進行譯碼,結果存入文件TextFile中。 (5)P:打印代碼文件(Print)。將文件CodeFile.txt的內容顯示在終端上,每行50個代碼。 (6)T:顯示哈夫曼樹(Treeprinting)。將已經在內存中的哈夫曼樹以直觀的方式(樹或凹入表形式)顯示在終端上。
標簽: 編碼
上傳時間: 2013-12-24
上傳用戶:gxrui1991
C語言筆試必考題,掌握了這幾道題,保證C語言筆試戰無不勝。此系本人筆試N次后總結、整理,很好用,試試就知道啦。
上傳時間: 2013-12-21
上傳用戶:Yukiseop
一、編程環境: windows2003 +visual stdio c++ .net,Ado + SQL2000 二、SQL設置: 將在SQL2000下建立schooldata數據庫,導入數據文件 三、導入數據: data目錄下有school_back數據庫備分文件 操作:用SQL企業管理器還原數據庫來導入數據 訪問本地數據庫服務器,密碼是自己設置的那個,操作schooldata數據庫的用戶名和密碼相同。 主要用ADO訪問數據庫,和幾個顯示數據的控件Treectrl,listctrl,datagrid等程序中有幾個BUG還沒解決, 四、實現功能: 操作:在選擇查詢條件:選擇一個,tree控件里顯示相關信息 可以在tree控件里單擊來顯示每個ITEM,每個ITEM相關信息顯示在LIST控件內 雙擊LIST控件顯示具體信息 也可以在窗口里單擊右鍵或操作菜單具體操作 五、主要功能: 查詢,添加,刪除,顯示“學院,各系,班級,學生,教師,社團,課程”等信息 程序還用了Active Skin 對程序進行了換膚!!
標簽: SQL 2000 schooldata windows
上傳時間: 2013-12-23
上傳用戶:BIBI
T-kernel 的extension源代碼,是日本最著名的T-kernel所獨有的,適合開發T-kernel的朋友們使用! TK/SE is the program that extends T-Kernel and provides the functions such as a file system and a process management. The TK/SE archive to be provided is comprised of the main portion and the 2 extended file system portions, and TK/SE object is built by adding these to T-Kernel source. a) tkernel_se_1.00.00.tar.gz Main source of T-Kernel/SE b) extfs_fatfs_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (FAT) c) extfs_cdrom_1.00.00.tar.gz Difference source of T-Kernel/SE extended file system (CD-ROM)
上傳時間: 2014-01-20
上傳用戶:czl10052678
c++二、通過將其元素插入到雙向鏈表中的方法對數組A進行排序。算法對鏈表的當前操作位置進行維護,當需要插入表項時,若新元素比當前位置值要大,則往前移動;若小則往后移動。編寫函數DoubleSort實現上述排序算法。 template <class T> void DoubliSort( T a[], int n)
上傳時間: 2013-12-03
上傳用戶:gundamwzc
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
ITU-T在1996年3月公布了G.729建議的8Kbit/s共軛結構代數碼激勵線性預測(CS-ACELP)語音編碼方案,其編解碼程序C語言的源代碼。
上傳時間: 2014-01-25
上傳用戶:whenfly
Program main BIOS image | | /B - Program Boot Block | | /N - Program NVRAM | | /C - Destroy CMOS checksum | | /E - Program Embedded Controller Block | | /K - Program all non-critical blocks | | /Kn - Program n th non-critical block only(n=0-7) | | /Q - Silent execution | | /REBOOT - Reboot after programming | | /X - Don t Check ROM ID | | /S - Display current system s ROMID | | /Ln - Load CMOS defaults
標簽: Program Destroy Block NVRAM
上傳時間: 2016-07-26
上傳用戶:wfl_yy
C++沉思錄的完整版,作者是AT&T網絡體系結構部門的負責人,從事C++已十年之久。此書很值得一看
標簽:
上傳時間: 2013-12-10
上傳用戶:lifangyuan12
C++ Footprint and Performance Optimization contains case studies and sample code to give readers concrete examples and proven solutions to problems that don t have cut and paste solutions. The market for miniature computer programming is exploding. C++ Footprint and Performance Optimization supplies programmers the knowledge they need to write code for the increasing number of hand-held devices, wearable computers, and intelligent appliances. This book gives readers valuable knowledge and programming techniques that are not currently part of traditional programming training.
標簽: Optimization Performance Footprint and
上傳時間: 2014-01-06
上傳用戶:杜瑩12345