登录
首页 » matlab » Huffman

Huffman

于 2013-11-13 发布 文件大小:1KB
0 156
下载积分: 1 下载次数: 3

代码说明:

  哈弗曼编码,构造哈夫曼树,构造哈夫曼树非常简单,将所有的节点放到一个队列中,用一个节点替换两个频率最低的节点,新节点的频率就是这两个节点的频率之和。这样,新节点就是两个被替换节点的父节点了。如此循环,直到队列中只剩一个节点(树根)。(Hoffman coding, Huffman tree structure, Huffman tree structure is very simple, all the nodes in a queue, replace the two lowest frequency node with a node, the new node and the frequency of frequency is the two nodes. So, the new node is two replaced node parent node. So the cycle, until the queue is only one node (Shu Gen). )

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

发表评论

0 个回复

  • Lcs
    求最长公共子序列。本算法使用动态规划算法,解得最长公共子序列问题。(Find the longest common subsequence. The algorithm uses a dynamic programming algorithm, the solution was the longest common subsequence problem.)
    2013-12-27 14:01:11下载
    积分:1
  • floyd
    floyd,求最短路径的算法。。求任意两点间的最短距离(floyd, seeking the shortest path algorithms. . Arbitrary order of the shortest distance between two points)
    2008-07-28 09:40:20下载
    积分:1
  • VB为前台,SQL_SERVER为后台的关于贸易的库编程
    VB为前台,SQL_SERVER为后台的关于贸易的数据库编程-prospects for VB, SQL_SERVER background on the trade of Database Programming
    2022-07-20 07:55:23下载
    积分:1
  • 利用随机函产生30000个随机整,利用插入排序、起泡排序、选择排序、快速排序、堆排序、归并排序等排序方法进行排序,并统计每一种排序上机所花费的时间...
    利用随机函数产生30000个随机整数,利用插入排序、起泡排序、选择排序、快速排序、堆排序、归并排序等排序方法进行排序,并统计每一种排序上机所花费的时间-Using random functions to generate 30,000 random integers, the use of insertion sort, bubbling sort, select sort, quick sort, heap sort, merge sort and other sorting methods to sort and sort each type of statistics on the time machine
    2023-01-11 09:50:04下载
    积分:1
  • 反正切函C实现,一个简单的C语言函的实现,以及两个math的头文件...
    反正切函数C实现,一个简单的C语言函数的实现,以及两个math的头文件-Arc tangent function C implementation, a simple implementation of C-language function, and two math header file
    2022-01-25 13:45:48下载
    积分:1
  • eightQueue
    用回溯法,求解八皇后问题。该算法是算法设计与分析的一个常用例题的求解(By backtracking to solve the eight queens problem. The algorithm is algorithm design and analysis to solve a common example)
    2011-04-25 23:28:58下载
    积分:1
  • 客户管理
    一个客户管理的源代码,采用三层式结构设计。-Management of a client
    2023-08-18 08:20:03下载
    积分:1
  • 食堂打饭排队队列仿真
    用队列模拟食堂打饭过程,并计算出每个人打饭的平均等待时间(The queue is used to simulate the canteen cooking process, and the average waiting time for each person to cook meals is calculated.)
    2018-05-04 21:34:44下载
    积分:1
  • lujing
    图的邻接表生成,深度遍历及任意两点间的路径(The adjacency table to generate deep traversal path between any two points)
    2012-05-22 18:18:29下载
    积分:1
  • dijkstra_mapped_heap
    单源最短路径,dijkstra算法+映射二分堆,正向表形式,复杂度O(mlogn)(Single-source shortest path, dijkstra algorithm+ Mapping 2 points heap, positive list system, complexity of O (mlogn))
    2009-12-18 13:13:25下载
    积分:1
  • 696516资源总数
  • 106637会员总数
  • 8今日下载