登录
首页 » c++ » 哈夫曼树

哈夫曼树

于 2023-05-22 发布 文件大小:240.53 kB
0 94
下载积分: 2 下载次数: 1

代码说明:

给定n个权值作为n个叶子结点,构造一棵二叉树,若带权路径长度达到最小,称这样的二叉树为最优二叉树,也称为哈夫曼树(Huffman Tree)。哈夫曼树是带权路径长度最短的树,权值较大的结点离根较近。

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

发表评论

0 个回复

  • 001hello
    说明:  QT小程序,一个简单的QT程序,可以下载试试,初学QT适合(QT applet, a simple QT program, you can download it to try, the initial learning of QT is suitable.)
    2020-06-21 00:20:01下载
    积分:1
  • DataMonitor
    西门子机床状态监测用于安装电脑版的采集软件(SIEMENS machine condition monitoring is used to install computer version of acquisition software)
    2017-08-05 09:54:01下载
    积分:1
  • 宿舍管理系统
    宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统宿舍管理系统
    2022-08-07 13:19:25下载
    积分:1
  • L151_LoRa_PingPang
    基于stm32L151核心板的LoRa无线传输(LoRa wireless transmission based on stm32L151 core board)
    2020-06-21 15:20:01下载
    积分:1
  • OBD_Bootloader源程序_V1.0_2017.12.8
    远程升级boot代码跳转部分,GPRS协议部分暂时不用理会,关键是BootLoader代码才是跳转部分,实现flash中A区,B区的切换(Remote upgrading boot code jump part, GPRS protocol part temporarily ignored, the key is BootLoader code is the jump part, realize Flash in A area, B area switch.)
    2018-02-05 15:42:44下载
    积分:1
  • matlabSimulation
    game theory grim leave and return tit-for-tat algorithm matlab resource.It is hard to find and described carefully .if you are a game theory learner it is maybe help
    2011-03-02 19:15:10下载
    积分:1
  • demod_rtl2832
    玩软件无线电的时候,用的rtl2832,这是它的驱动源码(When playing software radio with rtl2832, this is the driver source)
    2013-03-31 22:18:52下载
    积分:1
  • AHaAlgorithm
    《啊哈!算法》扫描版,学习算法的入门书,仅供学习交流使用(" Aha! Algorithm " Scan version, learning algorithm introductory book, only to learn in exchanges)
    2015-05-06 14:11:33下载
    积分:1
  • C# WPF把彩色图片转换为灰度图
    C# 把彩色图片转换为灰度图,这是一个基于WPF的C#图像处理程序,图像彩色转换黑白,支持的图像文件格式为:JPeg,Gif,Bmp,etc。   程序主要实现两个功能,一是将彩色转换为索引像素格式、二是将彩色转换为黑白像素格式,对应于窗口中的按钮,可查看对应功能的演示:   将彩色转换为黑白像素格式,核心代码如下:   TransformedBitmap MyRotatedBitmapSource = new TransformedBitmap();   MyRotatedBitmapSource.BeginInit();   MyRotatedBitmapSource.Source = (System.Windows.Media.Imaging.BitmapSource)this.image1.Source;   MyRotatedBitmapSource.Transform = new RotateTransform(270);   MyRotatedBitmapSource.EndInit();   FormatConvertedBitmap MyFormatedBitmap = new FormatConvertedBitmap();   MyFormatedBitmap.BeginInit();   MyFormatedBitmap.Source = MyRotatedBitmapSource;   MyFormatedBitmap.DestinationFormat = PixelFormats.BlackWhite;   MyFormatedBitmap.EndInit();   this.image1.Source = MyFormatedBitmap;   完整源码例子请在本页下载,运行效果截图如下图示。
    2022-02-01 21:42:57下载
    积分:1
  • stm32f103vbt
    stm32在抢占优先级和数码显方面的运用(the application of stm32f103vbt)
    2011-12-11 21:38:27下载
    积分:1
  • 696518资源总数
  • 106259会员总数
  • 28今日下载