摘要: HeapSort is an sort algorithms, using heap tree(Full Binary Tree) for help.Implementing this sort should execute three steps1. Adjust an entire array to a heap tree(big heap tree for ascending, small heap tree for descending sort)2. Get the root of the heap tree arr[0] and swap it with last one of . 阅读全文
posted @ 2012-07-18 18:07 EricWen 阅读(206) 评论(0) 推荐(0) 编辑