CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 Windows编程

文件名称:lzw

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2012-10-26
  • 文件大小:
    1.21kb
  • 已下载:
    1次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

实现lzw词典编码方法

Lzw编码算法的设计思路:

  1.开始时的词典包含所有的根(先将所有单个字符编码),当前缀P时空的;

  2.当前字符(C)=字符流中的下一个字符;

3.判断缀-符串P+C是否在词典中

A如果“是”:P=P+C//(用C扩展P)

B.如果“否”:

a 把代表当前前缀P的马子输出到码字流;

b 把缀-符串P+C添加到词典;

c 令P=C//(现在的P仅包含一个字符C);

4. 判断字符流中是否还有码字要译

(1)如果是,就返回到2;

(2)如果否

a 把代表当前前缀P的码字输出到码字流;

b 结束。.

-Coding method to achieve lzw dictionary coding algorithm Lzw design ideas: 1. The beginning of the dictionary contains all the root (first of all a single character encoding), the current time is made up of P 2. The current character (C) = the next character stream character 3. judge up- at string P+ C is in the dictionary, if A " is" : P = P+ C// (use C extension of P) B. If " no" : a prefix P to the representative of the current output of the commode to the code word stream b put up- at string P+ C added to the dictionary c so that P = C// (the P now contains only one character C) 4. to determine whether there are character stream code words to translate (1) If yes, on the return to the 2 (2) If it has a prefix P to the representative of the current output of the code word to code word stream b end. .
相关搜索: LZW lzw编码

(系统自动生成,下载前可以参看下载内容)

下载文件列表

lzw.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com