皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
No.5 - Arithmetic Coding and Huffman Coding are two popular lossless compression methods. (a) What are the advantages and disadvantages of Arithmetic Coding as compared to Huffman Coding? Answer: The main advantage of Arithmetic Coding over Huffman Coding is that whereas the minimum code length for a symbol in Huffman Coding is 1, since we create a binary tree with 0 or 1 attached to each branch, in Arithmetic Coding the number of bits per symbol can be fractional. But Arithmetic Coding has a subtle implementation difficulty. When the intervals shrink, we need to use very high-precision numbers to do encoding. This makes practical implementation of this algorithm infeasible. (b) Suppose the alphabet is [A; B; C], and the known probability distribution is P A =0.5; P B =0.4; P C =0.1. For simplicity, let’s also assume that both encoder and decoder know that the length of the messages is always 3, so there is no need for a terminator. i. How many bits are needed to encode the message BBB by Huffman coding? Answer: 6 bits. Huffman Code: A - 0, B - 10, C - 11; or A - 1, B - 00, C - 01. i i. How many bits are needed to encode the message BBB by arithmetic coding? Answer: s y m b o l l o w h i g h r a n g e 0 1 1 B 0 . 5 0 . 9 0 . 4 B 0 . 7 0 . 8 6 0 . 1 6 B 0 . 7 8 0 . 84 4 0 . 06 4 4 bits. Binary codeword is 0.1101, which is 0.8125.
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】王国维曾写了(),以康德的知识论来检验中国关于性善性恶的讨论。
A.
《屈子文学之精神》
B.
《论哲学家与美学家之天职》
C.
《论性》
D.
《原命》
【简答题】油菜霜霉病与白锈病的病原菌都属于()亚门真菌
【单选题】古代的拉帕努伊人曾在复活节岛上创造过辉煌和文明,但这种辉煌是建立在森林砍伐、土地滥用、过度渔猎基础上的。欲壑难填终于导致环境承载力的丧失。15世纪后,岛上的大棕榈树灭绝了,森林的消失导致水土流失,文明走向了终结。这个关于人类开发与生态关系的案例体现的哲学道理是() ①事物发展的方向是前进的、上升的,道路是曲折的、迂回的 ②自然界的物质性要求人们在改造自然的过程中应尊重自然,与自然和谐相处 ③规律具...
A.
②③
B.
②④
C.
③④
D.
①③
【判断题】商品溯源的核心技术是唯一身份码的承载介质及其读写技术,从条形码发展到二维条形码,进而发展到无线射频识别技术,体现了技术水平的从低级向高级发展。( )
A.
正确
B.
错误
【单选题】特异性感染是指
A.
破伤风杆菌感染
B.
金黄色葡萄球菌感染
C.
铜绿假单胞菌感染
D.
溶血性链球菌感染
E.
大肠杆菌感染
【简答题】简述主动转运的分类及特点
【简答题】甲上市公司发行公司债券为建造专用生产线筹集资金,有关资料如下: (1)2×10年12月31日。委托证券公司以7755万元的价格发行3年期分期付息公司债券,该债券面值为8 000万元,票面年利率为4.5%,实际年利率为5.%,每年付息一次,到期后按面值偿还,支付的发行费用与发行期间冻结资金产生的利息收入相等。 (2)生产线建造工程采用出包方式,于2×11年1月1日开始动工,发行债券所得款项当日全...
【单选题】特异性感染是指
A.
破伤风杆菌感染
B.
金黄色葡萄球菌感染
C.
绿脓杆菌感染
D.
溶血性链球菌感染
E.
大肠杆菌感染
【简答题】白菜霜霉病的病原属于 门 属。
【单选题】刃磨刮刀时,先磨( ),后磨( )。
A.
两个大平面,端面
B.
端面,两个大平面
C.
随便磨,不分先后
D.
不分先后,随便磨
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题