2015年8月17日

QuickSort 快速排序 基于伪代码实现

摘要: 本文原创,转载请注明地址http://www.cnblogs.com/baokang/p/4737492.html伪代码 1 quicksort(A, lo, hi) 2 if lo < hi 3 p = partition(A, lo, hi) 4 quicksort(A, l... 阅读全文

posted @ 2015-08-17 19:26 Bloom_1991 阅读(10197) 评论(0) 推荐(0) 编辑

HeapSort 堆排序 基于伪代码实现

摘要: 此文原创,http://www.cnblogs.com/baokang/p/4735431.html,禁止转载GIF 动态图伪代码/* From Wikipedia, the free encyclopedia*/1.父子节点特征iParent = floor((i-1) / 2);iLeftChi... 阅读全文

posted @ 2015-08-17 01:59 Bloom_1991 阅读(2640) 评论(0) 推荐(0) 编辑

导航