![無失真編碼PPT課件_第1頁](http://file3.renrendoc.com/fileroot3/2021-11/13/ac373826-76d9-40f8-aebe-2623787a4800/ac373826-76d9-40f8-aebe-2623787a48001.gif)
![無失真編碼PPT課件_第2頁](http://file3.renrendoc.com/fileroot3/2021-11/13/ac373826-76d9-40f8-aebe-2623787a4800/ac373826-76d9-40f8-aebe-2623787a48002.gif)
![無失真編碼PPT課件_第3頁](http://file3.renrendoc.com/fileroot3/2021-11/13/ac373826-76d9-40f8-aebe-2623787a4800/ac373826-76d9-40f8-aebe-2623787a48003.gif)
![無失真編碼PPT課件_第4頁](http://file3.renrendoc.com/fileroot3/2021-11/13/ac373826-76d9-40f8-aebe-2623787a4800/ac373826-76d9-40f8-aebe-2623787a48004.gif)
![無失真編碼PPT課件_第5頁](http://file3.renrendoc.com/fileroot3/2021-11/13/ac373826-76d9-40f8-aebe-2623787a4800/ac373826-76d9-40f8-aebe-2623787a48005.gif)
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、 General model of discrete, lossless (無失真), non-memory source:Input symbol setCode symbol setCode word set12(,.,);1,2,.,liiiiiiilsWxxxiq12 ,.,)irXx xx5.1 Lossless encoder第1頁/共34頁 How to code losslessly? Assuming that the statistical characteristics of the source can be ignored, it must satisfy the f
2、ollowing condition.To get the target of lossless coding, it must conform to the condition , which guarantees that there are plenty of code symbols to be used.NlqrlFrom the condition we can get an inequality,rqNlrqlNloglog第2頁/共34頁 E.g. 5.1 Suppose we only have the first eight letters of English alpha
3、bet (A to H) in our vocabulary. The Fixed Length Code (FLC) for this set of letters would beLetterCodewordLetterCodewordA000E100B001F101C010G110D011H111Fixed Length Code第3頁/共34頁A Variable Length Code (VLC) for the same set of letters can be LetterCodewordLetterCodewordA00E101B010F110C011G1110D100H11
4、11Variable Length Code1 (Huffman coding)第4頁/共34頁 Suppose we have to code the series of letters:” A BAD CAB”. The fixed length code and variable length code representations of the 7 letters areFixed Length Code000 001 000 011 010 000 001Total bits= 21Variable Length Code00 010 00 100 011 00 010Total
5、bits= 18It can be seen that the VLC uses a fewer number of bits than FLC since the letters, for example, A, appearing more frequently in the sentence are represented with a fewer number of bits 00.第5頁/共34頁 Instantaneous code (prefix code)(1) It is a kind of uniquely decodable code(2) In an unfixed l
6、ength code, there is no one code being prefix to other codes.(3) When decoding, it does not need to refer to its following codes, and can make the judgment immediately, carrying out non-delay decoding.第6頁/共34頁 Let us have a look at Example 5.1 again. Now we consider another VLC for the first 8 lette
7、rs of English alphabet:LetterCodewordLetterCodewordA0E10B1F11C00G000D01H111Variable Length Code2第7頁/共34頁 This second variable length code appears to be more efficient than the first one in terms of representation of the letters.Variable Length Code100 010 00 100 011 00 010Total bits= 18Variable Leng
8、th Code20 1 0 01 00 0 1Total bits= 9:Original: 0 1 0 01 00 0 1 - A BAD CABNow: 0 10 0 1 0 0 01 - A EAB AADOr 0 1 0 0 1 0 0 0 1 - A BAAB AAAB第8頁/共34頁 Definition 5.1 A Prefix Code is one in which no codeword forms the prefix of any other codeword. Such codes are also called Uniquely Decodable or Insta
9、ntaneous Codes.lThe optimal codeIt is a kind of uniquely decodable codeIts average code length is less than that of any other uniquely decodable code.第9頁/共34頁 5.2.1 Fixed length coding theorem5.2 Lossless source coding: As to the discrete, non-memory, stationary, ergodic source symbol sequence S=(S1
10、,S2 .Sq),we can use r different symbols X =(x1, x2. xr) to perform fixed length code. For any 0 and0,as to the N-expansion source, If is satisfied, and when N is big enough,the decoding error can be less than .The fixed length coding theorem has presented a theoretical limit of the code length used
11、for fixed length coding. log( )(0)lrH SN 第10頁/共34頁 If the equal length code is demanded to be uniquely decodable, then it must has: If N1,then: Conclusion:for unique decoding, each source symbol needs at least code symbols to be represented. When use dual-code symbol to code, r2,then: Conclusion:whe
12、n use equal length dual-code, the limit code length of each source symbol is log/logqr1loglog ()Nlqlq bitN log ()q bitloglogNllqqrNrloglogqlrExample第11頁/共34頁5.2.2 Unfixed length (Variable length) source coding Several concepts of code type(Eg.2.4.2) Non-singular code and singular code Uniquely decod
13、able code Prefix code(instantaneous code, non-delay code) Kraft theorem Unfixed length coding theorem(Shannon First Theorem)第12頁/共34頁Kraft theorem question:find real-time, uniquely decodable code method:research the code partition condition of the real-time uniquely decodable code introduction:conce
14、pt of “code tree” conclusion:present the condition that the real-time uniquely decodable code (prefix code) exists, that is, the Kraft theorem第13頁/共34頁code treeThe corresponding relationship between VLC and code tree:(1) Tree root Starting point of a code word(2) Number of branches from a tree node
15、Code dimension(3) Node Part of a code word(4) Terminal node End of a code word(5) Number of branches Code length (6) Non-full branch tree Variable length code (7) Full branch tree Fixed length code 第14頁/共34頁Theorem 5.1 (Kraft Inequality) A necessary and sufficient condition for the existence of a bi
16、nary prefix code set whose code words have lengths is Lnnn.21121LknkCode tree map for proof第15頁/共34頁 Average length of the prefix code A discrete non-memory stationary source Its limit source entropy is and the number of input symbol set is . The code length of each code word is , then the average c
17、ode length of prefix code is )(SH11,.,.,.,iqiqSsSsSsSpppP,1,2,.,il iqql5.3.3 Lossless unfixed length (variable length) source coding theorem 1qiiill p第16頁/共34頁 Lossless unfixed length source coding theorem () For discrete non-memory stationary source S, its limit entropy is and its code signals are
18、X=x1,xr. We can always code the source S by using a coding method to construct uniquely decodable code. Thus the average code length of each source signal satisfies:)(SH( )( )1loglogHsHslrr 第17頁/共34頁Theorem 5.3 () Let X be the set of letters from a DMS with finite entropy H(X) and xk, k= 1, 2, , L t
19、he output symbols, occurring with probabilities . Given these parameters, it is possible to construct a code that satisfies the prefix condition and has an average length R that satisfies the following inequalitykxP( )( )1H xRH x第18頁/共34頁 : discrete source without memory412431sspSIts entropy is:134(
20、 )log4log0.811/443H SbitsymUse dual signals(0, 1; r=2)construct a prefix code:1,021ssThe average code length of each signal is:1l ( )0.811H SlThe code efficiency is:第19頁/共34頁Construct a prefix code of expansion source S2Prefix code s1s1 9/160 s1s2 3/1610 s2s1 3/16110 s2s2 1/16111i)(iPaverage code le
21、ngth:293312712331616161616l average code length of each signal in source S2 :2727/ 21632l code efficiency:2( )0.961H SlAlso has:In order to improve the code efficiency, a two-dimensional union code is adopted by considering the 2nd order expansion source of S. 3( )0.985H Sl4( )0.991H Sl第20頁/共34頁: Us
22、ing unfixed length code, we can achieve quite high coding efficiency even when N is not very high. Moreover we may realize lossless coding. Also with N increasing, the coding efficiency more and more approaches to 1.第21頁/共34頁5.4 Typical example of lossless source coding5.4.1 Huffman coding Coding me
23、thod Characteristic Application第22頁/共34頁(Huffman coding)12341/ 21/ 41/81/8SssssP Eg. 5.7第23頁/共34頁Coding steps: 1) Sort the source message U according to their probabilities in a descending order; 2) Start from the two least probabilities; for example, the lower branch with little probability is assi
24、gned “1”, and the upper branch is assigned “0”. If the two branches probabilities are equal, still assign the lower branch “1”, and the upper “0”. 3) Combine the two coded branches, reorder and recode. 4) Repeat step 3)until the sum of the probabilities is 1. 5) Turn over from the rightmost end to t
25、he left along the tree branch to get the corresponding code word, like U3 “110”. 第24頁/共34頁(Huffman coding) E.g.1:第25頁/共34頁第26頁/共34頁E.g. 2Eight symbols (A-H) with the probabilities of occurrence given in the right table. Please draw the Huffman coding procedure and compute the coding efficiency. Symb
26、olProbabilityA0.10B0.18C0.40D0.05E0.06F0.10G0.07H0.04第27頁/共34頁第28頁/共34頁第29頁/共34頁(1) The entropy of this source is:222222220.10log (0.10)0.18log (0.18)0.40log (0.40)0.05log (0.05)0.06log (0.06)0.10log (0.1000)0.07log (0.07)0.04log (0.04)2.5524bits/symbolH (2) The average length of codeword is:0.10 30.18 30.40 1
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 公司水暖維修合同范本
- 2025年度智能城市建設合作項目投標協(xié)議范本
- 健身會所轉(zhuǎn)讓合同范本
- 2025年立體倉庫設備,相關物料搬運設備項目可行性分析報告
- 2025年度酒吧市場推廣與廣告投放合同
- 2025年度大型工業(yè)園區(qū)綜合供能合同范本(含節(jié)水節(jié)電)
- 2025年度門窗行業(yè)市場準入許可合同
- 中國海洋生物酶行業(yè)市場前瞻與投資戰(zhàn)略規(guī)劃分析報告
- 2025年度智慧旅游項目合作協(xié)議管理規(guī)定
- 退生活部申請書
- 蔬菜采購項目投標書
- 肩周炎康復護理
- 2022年安徽管子文化旅游集團有限公司招聘筆試試題及答案解析
- SAPPM設備管理解決方案
- Q-HN-1-0000.08.004《風力發(fā)電場電能質(zhì)量監(jiān)督技術標準》
- 多指畸形-課件
- 5G NSA站點開通指導書(臨時IP開站)
- 宗教與社會課件
- 3人-機-環(huán)-管理本質(zhì)安全化措施課件
- 生殖醫(yī)學中心建設驗收標準分析-講座課件PPT
- DB44∕T 1811-2016 石灰?guī)r山地造林技術規(guī)程
評論
0/150
提交評論