欢迎来到得力文库 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
得力文库 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    第5章 无失真编码.ppt

    • 资源ID:70747736       资源大小:1.07MB        全文页数:34页
    • 资源格式: PPT        下载积分:16金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要16金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    第5章 无失真编码.ppt

    Chapter 5 Lossless Source CodingInformationTheoryandCodinglGeneralmodelofdiscrete,lossless(无失真),non-memorysource:InputsymbolsetCodesymbolsetCodewordset5.1LosslessencoderlHowtocodelosslessly?Assumingthatthestatisticalcharacteristicsofthesourcecanbeignored,itmustsatisfy thefollowingcondition.Togetthetargetoflosslesscoding,itmustconformtothecondition,whichguaranteesthatthereareplentyofcodesymbolstobeused.lFromtheconditionwecangetaninequality,lE.g.5.1SupposeweonlyhavethefirsteightlettersofEnglishalphabet(AtoH)inourvocabulary.TheFixedLengthCode(FLC)forthissetofletterswouldbeLetterCodewordLetterCodewordA000E100B001F101C010G110D011H111Fixed Length CodelAVariableLengthCode(VLC)forthesamesetofletterscanbeLetterCodewordLetterCodewordA00E101B010F110C011G1110D100H1111Variable Length Code1(Huffman coding)lSupposewehavetocodetheseriesofletters:”ABADCAB”.Thefixedlengthcodeandvariablelengthcoderepresentationsofthe7lettersareFixed Length Code000 001 000 011 010 000 001Total bits=21Variable Length Code00 010 00 100 011 00 010Total bits=18ItcanbeseenthattheVLCusesafewernumberofbitsthanFLCsincetheletters,forexample,A,appearingmorefrequently in the sentence are represented with a fewernumberofbits00.lInstantaneous code(prefix code)(1)Itisakindofuniquelydecodablecode(2)Inanunfixedlengthcode,thereisnoonecodebeingprefixtoothercodes.(3)Whendecoding,itdoesnotneedtorefertoitsfollowingcodes,andcanmakethejudgmentimmediately,carryingoutnon-delaydecoding.lLetushavealookatExample5.1again.NowweconsideranotherVLCforthefirst8lettersofEnglishalphabet:LetterCodewordLetterCodewordA0E10B1F11C00G000D01H111Variable Length Code2lThissecondvariablelengthcodeappearstobemoreefficientthanthefirstoneintermsofrepresentationoftheletters.Variable Length Code100 010 00 100 011 00 010Total bits=18Variable Length Code20 1 0 01 00 0 1Total bits=9However,it has decoding problemsHowever,it has decoding problems:Original:010010001-ABADCABNow:010010001-AEABAADOr010010001-ABAABAAABlDefinition 5.1APrefix Codeisoneinwhichnocodewordformstheprefixofanyothercodeword.SuchcodesarealsocalledUniquely DecodableorInstantaneous Codes.lThe optimal codeItisakindofuniquelydecodablecodeItsaveragecodelengthislessthanthatofanyotheruniquelydecodablecode.5.2.1Fixedlengthcodingtheorem5.2LosslesssourcecodingFixed length source coding theoremFixed length source coding theorem:Astothediscrete,non-memory,stationary,ergodicsourcesymbolsequence S=(S1,S2.Sq),wecanuserdifferentsymbolsX=(x1,x2.xr)toperformfixedlengthcode.Forany0and0,astotheN-expansionsource,Ifissatisfied,andwhenNisbigenough,thedecodingerrorcanbelessthan.Thefixedlengthcodingtheoremhaspresentedatheoreticallimitofthecodelengthusedforfixedlengthcoding.lIftheequallengthcodeisdemandedtobeuniquelydecodable,thenitmusthas:lIfN1,then:Conclusion:foruniquedecoding,eachsourcesymbolneedsatleastcodesymbolstoberepresented.lWhenusedual-codesymboltocode,r2,then:Conclusion:whenuseequallengthdual-code,thelimitcodelengthofeachsourcesymbolisExample5.2.2Unfixedlength(Variablelength)sourcecodinglSeveralconceptsofcodetype(Eg.2.4.2)lNon-singularcodeandsingularcodelUniquelydecodablecodelPrefixcode(instantaneouscode,non-delaycode)lKrafttheoremlUnfixedlengthcodingtheorem(ShannonFirstTheorem)Kraft theoremlquestion:findreal-time,uniquelydecodablecodelmethod:researchthecodepartitionconditionofthereal-timeuniquelydecodablecodelintroduction:conceptof“codetree”lconclusion:presenttheconditionthatthereal-timeuniquelydecodablecode(prefixcode)exists,thatis,theKrafttheoremcode treeThe corresponding relationship between VLC and code tree:(1)TreerootStartingpointofacodeword(2)NumberofbranchesfromatreenodeCodedimension(3)NodePartofacodeword(4)TerminalnodeEndofacodeword(5)NumberofbranchesCodelength(6)Non-fullbranchtreeVariablelengthcode(7)FullbranchtreeFixedlengthcodelTheorem 5.1(Kraft Inequality)AnecessaryandsufficientconditionfortheexistenceofabinaryprefixcodesetwhosecodewordshavelengthsisCode tree map for prooflAveragelengthoftheprefixcodeAdiscretenon-memorystationarysourceItslimitsourceentropyisandthenumberofinputsymbolsetis.Thecodelengthofeachcodewordis,thentheaveragecodelengthofprefixcodeis5.3.3 Lossless unfixed length(variable length)source coding theorem lLossless unfixed length source coding theorem(Shannon First Theorem)lFor discrete non-memory stationary source S,its limit entropy is and its code signals are X=x1,xr.lWe 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:lTheorem 5.3(Source Coding TheoremSource Coding Theorem)LetXbethesetoflettersfromaDMSwithfiniteentropyH(X)andxk,k=1,2,Ltheoutputsymbols,occurringwithprobabilities.Giventheseparameters,itispossibletoconstructacodethatsatisfiestheprefixconditionandhasanaveragelengthRthatsatisfiesthefollowinginequalityl lExample:discretesourcewithoutmemoryIts entropy is:Use dual signals(0,1;r=2)construct a prefix code:The average code length of each signal is:The code efficiency is:Construct a prefix code of expansion source S2Prefixcodes1s19/160s1s23/1610s2s13/16110s2s21/16111average code length:average code length of each signal in source S2:code efficiency:Also has:In order to improve the code efficiency,a two-dimensional union code is adopted by considering the 2nd order expansion source of S.Conclusion:Usingunfixedlengthcode,wecanachievequitehighcodingefficiencyevenwhenNisnotveryhigh.Moreoverwemayrealizelosslesscoding.AlsowithNincreasing,thecodingefficiencymoreandmoreapproachesto1.5.4Typicalexampleoflosslesssourcecodingl5.4.1 Huffman codinglCodingmethodlCharacteristiclApplication(Huffman coding)Eg.5.7Codingsteps:1)SortthesourcemessageUaccordingtotheirprobabilitiesinadescendingorder;2)Startfromthetwoleastprobabilities;forexample,thelowerbranchwithlittleprobabilityisassigned“1”,andtheupperbranchisassigned“0”.Ifthetwobranchesprobabilitiesareequal,stillassignthelowerbranch“1”,andtheupper“0”.3)Combinethetwocodedbranches,reorderandrecode.4)Repeatstep3)untilthesumoftheprobabilitiesis1.5)Turnoverfromtherightmostendtotheleftalongthetreebranchtogetthecorrespondingcodeword,likeU3“110”.(Huffman coding)lE.g.1: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.SymbolProbabilityA0.10B0.18C0.40D0.05E0.06F0.10G0.07H0.04(1)The entropy of this source is:(2)The average length of codeword is:(3)The efficiency of this code is therefore:lCharacteristicslCodingmethodisnotunique.lEnsurethesignalwithhigherprobabilityhasashortercodeword,whilethesignalwithlowerprobabilityhasalongerone.Thiscanguaranteeashorteraveragecodelength.lThelasttwocodewordsarealwaysdifferentinthelastbitsymbol,andthesameinthepreviousbits.lThetwolongestsymbolshavethesamecodelength.These four characteristics make Huffman coding be one of the optimum coding.lApplication:lApply widely in various fields.example:International digital facsimile coding standard(1980)US HDTV(1995)lProblems:lError spreadinglAlgorithm complexity rapidly grows with the source string length increasingEnd of Chapter 5

    注意事项

    本文(第5章 无失真编码.ppt)为本站会员(hyn****60)主动上传,得力文库 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知得力文库 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于得利文库 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

    © 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

    黑龙江省互联网违法和不良信息举报
    举报电话:0468-3380021 邮箱:hgswwxb@163.com  

    收起
    展开