- 博客(3)
- 收藏
- 关注
原创 求霍夫曼扩展编码
某计算机有10条指令,它们的使用频率分别为 0.30,0.20, 0.16, 0.09, 0.08, 0.07, 0.04, 0.03, 0.02, 0.01 (1)用霍夫曼编码对它们的操作码进行编码,并计算平均码长。 (2)用扩展编码法对操作码进行编码,限两种操作码长度,并使平均码长最短。 (1) 霍夫曼编码的结果以及各编码的长度如下所示: 0.30 0.20
2013-09-11 16:37:51 14463 6
原创 use emacs compile
C-X C-F Find file: ~/hellobao.c C-X C-S M-X compile Compile command: make -k hellobao (=Compile command: cc hellobao.c -o ellobao =Compile command: gcc hellobao.c -o hellobao)
2012-04-26 13:04:54 270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人