文件名称:Huffman

介绍说明--下载内容均来自于网络,请自行研究使用

哈夫曼树算法

根据给定的n个权值{w1,w2,……wn},构造n棵只有根结点的二叉树,令起权值为wj

在森林中选取两棵根结点权值最小的树作左右子树,构造一棵新的二叉树,置新二叉树根结点权值为其左右子树根结点权值之和

在森林中删除这两棵树,同时将新得到的二叉树加入森林中

重复上述两步,直到只含一棵树为止,这棵树即哈夫曼树

-Huffman tree algorithm based on a given n-weights (w1, w2, ... ... wn), construct n trees only a root node of the tree, so that from the right value of wj in the forest root node to select two the right tree for the value of the smallest subtree around, a new binary tree structure, the right to buy a new tree root node value of its subtree root node around the right value in the forest and delete these two trees, At the same time, the new binary tree obtained by adding the forest to repeat the above two steps until a tree containing only the date, that is, Huffman tree tree
相关搜索: 哈夫曼

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

下载文件列表

Huffman

.......\Debug

.......\Huffman.dsp

.......\Huffman.dsw

.......\Huffman.ncb

.......\Huffman.opt

.......\Huffman.plg

.......\s.cpp

.......\s.dsp

.......\s.ncb

.......\s.plg

相关说明

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

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org