登录
首页 » 数据结构 » 堆排序:思想: 用二叉树的结构来表示数组,及用数组来表示二叉树的结构,比如i为父节点其孩子为,2i,和2i+1.其中,大顶堆中 父节点大于其两个孩子 算法平...

堆排序:思想: 用二叉树的结构来表示数组,及用数组来表示二叉树的结构,比如i为父节点其孩子为,2i,和2i+1.其中,大顶堆中 父节点大于其两个孩子 算法平...

于 2022-07-11 发布 文件大小:1,000.00 B
0 168
下载积分: 2 下载次数: 1

代码说明:

堆排序:思想: 用二叉树的结构来表示数组,及用数组来表示二叉树的结构,比如i为父节点其孩子为,2i,和2i+1.其中,大顶堆中 父节点大于其两个孩子 算法平均时间复杂度: O(nlogn) -HEAPSORT: thinking: using binary tree structure to express the array, and used to express an array of binary tree structure, such as i the parent node for its children, 2i, and 2i+ 1. Among them, the big top of a pile of the parent node greater than two children on average time complexity of algorithm: O (nlogn)

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

发表评论

0 个回复

  • LL(1)文法编译器的设计与实现
    资源描述这是一个简单的c#完成的LL(1)文法编译器的设计与实现的程序,已经生成了.EXE程序,有实验报告,可以按着说明操作。
    2022-07-26 06:12:05下载
    积分:1
  • 的课后练习
    数据结构的课后练习-Data structure of the after-school practice
    2022-04-20 14:15:51下载
    积分:1
  • 一元多项式乘法 包含密运算  新学的可以参考参考 ...
    一元多项式乘法 包含密运算  新学数据结构的可以参考参考 -One dollar secret polynomial multiplication operations include the new data structure can refer to reference
    2022-07-17 11:13:18下载
    积分:1
  • 101Csharp 代码示例
    Csharp 代码示例中,我买了代码开发 Csharp 本书,这本书包含了 101 csharp 代码示例,今天我上传了书上所有的例子,我希望本书的例子对大家能有帮助。
    2022-03-22 16:41:04下载
    积分:1
  • osi的实时库pi的api 全部api 这可是实时库的编程者梦寐以求的好东西 市面上是没有的 只有pi专家才有哦 实时库的发展相当迅速 是将来的高薪...
    osi的实时数据库pi的api 全部api 这可是实时数据库的编程者梦寐以求的好东西 市面上是没有的 只有pi专家才有哦 实时数据库的发展相当迅速 是将来的高薪企业哦!1 加油哦 大家-IMAGE_FLIP_VERTICAL pi real-time database of all api- api But this database programmers dream of the good things the market is not the only experts can Oh pi real-time database developed rapidly in future high-enterprises Oh! Oh you a refueling
    2022-01-31 12:47:26下载
    积分:1
  • 零基础学 第二版 例题代码
    2022-05-08 08:11:40下载
    积分:1
  • 八 方块移动游戏要求从一个含8个字(用1
    八 方块移动游戏要求从一个含8个数字(用1-8表示)的方块以及一个空格方块(用0表示)的3x3矩阵的起始状态开始,不断移动该空格方块以使其和相邻的方 块互换,直至达到所定义的目标状态。空格方块在中间位置时有上、下、左、右4个方向可移动,在四个角落上有2个方向可移动,在其他位置上有3个方向可移 动。例如,假设一个3x3矩阵的初始状态为: 8 0 3 2 1 4 7 6 5 目标状态为: 1 2 3 8 0 4 7 6 5-Eight-box requirements of mobile games from one containing eight numbers (1-8 with express) the box, as well as a space box (with 0) of the 3x3 matrix of the initial start, and constantly move the box to make space its adjacent box and swap until they reach their defined target state. Spaces in the middle position box has the upper and lower, left and right direction of four removable, in the four corners there are two directions can be mobile, in other locations has three movable direction. For example, suppose a 3x3 matrix of the initial state as follows: 803,214,765 target state as follows: 123,804,765
    2022-03-22 21:44:29下载
    积分:1
  • 税率倒算,把原来计算好额倒算回来。帐号有两种,一种是只查看的,一种是只计算的。...
    税率倒算,把原来计算好数额倒算回来。帐号有两种,一种是只查看的,一种是只计算的。-倒算rate, a good amount of the original calculation倒算back. Account there are two types of view only, and one is the only calculation.
    2022-03-21 19:13:27下载
    积分:1
  • wince extended database programming using ADO to access Access database
    wince扩展数据库编程中利用ADO访问Access数据库-wince extended database programming using ADO to access Access database
    2022-02-21 07:41:26下载
    积分:1
  • 演示Kruskal算法和Prim算法和采集,搜索元素的…
    演示Kruskal算法和Prim算法 集合的并,元素查找的操作及应用 说明: 代码均在vc++6.0环境下编译均通过 在非VC++6.0环境下编译请去掉头文件 windows.h 和函数 end() -Demo Kruskal algorithm and Prim algorithm and collection, elements of the search operation and application notes: code in vc++ 6.0 compiler environment through in non-VC++ 6.0 compiler environment please go to the U-turn paper windows.h and function end ()
    2022-02-10 11:33:05下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载