赫夫曼編譯碼器: 用哈夫曼編碼進(jìn)行通信可以大大提高信道利用率,縮短信息傳輸時(shí)間,降低傳輸成本。但是,這要求在發(fā)送端通過(guò)一個(gè)編碼系統(tǒng)對(duì)待傳數(shù)據(jù)預(yù)先編碼,在接收端將傳來(lái)的數(shù)據(jù)進(jìn)行譯碼(復(fù)原)。對(duì)于雙工信道(即可以雙向傳輸信息的信道),每端都需要一個(gè)完整的編/譯碼系統(tǒng)。試為這樣的信息收發(fā)站寫一個(gè)哈夫曼碼的編/譯碼系統(tǒng)。 [基本要求]一個(gè)完整的系統(tǒng)應(yīng)具有以下功能: (1)I:初始化(Initialization)。從終端讀入字符集大小n,以及n個(gè)字符和n個(gè)權(quán)值,建立哈夫曼樹(shù),并將它存于文件hfmTree中。 (2)E:編碼(Encoding)。利用已建好的哈夫曼樹(shù)(如不在內(nèi)存,則從文件hfmTree中讀入),對(duì)文件ToBeTran中的正文進(jìn)行編碼,然后將結(jié)果存入文件CodeFile中。 (3)D:譯碼(Decoding)。利用已建好的哈夫曼樹(shù)將文件CodeFile中的代碼進(jìn)行譯碼,結(jié)果存入文件TextFile中。 (4)P:印代碼文件(Print)。將文件CodeFile以緊湊格式顯示在終端上,每行50個(gè)代碼。同時(shí)將此字符形式的編碼文件寫入文件CodePrin中。 (5)T:印哈夫曼樹(shù)(Tree printing)。將已在內(nèi)存中的哈夫曼樹(shù)以直觀的方式(樹(shù)或凹入表形式)顯示出,同時(shí)將此字符形式的哈夫曼樹(shù)寫入文件TreePrint中。
上傳時(shí)間: 2016-04-17
上傳用戶:zaizaibang
4×4鍵盤,按鍵發(fā)聲,1—9—0號(hào)鍵依次發(fā)do—xi、do、re、mi,*、#鍵清除最近輸入
標(biāo)簽: 鍵盤
上傳時(shí)間: 2016-05-05
上傳用戶:康郎
The CD Audio sample allows some non-SCSI2 CD ROMs to support audio operations by intercepting the relevant audio ioctls and translating them into the command block(s) expected by the non-compliant cdroms. It supports Plug and Play and Power Management, and is 64-bit compliant.
標(biāo)簽: intercepting operations non-SCSI support
上傳時(shí)間: 2016-05-17
上傳用戶:ANRAN
C++實(shí)現(xiàn)的哈弗曼編碼,并有流程圖(1)I:初始化(Initialization)。從指定的英文文件中Sourcefile.txt讀取數(shù)據(jù),根據(jù)文件內(nèi)容統(tǒng)計(jì)的字符的頻度,建立哈夫曼樹(shù)。 (2)E:編碼(Encoding)。利用已經(jīng)建好的哈夫曼樹(shù)進(jìn)行編碼,并將每個(gè)字符的編碼寫入文件HuffCode.txt中保存。 (3)C:壓縮(Compress)。根據(jù)HuffCode.txt中編碼對(duì)文件Sourcefile.txt進(jìn)行重新編碼,并將重新編碼后的內(nèi)容寫入文件CodeFile.txt中。 (4)D:譯碼(Decoding)。利用已經(jīng)建好的哈夫曼樹(shù)將文件CodeFile.txt中的代碼進(jìn)行譯碼,結(jié)果存入文件TextFile中。 (5)P:打印代碼文件(Print)。將文件CodeFile.txt的內(nèi)容顯示在終端上,每行50個(gè)代碼。 (6)T:顯示哈夫曼樹(shù)(Treeprinting)。將已經(jīng)在內(nèi)存中的哈夫曼樹(shù)以直觀的方式(樹(shù)或凹入表形式)顯示在終端上。
標(biāo)簽: 編碼
上傳時(shí)間: 2013-12-24
上傳用戶:gxrui1991
Abstract-The effect of the companding process on QAM signals has been under investigation for the past several years. The compander, included in the PCM telephone network to improve voice performance, has an unusual affect on digital QAM data signals which are transmitted over the same channel. The quantization noise, generated by the companding process which is multiplicative (and asymmetric), degrades the detectability performance of the outermost points of the QAM constellation more than that of the inner points. The combined effect of the companding noise and the inherent white gaussian noise of the system, leads us to a re-examination of signal constellation design. In this paper we investigate the detectability performance of a number of candidates for signal constellations including, a typical rectangular QAM constellation, the same constellation with the addition of a smear-desmear operation, and two new improved QAM constellation designs with two-dimensional warpi
標(biāo)簽: investigation Abstract-The companding the
上傳時(shí)間: 2013-12-20
上傳用戶:英雄
輸入一段英文字符,試為該文中的每個(gè)字符編制相應(yīng)的哈夫曼碼。 (1)I:初始化(Initialization)。對(duì)輸入的一段英文中的每個(gè)字符統(tǒng)計(jì)其權(quán)值,建立哈夫曼樹(shù); (2)E:編碼(Encoding)。利用已建好的哈夫曼樹(shù),對(duì)每個(gè)字符進(jìn)行編碼。 (3)D:譯碼(Decoding)。利用已建好的每個(gè)編碼,對(duì)輸入的一個(gè)由0、1組成的序列進(jìn)行譯碼; (4)P:印代碼文件(Print)。將每個(gè)字符編的哈夫曼碼和譯碼結(jié)果顯示在終端上。
上傳時(shí)間: 2013-12-16
上傳用戶:lizhen9880
The CD Audio sample allows some non-SCSI2 CD ROMs to support audio operations by intercepting the relevant audio ioctls and translating them into the command block(s) expected by the non-compliant cdroms. It supports Plug and Play and Power Management, and is 64-bit compliant. No INF file is needed to install this driver.
標(biāo)簽: intercepting operations non-SCSI support
上傳時(shí)間: 2014-08-17
上傳用戶:pkkkkp
An Efficient and Effective Detailed Placement Algorithm Global Swap To identify a pair of cells that can be swapped to reduce wirelength (others are fixed). 2. Vertical Swap Swap a cell with a nearby cell in the segment above or below. 3. Local Re-ordering Re-order consecutive cells locally to reduce wirelength. 4. Single-Segment Clustering Place cells optimally within a segment.
標(biāo)簽: Algorithm Efficient Effective Placement
上傳時(shí)間: 2013-12-18
上傳用戶:ukuk
C/C++ Reference There are no "Introduction to Programming" tutorials here. This site is meant to be used by more-or-less experienced C++ programmers, who have a good idea of what they want to do and simply need to look up the syntax. If you re interested in learning C/C++, try one of these sites: How C Programming Works C Programming C++ Language Tutorial
標(biāo)簽: Introduction Programming Reference tutorials
上傳時(shí)間: 2014-07-26
上傳用戶:ljmwh2000
his an ecapsulation of the ICS - Internet Component Suite. ICS can be found at : http://users.swing.be/francois.piette/indexuk.htm Please take the time to look at the code and learn something. If you re a Dephi Pro, you can probably give me some tips as I am still new to Delphi programming.
標(biāo)簽: ecapsulation ICS Component Internet
上傳時(shí)間: 2013-12-22
上傳用戶:epson850
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1