登录
首页 » 算法 » 构建哈夫曼树源码

构建哈夫曼树源码

于 2022-04-12 发布 文件大小:27.42 kB
0 173
下载积分: 2 下载次数: 1

代码说明:

应用背景这个算法可以对信息进行编码,用来压缩文本等数据,通过数据的权重规划,将权重越大的数据置于越靠近树的根节点。关键技术算法可以对信息数据进行编码,用来压缩文本,通信信息等数据。利用二叉树对信息进行编码,每次选取两个权重最小构建哈夫曼树,生成的新节点继续用作新节点进行构建哈夫曼树,知道所有的节点构建完毕

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Genetic algorithm c source code, containing the description, but is in English!
    遗传算法的c源代码,内含说明,只不过是英文!-Genetic algorithm c source code, containing the description, but is in English!
    2022-07-08 06:24:04下载
    积分:1
  • c#多线程源代码
    c#多线程源代码-multithreading source code
    2022-02-03 16:07:19下载
    积分:1
  • C语言实现链表基本操作
    c使用C语言实现数据结构的链表操作,链表的基本操作包括链表的初始化,链表的创建,链表的插入,链表的删除,链表的清空,链表的节点的删除,链表节点的遍历。 本文使用纯C语言实现,具有较好的注释风格。
    2022-05-31 22:38:49下载
    积分:1
  • Multi
    多维傅里叶变换,二维DFT快速算法,共分五部--二:二维复序列行列算法-Multi-dimensional Fourier transform, fast algorithm for two-dimensional DFT is divided into 5- 2: two-dimensional complex sequence algorithm ranks
    2022-02-12 21:00:33下载
    积分:1
  • LDPC码bp译码
    LDPC码即低密度奇偶校验码(Low Density Parity Check Code,LDPC),它由Robert G.Gallager博士于1963年提出的一类具有稀疏校验矩阵的线性分组码,不仅有逼近Shannon限的良好性能,而且译码复杂度较低, 结构灵活,是近年信道编码领域的研究热点,目前已广泛应用于深空通信、光纤通信、卫星数字视频和音频广播等领域.现给出LDPC码的BP译码算法实现。
    2022-08-14 21:15:44下载
    积分:1
  • the Capacitated Vehicle Routing Problem
    The CVRP is a hard combinatorial optimisation problem. The scenario is that a set of depots contains goods to be delivered to customers by a fleet of trucks. Each customer wants a certain integer amount of goods called their demand and each truck can only carry a certain amount called its capacity. All trucks have the same capacity. The objective is to find a set of routes, one for each truck, which minimises the total distance travelled by all trucks (the  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-06-15 10:54:51下载
    积分:1
  • 主要分为3个函数。第一个函数为粒子群初始化函数 InitSwarm(SwarmSize......AdaptFunc)其主要作用是初始化粒子群的粒子,...
    主要分为3个函数。第一个函数为粒子群初始化函数 InitSwarm(SwarmSize......AdaptFunc)其主要作用是初始化粒子群的粒子,并设定粒子的速度、位置在一定的范围内。 -Mainly divided into three functions. The first function for the particle swarm initialization function InitSwarm (SwarmSize. ..... AdaptFunc) whose primary role is to initialize the particle swarm of particles, and set the speed of particles, location in a certain range.
    2022-09-29 01:25:03下载
    积分:1
  • 蚁群中有关参数的最优选择对蚁群的具体参数的选择,达到快的收敛速度和好的仿真效果...
    蚁群算法中有关算法参数的最优选择对蚁群算法的具体参数的选择,达到快的收敛速度和好的仿真效果-Ant colony algorithm parameters relating to the optimal algorithm of ant colony algorithm to choose the specific choice of parameters to achieve faster convergence speed and a good simulation of the effect of
    2022-03-21 18:13:58下载
    积分:1
  • 一个正二十面体通过迭代产生(star)星形的漂亮的工程,需要glut
    一个正二十面体通过迭代产生(star)星形的漂亮的工程,需要glut-is an icosahedral through iterative (star) star beautiful project that requires glut
    2022-01-25 16:59:24下载
    积分:1
  • 统计一个txt文件中字符的个数和单词的个数 可以指定文本文件中搜索指定字符...
    统计一个txt文件中字符的个数和单词的个数 可以指定文本文件中搜索指定字符-a txt document the number of characters and words can specify the number of text files to search for the designated characters
    2022-03-13 00:17:30下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载