文件名称:HeapsortCodes
介绍说明--下载内容来自于网络,使用问题请自行百度
Heapsort
1.A heap is a binary tree satisfying the followingconditions:
-This tree is completely balanced.
-If the height of this binary tree is h, then leaves can be at level h or level h-1.
-All leaves at level h are as far to the left as possible.
-The data associated with all descendants of a node are smaller than the datum associated with this node.
Implementation
1.using a linear array not a binary tree.
-The sons of A(h) are A(2h) and A(2h+1).
2.time complexity: O(n log n)
1.A heap is a binary tree satisfying the followingconditions:
-This tree is completely balanced.
-If the height of this binary tree is h, then leaves can be at level h or level h-1.
-All leaves at level h are as far to the left as possible.
-The data associated with all descendants of a node are smaller than the datum associated with this node.
Implementation
1.using a linear array not a binary tree.
-The sons of A(h) are A(2h) and A(2h+1).
2.time complexity: O(n log n)
(系统自动生成,下载前可以参看下载内容)
下载文件列表
HeapsortCodes/
HeapsortCodes/HeapsortCodes.cpp
HeapsortCodes/HeapsortCodes.exe
HeapsortCodes/HeapsortCodes.JPG
HeapsortCodes/HeapsortCodes.cpp
HeapsortCodes/HeapsortCodes.exe
HeapsortCodes/HeapsortCodes.JPG
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.