登录
首页 » 算法 » 基于堆的优先队列C语言实现

基于堆的优先队列C语言实现

于 2022-03-13 发布 文件大小:2.73 kB
0 186
下载积分: 2 下载次数: 1

代码说明:

优先队列(priority_queue)和一般队列(queue)的函数接口一致,不同的是,优先队列每次出列的是整个队列中最小(或者最大)的元素。 本文简要介绍一种基于数组二叉堆实现的优先队列 详细出处参考:http://www.jb51.net/article/41978.htm

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

发表评论

0 个回复

  • 梯度函数的逆。我已经提供了1个版本的工作
    The inverse of the gradient function. I ve provided versions that work on 1-d vectors, or 2-d or 3-d arrays. In the 1-d case I offer 5 different methods, from cumtrapz, and an integrated cubic spline, plus several finite difference methods. In higher dimensions, only a finite difference/linear algebra solution is provided, but it is fully vectorized and fully sparse in its approach. In 2-d and 3-d, if the gradients are inconsistent, then a least squares solution is generated
    2022-06-02 09:40:06下载
    积分:1
  • 基于Harris多尺度角点检测的图像配准新算法
    为改进角点检测算子的检测性能,提高基于角点的图像配准算法的配准精度,把多分辨分析的思想引入到经典 的Harris角点检测中。构造了基于小波变换的灰度强度变化公式,并得到了具有尺度变换特性的自相关矩阵,从而构建 了一种新的Harris多尺度角点检测算法。这样,使得新的角点检测可以在不同的尺度下获取角点,并克服了单一尺度的 Harris角点检测可能存在的角点信息丢失、位置偏移和易受噪而提取出伪角点等问题。然后根据角度直方图得到的旋转 角度,和提取的以角点为中心的特征子图,定义了角点点对的对齐度。最后,运用最大化对齐度准则来精确地确定角点匹 配点对。实验表明,该配准算法具有精确性、有效性和抗噪性,实现了良好的配准效果。
    2022-02-06 06:33:57下载
    积分:1
  • It s simple implementation of Genetic Algorithm on 8
    It s simple implementation of Genetic Algorithm on 8-puzzle and as result it can say either there is or not a set of movement to go from initial state to a given final state.-It s simple implementation of Genetic Algorithm on 8-puzzle and as result it can say either there is or not a set of movement to go from initial state to a given final state.
    2022-02-21 02:51:52下载
    积分:1
  • 矩阵连乘积的加括号方式数
    资源描述给定n个矩阵{A1,…,An},其中Ai和Ai+1可乘,i=1,2,…,n-1。考察矩阵连乘积加括弧的方式数。 如四个矩阵连乘积A1A2A3A4,共有五种不同的加括弧方式: ( A1 ( A2 ( A3 A4 ) ) ) ( A1 ( ( A2 A3 ) A4 ) ) ( ( A1A2 ) ( A3 A4 ) ) ( A1 ( A2 A3 ) A4 ) ( ( ( A1 A2 ) A3 ) A4 ) 输入示例: 4 输出示例: 5
    2023-02-06 15:25:03下载
    积分:1
  • 皇后问题:在N*N的方格里放置皇后,要求不能放在同一行、同一列、同一对角线上。输入所有适合条件的情况。...
    皇后问题:在N*N的方格里放置皇后,要求不能放在同一行、同一列、同一对角线上。输入所有适合条件的情况。-Queen : N* N in the box, placed the empress, on the request can not be the same line, the same series on the same diagonal. The importation of all suitable conditions.
    2022-06-27 06:25:57下载
    积分:1
  • primepalindrome,找回文素数的一个不错的算法实现
    primepalindrome,找回文素数的一个不错的算法实现-primepalindrome, retrieve the text of a good prime number algorithm
    2022-05-27 12:39:36下载
    积分:1
  • C语言基本排序算法,经过测试!
    C语言基本排序算法,经过测试!-C language basic sorting algorithm, the test!
    2023-03-24 16:20:04下载
    积分:1
  • 数据由多项式逼近
    该程序从 APPROKSK 文件中读取数据。DAT 和发现多项式的系数数据进行拟合。在最后一步的计算结果表明在图表上。
    2022-01-31 16:49:16下载
    积分:1
  • 数据结构动态演示系统
    应用背景数据结构动态演示,cai软件,类似于严蔚敏版的数据结构光盘辅助教学软件关键技术MFC  C++  数据结构,树,图,线性表,链表等的插入、删除等操作
    2022-05-31 18:48:16下载
    积分:1
  • 非线性系统的C
    非线性系统的C-C算法,程序运行良好,能为从事混沌方面研究的人员提供一定的便利.-Nonlinear Systems C-C algorithms, running good, to engage in research in the chaotic provide certain facilities.
    2023-04-09 18:15:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载